Hello buddies,
I have one question about ftp and iptables. I'm in trouble with my home server where i use Vsftpd software. Vsftpd uses standard ports 21 and 20. In iptables firewall i want to keep open ports 80, 443, 22, 21,20, 3306, 10000, 139, 11925, 445. All other ports are closed.
:INPUT ACCEPT [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [35431:98858756]
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 20 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 3306 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 139 -j ACCEPT
-A INPUT -p udp -m udp --dport 139 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 11925 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 445 -j ACCEPT
-A INPUT -j LOG
-A INPUT -j DROP
For some reason the firewall will not allow the use ftp. The question is what is wrong ?
FTP and iptables
Aucun commentaire:
Enregistrer un commentaire