From f76b3807b953c2248a9d88c8e79294403115e2aa Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Wed, 13 Oct 2021 14:09:50 +0200 Subject: [PATCH] add outer route ipv6 support --- scripts/inner.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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