From 2a60e8e4d1f179ec41d02013b174aa63f2bba59b Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Tue, 22 Dec 2009 20:52:58 -0800 Subject: Fix Bug 5173 Firewall becomes out of sync with iptables when logging is used with action inspect in a rule - increment num of rules with inspect + log --- lib/Vyatta/IpTables/Rule.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Vyatta/IpTables/Rule.pm') diff --git a/lib/Vyatta/IpTables/Rule.pm b/lib/Vyatta/IpTables/Rule.pm index 5fec1b3..6105ae7 100644 --- a/lib/Vyatta/IpTables/Rule.pm +++ b/lib/Vyatta/IpTables/Rule.pm @@ -309,6 +309,7 @@ sub get_num_ipt_rules { if (("$self->{_log}" eq "enable") && (("$self->{_action}" eq "drop") || ("$self->{_action}" eq "accept") || ("$self->{_action}" eq "reject") + || ("$self->{_action}" eq "inspect") || ("$self->{_action}" eq "modify"))) { $ipt_rules += 1; $ipt_rules++ if $protocol_tcpudp == 1; -- cgit v1.2.3