# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static
address 140.113.208.202
netmask 255.255.255.0
gateway 140.113.208.254
dns-nameservers 8.8.8.8
up echo "1" > /proc/sys/net/ipv4/ip_forward
up iptables -t nat -A POSTROUTING -s 192.168.100.0/24 -o eth1 -j MASQUERADE
up iptables --append FORWARD -i xenbr0 -j ACCEPT
down echo "0" > /proc/sys/net/ipv4/ip_forward
down iptables -t nat -D POSTROUTING -s 192.168.100.0/24 -o eth1 -j SNAT --to-source 140.113.208.202
auto xenbr0
iface xenbr0 inet static
bridge_ports eth
address 192.168.100.1
netmask 255.255.255.0