diff options
author | ian <ian> | 2001-09-26 00:18:56 +0000 |
---|---|---|
committer | ian <ian> | 2001-09-26 00:18:56 +0000 |
commit | 1c18e501b40154a3caeda9f0c8962ffe708bf1b2 (patch) | |
tree | 9b7d3a43f095fa1b0201277655af30f0eb91b7ce /ipif | |
parent | 94808710d2f7eda4f4e114a2a138f473ad832703 (diff) | |
download | userv-utils-1c18e501b40154a3caeda9f0c8962ffe708bf1b2.tar.gz |
@@ -3,6 +3,7 @@
+ * forbid_remote is a per-tunnel option.
Diffstat (limited to 'ipif')
-rwxr-xr-x | ipif/udptunnel-reconf.pl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ipif/udptunnel-reconf.pl b/ipif/udptunnel-reconf.pl index 7fd14bc..ea4c86f 100755 --- a/ipif/udptunnel-reconf.pl +++ b/ipif/udptunnel-reconf.pl @@ -94,14 +94,6 @@ sub parse_addr_mask ($) { return ($iaddr, $mask); } -$forbid_remote= var_global('forbid_remote'); -@forbid_remote= (); -if ($forbid_remote ne '-') { - foreach $r (split /[, \t]+/, $forbid_remote) { - push @forbid_remote, [ parse_addr_mask($r) ]; - } -} - sub ipif_permit ($$$$) { my ($group,$local,$net,$why) = @_; my ($pmask,$piaddr,$fmask,$fiaddr,@lgroup,$lgid); @@ -133,6 +125,14 @@ if ($glend !~ m/^V_/ && $glgroup !~ m/^V_/ && } foreach $site (@actives, @passives) { + $forbid_remote= var_site('forbid_remote'); + @forbid_remote= (); + if ($forbid_remote ne '-') { + foreach $r (split /[, \t]+/, $forbid_remote) { + push @forbid_remote, [ parse_addr_mask($r) ]; + } + } + $tlend= var_site('lend')."/32"; $tlgroup= var_site('lgroup'); if ($tlend ne $glend || $tlgroup ne $glgroup) { |