summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2009-04-24 14:30:40 -0700
committerBob Gilligan <gilligan@vyatta.com>2009-04-24 14:30:40 -0700
commit7b24a1d602390d12befb29f84b1c3de18fc9e363 (patch)
treeed219a1a041af7d4493a957f12e34e51313b0ef8
parent773c2a20182c559b72a2e87b4c2bcc5de1309936 (diff)
downloadvyatta-cfg-firewall-7b24a1d602390d12befb29f84b1c3de18fc9e363.tar.gz
vyatta-cfg-firewall-7b24a1d602390d12befb29f84b1c3de18fc9e363.zip
bugfix 4297: Don't allow modify rulesets on local traffic.
-rwxr-xr-xgen-interface-templates.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/gen-interface-templates.pl b/gen-interface-templates.pl
index ddbb07a..a00b706 100755
--- a/gen-interface-templates.pl
+++ b/gen-interface-templates.pl
@@ -224,6 +224,11 @@ foreach my $if_tree ( keys %interface_hash ) {
for my $direction (@ruleset_directions) {
gen_direction_template( $if_tree, $direction );
foreach my $table (@ruleset_tables) {
+ if (($direction eq "local") &&
+ (($table eq "modify") || ($table eq "ipv6-modify"))) {
+ # modify type rules are not used for local traffic
+ next;
+ }
gen_template( $if_tree, $direction, $table, $if_name );
}
}