diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/vyos-update-nhrp.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vyos-update-nhrp.pl b/scripts/vyos-update-nhrp.pl index c6338fd..35c423c 100644 --- a/scripts/vyos-update-nhrp.pl +++ b/scripts/vyos-update-nhrp.pl @@ -458,6 +458,10 @@ sub create_nhrp_iptables { $config_tun->setLevel("interfaces tunnel"); if ( $config_tun->exists("$tun local-ip")) { + if ( $config_tun->exists("$tun remote-ip")) { + print ("$tun is not 'mGRE' tunnel'\n"); + exit 1; + } my $local_ip = $config_tun->returnValue("$tun local-ip"); system ("sudo iptables -N VYOS_NHRP_${tun}_OUT_HOOK") == 0 or die "System call failed: $!"; |