summaryrefslogtreecommitdiff
path: root/lib/Vyatta/IpTables/Rule.pm
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-10-14 14:10:11 -0700
committerStig Thormodsrud <stig@vyatta.com>2010-10-14 14:10:11 -0700
commit97a8e6281bdd0ccdd243fc7e5a8f8104c5c36975 (patch)
treeec6df7625c56c1bad09bf47f26ddd61d8d797d61 /lib/Vyatta/IpTables/Rule.pm
parent3053d2ccf0099b122105759fd0cdb82357e25984 (diff)
downloadvyatta-cfg-firewall-97a8e6281bdd0ccdd243fc7e5a8f8104c5c36975.tar.gz
vyatta-cfg-firewall-97a8e6281bdd0ccdd243fc7e5a8f8104c5c36975.zip
Add Iptables::Mgr route to get queue target.
Diffstat (limited to 'lib/Vyatta/IpTables/Rule.pm')
-rwxr-xr-xlib/Vyatta/IpTables/Rule.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Vyatta/IpTables/Rule.pm b/lib/Vyatta/IpTables/Rule.pm
index 7b6c82b..e190a46 100755
--- a/lib/Vyatta/IpTables/Rule.pm
+++ b/lib/Vyatta/IpTables/Rule.pm
@@ -2,6 +2,7 @@ package Vyatta::IpTables::Rule;
use strict;
use Vyatta::Config;
+use Vyatta::IpTables::Mgr;
require Vyatta::IpTables::AddressFilter;
my $src = new Vyatta::IpTables::AddressFilter;
@@ -570,7 +571,9 @@ first character capitalized eg. Mon,Thu,Sat For negation, add ! in front eg. !Mo
} elsif ("$self->{_action}" eq "reject") {
$rule .= "-j REJECT ";
} elsif ("$self->{_action}" eq 'inspect') {
- $rule .= "-j QUEUE ";
+ my $target = ipt_get_queue_target('SNORT');
+ return ('Undefined target for inspect', ) if ! defined $target;
+ $rule .= "-j $target ";
} elsif ("$self->{_action}" eq 'modify') {
# mangle actions
my $count = 0;