Skip to content

Instantly share code, notes, and snippets.

@terinjokes
Created April 4, 2018 19:03
Show Gist options
  • Save terinjokes/f24fa597a328225aacffbe2736494740 to your computer and use it in GitHub Desktop.
Save terinjokes/f24fa597a328225aacffbe2736494740 to your computer and use it in GitHub Desktop.
patch to never set the default route for split IPv6
diff -ura vpnc-scripts.orig/vpnc-script vpnc-scripts.new/vpnc-script
--- vpnc-scripts.orig/vpnc-script 2018-04-04 11:39:54.203748883 -0700
+++ vpnc-scripts.new/vpnc-script 2018-04-04 11:52:22.039505461 -0700
@@ -676,11 +676,7 @@
while [ $i -lt $CISCO_IPV6_SPLIT_INC ] ; do
eval NETWORK="\${CISCO_IPV6_SPLIT_INC_${i}_ADDR}"
eval NETMASKLEN="\${CISCO_IPV6_SPLIT_INC_${i}_MASKLEN}"
- if [ $NETMASKLEN -lt 128 ]; then
- set_ipv6_network_route "$NETWORK" "$NETMASKLEN"
- else
- set_ipv6_default_route
- fi
+ set_ipv6_network_route "$NETWORK" "$NETMASKLEN"
i=`expr $i + 1`
done
for i in $INTERNAL_IP4_DNS ; do
@@ -724,11 +720,7 @@
while [ $i -lt $CISCO_IPV6_SPLIT_INC ] ; do
eval NETWORK="\${CISCO_IPV6_SPLIT_INC_${i}_ADDR}"
eval NETMASKLEN="\${CISCO_IPV6_SPLIT_INC_${i}_MASKLEN}"
- if [ $NETMASKLEN -eq 0 ]; then
- reset_ipv6_default_route
- else
- del_ipv6_network_route "$NETWORK" "$NETMASKLEN"
- fi
+ del_ipv6_network_route "$NETWORK" "$NETMASKLEN"
i=`expr $i + 1`
done
for i in $INTERNAL_IP6_DNS ; do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment