diff --git a/apps/rego-tunnel/build/setup-network.sh b/apps/rego-tunnel/build/setup-network.sh index 2596f93..5ac3466 100644 --- a/apps/rego-tunnel/build/setup-network.sh +++ b/apps/rego-tunnel/build/setup-network.sh @@ -6,10 +6,10 @@ set -e # Pick the outbound interface based on the container's default route. -# (In Docker, this is not always eth0 when multiple networks are attached.) +# (In Docker, this is not always eth1 when multiple networks are attached.) WAN_IF="$(ip route show default 0.0.0.0/0 2>/dev/null | awk '{for(i=1;i<=NF;i++) if($i=="dev"){print $(i+1); exit}}')" if [ -z "${WAN_IF}" ]; then - WAN_IF="eth0" + WAN_IF="eth1" fi # Create bridge if not exists