summaryrefslogtreecommitdiff
path: root/conf/br0.in
blob: 11814996a37f4f04166c92dcb41bf8256c52e293 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
auto br0

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
  bridge_ports eth0 tap0 tap1 tap2 tap3 tap4
  bridge_maxwait 10
  up iptables -t nat -A POSTROUTING -o $(/sbin/iwconfig 2>/dev/null | (read a _; echo $a)) -j MASQUERADE
  up sysctl -w net.ipv4.ip_forward=1