測試scribefire編輯Blogger
1: ################################
2: # ADSL which bind to eth1
3: ################################
4: auto dsl-provider
5: iface dsl-provider inet ppp
6: pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf
7: provider dsl-provider
8:
9: auto eth1
10: iface eth1 inet static
11: address 192.168.200.200
12: netmask 255.255.255.0
13:
14: auto eth2
15: iface eth2 inet static
16: address 192.168.100.1
17: netmask 255.255.255.0
iptables -t nat -A POSTROUTING -s $innet -o $EXTIF -j MASQUERADE