add outer route ipv6 support
This commit is contained in:
parent
c50a5fbd7f
commit
f76b3807b9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user