As root do: echo 1 > /proc/sys/net/ipv4/ip_forward /sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
where eth0 is your outward facing port to your router. I've used ppp0 with a dial up connection, and that works too. --Kurt askar ... wrote: > Hello! > > I have to PCs. > 1st one used as a router. > On 2nd PC I have web server installed and would like to setup ip > forwarding to the 2nd PC. > > In my iptables rule script I added the line: > $IPTABLES -t nat -A PREROUTING -p tcp --dport 80 -i ppp0 -j DNAT --to > 192.168.0.2 <http://192.168.0.2> > > Where 192.168.0.2 <http://192.168.0.2> is the ip address of the 2nd PC. > > But is seems not correct. > > Please, give some advice. > > I'm using PPPoE Adsl connection. > > > askar > -- [email protected] mailing list

