Srinivasa Hebbar wrote:

> The rules generated ${VARDIR/.restart is as follows.
>     run_iptables -A loc2net -p tcp --match mac --mac-source 00:01:01:01:01:01 
> --dport 80 -j ACCEPT
>     progress_message "   Rule \"ACCEPT loc:~00-01-01-01-01-01 net tcp 80     
> \" added."
>     run_iptables -A loc2net -p tcp -i net0 -s ~00-02-02-02-02-02 --dport 80 
> -j ACCEPT 
>     progress_message "   Rule \"ACCEPT loc:net0:~00-02-02-02-02-02 net tcp 80 
>     \" added."
> 
> Looks like this is a compiler issue.
> 
> I am using shorewall  3.4.4

Attached is a patch for 4.0 Shorewall-shell which applies with an offset to
3.4.4.

-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 7862)
+++ compiler	(working copy)
@@ -1722,6 +1722,10 @@
     case "$client" in
 	-)
 	    ;;
+	*:~*|*:!~)
+	    rule_interface_verify ${client%:*}
+	    cli="$(match_source_dev ${client%:*}) $(mac_match ${client#*:})"
+	    ;;	    
 	*:*)
 	    rule_interface_verify ${client%:*}
 	    cli="$(match_source_dev ${client%:*}) $(source_ip_range ${client#*:})"

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to