diff --git a/scripts/inner.sh b/scripts/inner.sh index 7677bec..f558070 100644 --- a/scripts/inner.sh +++ b/scripts/inner.sh @@ -18,9 +18,14 @@ 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} ] +if [ -z ${OUTER_ROUTE_V4+x} ] then - ip -4 route add "${OUTER_ROUTE}" via "${OUTER_GATEWAY}" + ip -4 route add "${OUTER_ROUTE_V4}" via "${OUTER_GATEWAY_V4}" +fi + +if [ -z ${OUTER_ROUTE_V6+x} ] +then + ip -6 route add "${OUTER_ROUTE_V6}" via "${OUTER_GATEWAY_V6}" fi ip -4 route add default dev vpn