From b7b293df5955caac46034fb7c8ad30896b3bd0e3 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Sat, 5 Oct 2019 00:25:15 -0400 Subject: update conf/ dir --- conf/interfaces.d_eth0 | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'conf/interfaces.d_eth0') 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 @@ auto br0 eth0 iface br0 inet static +# pre-up echo 0 > /proc/sys/net/ipv6/conf/br0/accept_ra_pinfo # disable ipv6 auto-address + pre-up for n in 0 1 2 3 4; do tunctl -t tap$n; done; true + pre-down for n in 0 1 2 3 4; do tunctl -d tap$n; done; true address 192.168.10.1 netmask 255.255.255.0 -## These are useful for VMs: -# pre-up for n in 0 1 2 3 4; do tunctl -t tap$n; done; true -# pre-down for n in 0 1 2 3 4; do tunctl -d tap$n; done; true -# bridge_ports eth0 tap0 tap1 tap2 tap3 tap4 -# bridge_maxwait 10 - -## Enable "internet connection sharing" + bridge_ports eth0 tap0 tap1 tap2 tap3 tap4 + bridge_maxwait 10 up iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE up sysctl -w net.ipv4.ip_forward=1 -## Disable ipv6 auto-address. -## This is needed sometimes, if ipv6 breaks ipv4. -# pre-up echo 0 > /proc/sys/net/ipv6/conf/br0/accept_ra_pinfo - -# NB. 'ipsec reload' does not work very well - post-up ipsec restart - iface eth0 inet manual -- cgit v1.2.3