blob: 5c59a8580f3bea3e4f69a19e6af5426cd246f586 [file] [log] [blame]
Andy Bavier7e4a5462016-03-01 16:35:50 -05001#!/bin/sh
2
3apt-get update
4apt-get install bridge-utils
5brctl addbr databr
6ifconfig databr 192.168.0.254/24 up
Andy Baviere085e4e2016-03-01 16:46:30 -05007ip link add address 02:42:c0:a8:00:01 type veth
Andy Bavier7e4a5462016-03-01 16:35:50 -05008ifconfig veth0 up
9ifconfig veth1 up
10brctl addif databr veth0
11iptables -t nat -A POSTROUTING -s 192.168.0.0/24 \! -d 192.168.0.0/24 -j MASQUERADE