Всем привет! Есть домашняя сеть из двух компов, на одном из них стоит CentOS 6. Со второго компа без проблем попадаю на него по ssh, однако по ftp и http - никак.
# netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:mysql *:* LISTEN
tcp 0 0 *:http *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 192.168.0.240:ssh www.bak2.192.1:shadowserver ESTABLISHED
tcp 0 0 192.168.0.240:ssh www.bak2.192.168.0.1:mpnjsc ESTABLISHED
tcp 0 0 192.168.0.240:ssh www.bak2.192.168.0.:stun-p1 ESTABLISHED
tcp 0 0 *:webcache *:* LISTEN
tcp 0 0 *:ftp *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
udp 0 0 *:bootpc *:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 8484 /var/run/proftpd.sock
unix 3 [ ] DGRAM 10248 /dev/log
unix 2 [ ACC ] STREAM LISTENING 6850 @/com/ubuntu/upstart
unix 2 [ ] DGRAM 6987 @/org/kernel/udev/udevd
unix 2 [ ACC ] STREAM LISTENING 8208 /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 8422 /var/lib/mysql/mysql.sock
unix 2 [ ACC ] STREAM LISTENING 8476 /var/run/proftpd.sock
unix 3 [ ] STREAM CONNECTED 13871
unix 3 [ ] STREAM CONNECTED 13870
unix 3 [ ] STREAM CONNECTED 13868
unix 3 [ ] STREAM CONNECTED 13867
unix 3 [ ] STREAM CONNECTED 13866
unix 3 [ ] STREAM CONNECTED 13865
unix 3 [ ] STREAM CONNECTED 13864
unix 3 [ ] STREAM CONNECTED 13863
unix 3 [ ] STREAM CONNECTED 13862
unix 3 [ ] STREAM CONNECTED 13861
unix 3 [ ] STREAM CONNECTED 13860
unix 3 [ ] STREAM CONNECTED 13859
unix 3 [ ] STREAM CONNECTED 13858
unix 3 [ ] STREAM CONNECTED 13857
unix 3 [ ] STREAM CONNECTED 13856
unix 3 [ ] STREAM CONNECTED 13855
unix 3 [ ] STREAM CONNECTED 13854
unix 3 [ ] STREAM CONNECTED 13853
unix 3 [ ] STREAM CONNECTED 13852
unix 3 [ ] STREAM CONNECTED 13851
unix 2 [ ] DGRAM 10274
unix 2 [ ] DGRAM 9553
unix 3 [ ] STREAM CONNECTED 9204
unix 3 [ ] STREAM CONNECTED 9203
unix 2 [ ] DGRAM 9200
unix 2 [ ] DGRAM 8704
unix 2 [ ] DGRAM 8491
unix 3 [ ] STREAM CONNECTED 8220 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 8219
unix 3 [ ] STREAM CONNECTED 8213
unix 3 [ ] STREAM CONNECTED 8212
unix 3 [ ] DGRAM 7004
unix 3 [ ] DGRAM 7003
# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp
ACCEPT tcp -- anywhere anywhere tcp dpt:webcache
Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
При этом сканер портов показывает, что 80 открыт, а 21 закрыт. telnet 127.0.0.1 80 и telnet 127.0.0.1 21 работают правильно.
Как мне получить доступ по этим портам?