[relug] Re: Postrouting e condivisione connessione

  • From: "Tractor" <tract@xxxxxxxx>
  • To: <relug@xxxxxxxxxxxxx>
  • Date: Wed, 25 Aug 2004 21:58:41 +0200


># Attiva il nat (routing)
>/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
>/sbin/iptables -I FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT

nella postrouting, -o ppp0 o cmq l'interfaccia verso internet, non -o eth0

hai una gestione degli stati piuttosto particolare... :PPP
Prova a mettere questa regola:

/sbin/iptables -A FORWARD -i eth0  -s 192.168.0.10 -m state --state
NEW,ESTABLISHED,RELATED -j ACCEPT

invece di

/sbin/iptables -A FORWARD -s 192.168.0.10 -j ACCEPT

ciao

Tractor


Other related posts: