summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2020-09-18 18:18:48 +0000
committersever-sever <v.gletenko@vyos.io>2020-09-18 18:18:48 +0000
commite4b094de012e041f7556af17a4e16f76163872f1 (patch)
tree72a85c3829b15acc9eb9e8d3f3228f9c91f1b7bb
parent342eb4fae3fd6c3b79440a9932c43f29e27d74c3 (diff)
downloadvyatta-cfg-vpn-e4b094de012e041f7556af17a4e16f76163872f1.tar.gz
vyatta-cfg-vpn-e4b094de012e041f7556af17a4e16f76163872f1.zip
cfg-vpn: T2806: Fix local prefix is source from loopback
-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 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";