All pastes #914978 Raw Edit

Stuff

public text v1 · immutable
#914978 ·published 2008-02-23 12:01 UTC
rendered paste body
#!/bin/sh
echo "NAT enabled!"
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/sbin/iptables -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
/sbin/iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT

1 # generated by FAI
  2 auto lo eth0 eth1
  3 iface lo inet loopback
  4 iface eth0 inet static
  5   address 10.94.34.1
  6   netmask 255.255.0.0
  7   broadcast 10.94.255.255
  8   gateway 10.94.0.1
  9
 10 iface eth1 inet static
 11   address 192.168.10.1
 12   netmask 255.255.255.0
 13   broadcast 192.168.10.255
 14
 15 #iface br0 inet dhcp
 16 #  bridge_ports  eth0