summaryrefslogtreecommitdiff
path: root/lib/Vyatta
diff options
context:
space:
mode:
authorRobert Bays <robert@vyatta.com>2012-09-05 10:55:36 -0700
committerRobert Bays <robert@vyatta.com>2012-09-05 10:55:36 -0700
commit91eb3ef4cb9d4cb62d1b56b8daf17bd3845976cb (patch)
tree80234a54041ff4d619daa5d4ad26794d6aaf2ac8 /lib/Vyatta
parentc353904cdb9faf701973d32aaa6748ea97a2f797 (diff)
downloadvyatta-cfg-firewall-91eb3ef4cb9d4cb62d1b56b8daf17bd3845976cb.tar.gz
vyatta-cfg-firewall-91eb3ef4cb9d4cb62d1b56b8daf17bd3845976cb.zip
add support for main table
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-xlib/Vyatta/IpTables/Rule.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Vyatta/IpTables/Rule.pm b/lib/Vyatta/IpTables/Rule.pm
index 215ce82..b78c2c2 100755
--- a/lib/Vyatta/IpTables/Rule.pm
+++ b/lib/Vyatta/IpTables/Rule.pm
@@ -174,6 +174,9 @@ sub setup_base {
$self->{_icmpv6_type} = $config->$val_func("icmpv6 type");
$self->{_mod_mark} = $config->$val_func("set mark");
$self->{_mod_table} = $config->$val_func("set table");
+ if ($self->{_mod_table} eq 'main') {
+ $self->{_mod_table} = 254;
+ }
$self->{_mod_dscp} = $config->$val_func("set dscp");
$self->{_mod_tcpmss} = $config->$val_func("set tcp-mss");
$self->{_ipsec} = $config->$exists_func("ipsec match-ipsec");