Luc MAIGNAN wrote: > Hi all, > > I still have a masquerade problem, and nothing helps me to go to the right > way. > > This is my configuration : > > A server (10.0.0.1) with internet access on eth0, and local network access > (192.168.0.1) on eth1 > A workstation (192.168.0.14) wants to access to internet > > This is what I done : > > On the workstation, I specify the gateway and the dns as 192.168.0.1 > On the server, I ran the following code : > > iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j > MASQUERADE
Try: iptables -t nat -A POSTROUTING -s 192.168.0.0/255.255.255.0 -o eth0 -j SNAT --to-source 10.0.0.1 It works fine for me. -- IRL Jonas bazz Egidius IRC [EMAIL PROTECTED] CEL +46709841071 WEB http://bazz.nu ICQ 41245779 POP [EMAIL PROTECTED] JOB gronaverket.se VIM Yes, ofcourse!