blob: 06bcea22817498d0f6037d48ddba1d8806d477a2 [file] [log] [blame]
in ie:/etc# cat sysctl.conf
set to 1 the following flag:
# Uncomment the next line to enable packet forwarding for IPv4
net.ipv4.ip_forward=1
cat > /etc/iptables.v4
*nat
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
END
add to /etc/rc.local:
iptables-restore < /etc/iptables.v4
create /etc/network/interfaces.d/eth1 with:
allow-hotplug eth1
iface eth1 inet static
address 11.0.0.179
netmask 255.0.0.0