diff options
Diffstat (limited to 'scripts/vpn-config.pl')
-rwxr-xr-x | scripts/vpn-config.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vpn-config.pl b/scripts/vpn-config.pl index 507be1b..ba5dc8a 100755 --- a/scripts/vpn-config.pl +++ b/scripts/vpn-config.pl @@ -667,7 +667,7 @@ if ($vcVPN->exists('ipsec')) { if ($remotesubnet_object == $localsubnet_object) { vpn_die(["vpn","ipsec","site-to-site","peer",$peer],"$vpn_cfg_err local prefix and remote prefix cannot be the same.\n"); } - my $check_local_route = qx(ip route show table 254 $localsubnet_object); + my $check_local_route = qx(ip route show table 254 $localsubnet_object && ip route show table local $localsubnet_object); if (!$check_local_route){ print "Warning: local prefix $localsubnet_object specified for peer \"$peer\"\n"; print "is not configured on any interfaces\n"; |