summaryrefslogtreecommitdiff
path: root/conf/interfaces.d_eth0
diff options
context:
space:
mode:
Diffstat (limited to 'conf/interfaces.d_eth0')
-rw-r--r--conf/interfaces.d_eth019
1 files changed, 5 insertions, 14 deletions
diff --git a/conf/interfaces.d_eth0 b/conf/interfaces.d_eth0
index 5ec8666..3dbf9b4 100644
--- a/conf/interfaces.d_eth0
+++ b/conf/interfaces.d_eth0
@@ -6,23 +6,14 @@
6auto br0 eth0 6auto br0 eth0
7 7
8iface br0 inet static 8iface br0 inet static
9# pre-up echo 0 > /proc/sys/net/ipv6/conf/br0/accept_ra_pinfo # disable ipv6 auto-address
10 pre-up for n in 0 1 2 3 4; do tunctl -t tap$n; done; true
11 pre-down for n in 0 1 2 3 4; do tunctl -d tap$n; done; true
9 address 192.168.10.1 12 address 192.168.10.1
10 netmask 255.255.255.0 13 netmask 255.255.255.0
11## These are useful for VMs: 14 bridge_ports eth0 tap0 tap1 tap2 tap3 tap4
12# pre-up for n in 0 1 2 3 4; do tunctl -t tap$n; done; true 15 bridge_maxwait 10
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 16 up iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
19 up sysctl -w net.ipv4.ip_forward=1 17 up sysctl -w net.ipv4.ip_forward=1
20 18
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
28iface eth0 inet manual 19iface eth0 inet manual