View Single Post
  #2  
Old 3rd August 2011, 13:39
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

why do you SNAT?

for a simple and fast gateway you should do this:

set net.ipv4.ip_forward to 1 (/etc/sysctl.conf, then run: sysctl -p)
iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE

eth0 being your external interface (wan connection).

That's it.
Reply With Quote