On Mon, 2011-07-18 at 13:55 -0700, Tom Eastep wrote: > On Mon, 2011-07-18 at 20:43 +0100, Steven Jan Springl wrote: > > > In the attached minimal config. the entry in the masq file generates the > > following iptables rule in the nat table: > > > > -A br0_masq -m cmd > > > > This produces the following error message: > > > > iptables-restore v1.4.11.1: Couldn't load match `cmd':No such file or > > directory > > Thanks, Steven > > I ran into that one myself and corrected it as part of a patch that > doesn't apply cleanly to Beta 1. I'll build and upload Beta 2 shortly.
Hmmm -- I see that I actually commited that fix as a separate patch which does apply (with offset) to Beta 1. Patch attached. Thanks, -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 \________________________________________________
commit a80b04bd74316901f7c5fe985f4d906b2adb8aff Author: Tom Eastep <[email protected]> Date: Mon Jul 18 09:45:59 2011 -0700 Correct formatting of empty arguments to add_commands Signed-off-by: Tom Eastep <[email protected]> diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index b0e54a1..6b3c5c5 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -728,6 +728,8 @@ sub format_option( $$ ) { sub format_rule( $$;$ ) { my ( $chainref, $ruleref, $suppresshdr ) = @_; + return $ruleref->{cmd} if exists $ruleref->{cmd}; + my $rule = $suppresshdr ? '' : "-A $chainref->{name}"; for ( qw/ p i s o d / ) {
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------------ Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________ Shorewall-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
