On 5/24/11 12:41 PM, Steven Jan Springl wrote:

> When the accounting file contains:
> 
> SECTION PREROUTING
> ACCOUNT(net2lan,192.168.0.0/24)
> 
> the following message is produced:
> 
> ERROR: Unknown accounting chain (accountpre) : /etc/shorewallA/accounting 
> (line 14)
> 
> -----------------------------------------------------------------------------------------------------------------------------
> 
> If the SECTION is changed to POSTROUTING the following message is produced:
> 
> ERROR: Unknown accounting chain (accountpost) : /etc/shorewallA/accounting 
> (line 14)

Steven,

This should fix you up.

-Tom
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________
diff --git a/Shorewall/Perl/Shorewall/Accounting.pm 
b/Shorewall/Perl/Shorewall/Accounting.pm
index aac363e..933b526 100644
--- a/Shorewall/Perl/Shorewall/Accounting.pm
+++ b/Shorewall/Perl/Shorewall/Accounting.pm
@@ -158,7 +158,7 @@ sub process_accounting_rule( ) {
     our $disposition = '';
 
     sub reserved_chain_name($) {
-       $_[0] =~ /^acc(?:ount(?:fwd|in|ing|out)|ipsecin|ipsecout)$/;
+       $_[0] =~ /^acc(?:ount(?:fwd|in|ing|out|pre|post)|ipsecin|ipsecout)$/;
     }
 
     sub ipsec_chain_name($) {

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to