summaryrefslogtreecommitdiff
path: root/conf/br0.in
diff options
context:
space:
mode:
Diffstat (limited to 'conf/br0.in')
-rw-r--r--conf/br0.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/conf/br0.in b/conf/br0.in
new file mode 100644
index 0000000..9d5c17b
--- /dev/null
+++ b/conf/br0.in
@@ -0,0 +1,12 @@
1auto br0
2
3iface br0 inet static
4# pre-up echo 0 > /proc/sys/net/ipv6/conf/br0/accept_ra_pinfo # disable ipv6 auto-address
5 pre-up for n in 0 1 2 3 4; do tunctl -t tap$n; done; true
6 pre-down for n in 0 1 2 3 4; do tunctl -d tap$n; done; true
7 address 192.168.10.1
8 netmask 255.255.255.0
9 bridge_ports tap0 tap1 tap2 tap3 tap4
10 bridge_maxwait 10
11 up iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
12 up sysctl -w net.ipv4.ip_forward=1