diff options
Diffstat (limited to 'conf/interfaces.d_eth0')
-rw-r--r-- | conf/interfaces.d_eth0 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/conf/interfaces.d_eth0 b/conf/interfaces.d_eth0 new file mode 100644 index 0000000..5ec8666 --- /dev/null +++ b/conf/interfaces.d_eth0 | |||
@@ -0,0 +1,28 @@ | |||
1 | # iface eth0 inet static | ||
2 | # address 192.168.10.1 | ||
3 | # netmask 255.255.255.0 | ||
4 | # # post-up ipsec restart | ||
5 | |||
6 | auto br0 eth0 | ||
7 | |||
8 | iface br0 inet static | ||
9 | address 192.168.10.1 | ||
10 | netmask 255.255.255.0 | ||
11 | ## These are useful for VMs: | ||
12 | # pre-up for n in 0 1 2 3 4; do tunctl -t tap$n; done; true | ||
13 | # pre-down for n in 0 1 2 3 4; do tunctl -d tap$n; done; true | ||
14 | # bridge_ports eth0 tap0 tap1 tap2 tap3 tap4 | ||
15 | # bridge_maxwait 10 | ||
16 | |||
17 | ## Enable "internet connection sharing" | ||
18 | up iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE | ||
19 | up sysctl -w net.ipv4.ip_forward=1 | ||
20 | |||
21 | ## Disable ipv6 auto-address. | ||
22 | ## This is needed sometimes, if ipv6 breaks ipv4. | ||
23 | # pre-up echo 0 > /proc/sys/net/ipv6/conf/br0/accept_ra_pinfo | ||
24 | |||
25 | # NB. 'ipsec reload' does not work very well | ||
26 | post-up ipsec restart | ||
27 | |||
28 | iface eth0 inet manual | ||