# eth1 is internal eth0 is external # user defined chain iptables -t filter -N FTP iptables -t filter -A FTP -j ACCEPT # Filter Forwarding iptables -t filter -A FORWARD -i eth1 -p tcp -m state --state ESTABLISHED,NEW --sport 1024: --dport 21 -j FTP iptables -t filter -A FORWARD -i eth0 -p tcp -m state --state ESTABLISHED --sport 21 --dport 1024: -j FTP iptables -t filter -A FORWARD -i eth1 -p tcp -m state --state ESTABLISHED --sport 1024: --dport 20 -j FTP iptables -t filter -A FORWARD -i eth0 -p tcp -m state --state ESTABLISHED,RELATED --sport 20 --dport 1024: -j FTP iptables -t filter -A FORWARD -i eth1 -p tcp -m state --state ESTABLISHED,RELATED --dport 1024: --sport 1024: -j FTP iptables -t filter -A FORWARD -i eth0 -p tcp -m state --state ESTABLISHED --sport 1024: --dport 1024: -j FTP -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html