Dev-Deploy: setup gateway to use default route device

This PS updates the dev-deploy guide and scripts to set the
gateway device to match that used for the default route on the
developers machine.

Change-Id: I420ceb8cd845ae85f524f7b615ace753642d8e1d
This commit is contained in:
portdirect 2017-12-26 18:02:45 -05:00
parent fa2620d54b
commit 7f96995af0

View File

@ -22,5 +22,5 @@ sudo ip addr add ${OSH_BR_EX_ADDR} dev br-ex
sudo ip link set br-ex up
# Setup masquerading on default route dev to public subnet
DEFAULT_ROUTE_DEV="ens3"
DEFAULT_ROUTE_DEV="$(sudo ip -4 route list 0/0 | awk '{ print $5; exit }')"
sudo iptables -t nat -A POSTROUTING -o ${DEFAULT_ROUTE_DEV} -s ${OSH_EXT_SUBNET} -j MASQUERADE