Servidor: Ubuntu 15.04 - 2.6.32-042stab094.8
Cliente: Windows 10
Eu fiz algumas alterações no iptables, salvei todas as regras, naturalmente as reapliquei depois, resumo das alterações:
portas abertas
política de padrões
antes das alterações, a entrada padrão foi aceita, assim como o filezilla conectado, etc. depois de eliminar todas as entradas (exceto as especificadas), o FZ falha ao conectar
FZ usando o protocolo SFTP com login normal
estou sem uma porta necessária para o sftp se conectar?
UPDATE
FILTER TABLE
sudo iptables -L -t filter
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp-data /* FTP-Data IN (iface:ALL) */
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp /* FTP-Ctrl IN (iface:ALL) */
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh /* SSH IN (iface:ALL) */
ACCEPT tcp -- anywhere anywhere tcp dpt:whois /* Whois IN (iface:ALL) */
ACCEPT udp -- anywhere anywhere udp dpt:ntp /* NTP IN (iface:ALL) */
ACCEPT icmp -- anywhere anywhere /* Ping Request/Reply IN (iface:ALL) */
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere /* Ping Request/Reply OUT (iface:ALL) */
Chain LOGGING (0 references)
target prot opt source destination
NAT TABLE
sudo iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
SNAT all -- anywhere anywhere to:x.x.x.x <- server ip
MASQUERADE all -- 10.0.0.0/24 anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Tags ssh networking sftp iptables ftp