diff --git a/scripts/inner.sh b/scripts/inner.sh index d3998dd..7677bec 100644 --- a/scripts/inner.sh +++ b/scripts/inner.sh @@ -18,5 +18,10 @@ echo ${VPN_IPV6_ADDRESS} ip addr add ${VPN_IPV4_ADDRESS} dev vpn ip addr add ${VPN_IPV6_ADDRESS} dev vpn +if [ -z ${OUTER_ROUTE+x} ] +then + ip -4 route add "${OUTER_ROUTE}" via "${OUTER_GATEWAY}" +fi + ip -4 route add default dev vpn ip -6 route add default dev vpn