summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/vpn-config.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vpn-config.pl b/scripts/vpn-config.pl
index 557b670..dd1b789 100755
--- a/scripts/vpn-config.pl
+++ b/scripts/vpn-config.pl
@@ -658,7 +658,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";