For internal use
For internal use
This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet dhcp # The secondary network interface iface eth1 inet static address 192.168.0.1 netmask 255.255.255.0
# This does not work: /etc/init.d/networking restart sudo ifdown eth1 && sudo ifup eth1
### OLD #net.ipv4.ip_forward=1 ### NEW net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE