diff options
author | Robert Bays <robert@vyatta.com> | 2012-09-05 10:55:36 -0700 |
---|---|---|
committer | Robert Bays <robert@vyatta.com> | 2012-09-05 10:55:36 -0700 |
commit | 91eb3ef4cb9d4cb62d1b56b8daf17bd3845976cb (patch) | |
tree | 80234a54041ff4d619daa5d4ad26794d6aaf2ac8 /lib/Vyatta | |
parent | c353904cdb9faf701973d32aaa6748ea97a2f797 (diff) | |
download | vyatta-cfg-firewall-91eb3ef4cb9d4cb62d1b56b8daf17bd3845976cb.tar.gz vyatta-cfg-firewall-91eb3ef4cb9d4cb62d1b56b8daf17bd3845976cb.zip |
add support for main table
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-x | lib/Vyatta/IpTables/Rule.pm | 3 |
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"); |