Using vsftpd with iptables

Add these modules to /etc/sysconfig/iptables-config:

These are the firewall rules required with ip_conntrack_ftp:

# Allow incoming FTP connections to the ftp server
-A FORWARD -i eth2 -p tcp -d 1.2.3.4 --dport 21 --sport 1024:65535 -j ACCEPT
-A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT


CategoryLinux

VsftpdIptables (last edited 2007-10-31 15:01:53 by DavidKeen)