summaryrefslogtreecommitdiff
path: root/conf/br0.in
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2019-10-11 22:30:22 -0400
committerAndrew Cady <d@jerkface.net>2019-10-11 22:30:22 -0400
commit189b3763818fe5792cf06ead5f96f13be4080ed9 (patch)
tree02a5b2c717032b3c01349b0adec9369355d43198 /conf/br0.in
parent674020ccbe893f89238982b0c7e11cc9be871629 (diff)
new target: make install-bootserver
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