From: Daniel Lenski Date: Sun, 24 Jan 2021 15:00:57 +0000 (-0800) Subject: tweak warning message about un-routable exclude routes X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=980145c5c3d611da31f346f75073e8982c678a3a;p=users%2Fdwmw2%2Fvpnc-scripts.git tweak warning message about un-routable exclude routes Signed-off-by: Daniel Lenski --- diff --git a/vpnc-script b/vpnc-script index 53ed730..596ab73 100755 --- a/vpnc-script +++ b/vpnc-script @@ -318,7 +318,7 @@ if [ -n "$IPROUTE" ]; then NETMASKLEN="$3" ARGS=`$IPROUTE route get "$NETWORK" 2>/dev/null | fix_ip_get_output "/$NETMASKLEN"` if [ -z "$ARGS" ]; then - echo "ignoring non-forwardable exclude route $NETWORK/$NETMASKLEN" >&2 + echo "cannot find route for exclude route $NETWORK/$NETMASKLEN, ignoring" >&2 return fi $IPROUTE route add $ARGS @@ -378,7 +378,7 @@ if [ -n "$IPROUTE" ]; then NETMASKLEN="$2" ARGS=`$IPROUTE route get "$NETWORK" 2>/dev/null | fix_ip_get_output "/$NETMASKLEN"` if [ -z "$ARGS" ]; then - echo "ignoring non-forwardable exclude route $NETWORK/$NETMASKLEN" >&2 + echo "cannot find route for exclude route $NETWORK/$NETMASKLEN, ignoring" >&2 return fi $IPROUTE -6 route add $ARGS @@ -469,7 +469,7 @@ else # use route command NETMASKLEN="$3" DEFAULTGW="${DEFAULTGW:-`get_default_gw`}" if [ -z "$DEFAULTGW" ]; then - echo "ignoring non-forwardable exclude route $NETWORK/$NETMASKLEN" >&2 + echo "cannot find route for exclude route $NETWORK/$NETMASKLEN, ignoring" >&2 return fi # Add explicit route to keep traffic for this target separate @@ -547,7 +547,7 @@ else # use route command NETMASK="$2" IPV6DEFAULTGW="${IPV6DEFAULTGW:-`get_ipv6_default_gw`}" if [ -z "$IPV6DEFAULTGW" ]; then - echo "ignoring non-forwardable exclude route $NETWORK/$NETMASKLEN" >&2 + echo "cannot find route for exclude route $NETWORK/$NETMASKLEN, ignoring" >&2 return fi # Add explicit route to keep traffic for this target separate