Wratmoko Hadi HSW wrote:
> On Mon, 2006-11-13 at 16:52 +1000, Paul Gear wrote:
>> Wratmoko Hadi HSW wrote:
>>> Dear all,
>>>
>>> After update from 3.2.4 to 3.2.5 version
>>> my maclist seem not working
>>> stop with this error :
>>>
>>> Setting up MAC Filtration -- Phase 1...
>>> iptables v1.3.6: policy match: invalid policy `--dir'
>>> Try `iptables -h' or 'iptables --help' for more information.
>>>    ERROR: Command "/sbin/iptables -A eth1_fwd -s 0.0.0.0/0 -m state
>>> --state NEW -m policy --pol --dir in -j eth1_mac" Failed
>> Have you also upgraded your kernel and/or iptables?  If you downgrade
>> your shorewall package to 3.2.4, does it work again?
>>
>> Paul
> 
> Yes, it work fine if downgrade into into 3.2.4 version

Please try the attached patch against the 3.2.5 'compiler' file
(/usr/share/shorewall/complier).

Thanks,
-Tom
-- 
Tom Eastep    \ Nothing is foolproof to a sufficiently talented fool
Shoreline,     \ http://shorewall.net
Washington USA  \ [EMAIL PROTECTED]
PGP Public Key   \ https://lists.shorewall.net/teastep.pgp.key
Index: compiler
===================================================================
--- compiler	(revision 4852)
+++ compiler	(working copy)
@@ -1572,10 +1572,9 @@
         #
         # Generate jumps from the input and forward chains
         #
-        [ -n "$POLICY_MATCH" ] && policy="-m policy --pol $ipsec --dir in" || policy=
-    
         for hosts in $maclist_hosts; do
 	    ipsec=${hosts%^*}
+	    [ -n "$POLICY_MATCH" ] && policy="-m policy --pol $ipsec --dir in" || policy=
 	    hosts=${hosts#*^}
 	    interface=${hosts%%:*}
 	    hosts=${hosts#*:}

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to