
On 28 March 2014 15:42, David Njuki <njukey@gmail.com> wrote:
Hi Cynthia,
All the explanations given are correct but in my experience you'll lose these settings in case the server reboots, this solution works without modifying iptables, basically what you are doing is making your linux box a router.
Assuming eth0 is your WAN interface, add the following lines to /etc/rc.local
echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/route add default gw 192.168.6.1 dev eth0
Then restart your network service and run the rc.local script
Where else do you do NAT on Linux? Seem like am new to linux. Guess what "save" command does :) Why would the settings get lost while they are saved? Guess what "sysctl -p" do or mean? You would easily edit manually, like i said i love shortcuts that work. Si kushinda uki "vim" "pico" na "vi" Kind Regards, Wilson./