ownCloud zainstalowałem z pilku .tar.bz2 właśnie w /mnt.
Wyniki poleceń:
ls -l /mnt:
total 152
drwxr-xr-x 22 http http 4096 Jun 24 09:10 3rdparty
-rw-r--r-- 1 http http 586 Jun 24 09:09 AUTHORS
-rw-r--r-- 1 http http 34520 Jun 24 09:09 COPYING-AGPL
drwxrwxrwx 26 http http 4096 Jun 24 09:10 apps
drwxrwxrwx 2 http http 4096 Jul 3 04:41 config
-rw-r--r-- 1 http http 916 Jun 24 09:10 console.php
drwxr-xr-x 14 http http 4096 Jun 24 09:10 core
-rw-r--r-- 1 http http 3480 Jun 24 09:10 cron.php
drwxrwx--- 3 http http 4096 Jul 5 09:47 data
-rw-r--r-- 1 http http 24040 Jun 24 09:10 db_structure.xml
-rw-r--r-- 1 http http 179 Jun 24 09:09 index.html
-rw-r--r-- 1 http http 1084 Jun 24 09:10 index.php
drwxr-xr-x 99 http http 4096 Jun 24 09:10 l10n
drwxr-xr-x 5 http http 4096 Jun 24 09:10 lib
-rw-r--r-- 1 http http 279 Jun 24 09:09 occ
drwxr-xr-x 2 http http 4096 Jun 24 09:10 ocs
drwxr-xr-x 9 http http 4096 Jul 3 05:42 phpmyadmin
-rw-r--r-- 1 http http 806 Jun 24 09:10 public.php
-rw-r--r-- 1 http http 1212 Jun 24 09:10 remote.php
-rw-r--r-- 1 http http 26 Jun 24 09:09 robots.txt
drwxr-xr-x 6 http http 4096 Jun 24 09:09 search
drwxr-xr-x 9 http http 4096 Jun 24 09:10 settings
-rw-r--r-- 1 http http 1447 Jun 24 09:10 status.php
drwxr-xr-x 2 http http 4096 Jun 24 09:09 themes
-rw-r--r-- 1 http http 149 Jun 24 09:11 version.php
whereis owncloud:
owncloud:[root@alarmpi /]#
([root@alarmpi /]# to znak zachęty - pojawił mi się on w tej samej linii, co wynik tego polecenia)
netstat -lnp | egrep “(80|443)”:
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 302/httpd
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 302/httpd
Wyniki poleceń RouterOS:
ip address print:
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 192.168.1.1/24 192.168.1.0 ether1
1 192.168.100.189/24 192.168.100.0 wlan1
interface ethernet print:
Flags: X - disabled, R - running, S - slave
# NAME MTU MAC-ADDRESS ARP MASTER-PORT SWITCH
0 R ether1 1500 D4:CA:6D:88:39:BD enabled none switch1
ip firewall nat print:
Flags: X - disabled, I - invalid, D - dynamic
0 chain=srcnat action=masquerade src-address=192.168.1.0/24
1 chain=srcnat action=masquerade out-interface=ether1
2 chain=dstnat action=dst-nat to-addresses=192.168.1.248 to-ports=80
protocol=tcp dst-address=62.233.xxx.xxx dst-port=80
3 chain=dstnat action=dst-nat to-addresses=192.168.1.248 to-ports=443
protocol=tcp dst-address=62.233.xxx.xxx dst-port=443
4 chain=dstnat action=dst-nat to-addresses=192.168.1.248 to-ports=80
protocol=tcp dst-address=62.233.xxx.xxx dst-port=81
Uznałem, że bez sensu jest cenzurować lokalny adres Raspberry Pi. 62.233.xxx.xxx to IP zewnętrzne.
To, że nie mógłbym tych adresów użyć, to wiem, ale nie do końca znałem przyczynę takiego zachowania routera. Teraz już rozumiem, dzięki za wytłumaczenie