my PCs behind my firewall didn't get ftp connection to any external ftp server. Why?
/sbin/modprobe ip_contrack /sbin/modprobe ip_contrack_ftp
# LAN -> INTERNET
iptables -A FORWARD -i $LAN -o $INET -p tcp --dport 21 -j ACCEPT
iptables -A FORWARD -i $LAN -o $INET -p tcp --dport 20 -j ACCEPT
# INTERNET ->LAN
iptables - A FORWARD -i $INET -o $LAN -p tcp -m state --state ESTABLISHED, RELATED -j ACCEPT
# NAT
iptables -t nat -A POSTROUTING -s $IPs_LAN -o $INET -j SNAT --to-source $INET_IP
Thanks fo help
_______________________________________
Connessione ed e-mail gratuita da 10 mb
consultabile tramite web e tramite pop.
www.infinito.it vieni a scoprire tutti i nostri servizi!
http://www.infinito.it/xmail