You are not logged in.

|
|
Source code |
1 2 3 4 5 6 7 8 9 10 |
auto eth0
iface eth0 inet static
address 10.0.0.123
netmask 255.255.255.0
gateway 10.0.0.1
auto eth0:1
iface eth0:1 inet static
address 192.168.0.123
netmask 255.255.255.0
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
#/bin/sh # flush tables iptables -F iptables -F -nat iptables -F -t mangle iptables -X iptables -X -t nat iptables -X -t mangle # set up forwarding iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE echo 1 > /proc/sys/net/ipv4/ip_forward |
-