On Tuesday 30 August 2011 22:36:40 Tom Eastep wrote:
> On Tue, 2011-08-30 at 21:22 +0100, Steven Jan Springl wrote:
> > On Tuesday 30 August 2011 14:32:34 Steven Jan Springl wrote:
> > > Tom
> > >
> > > In the attached config. the following tcfilters entry:
> > >
> > > eth0:130 1.1.1.0/24 2.2.0.0/16 tcp 100
> > >
> > > produces the following message:
> > >
> > > Use of uninitialized value $Shorewall::Tc::lastrule in string eq
> > > at /usr/share/shorewall/Shorewall/Tc.pm line 1126, <$currentfile> line
> > > 11.
> > >
> > > Steven.
> >
> > Tom
> >
> > There was a bug in the original config. I have attached an updated
> > config. This config also produces the following message:
> >
> > [: 1590: -gt: unexpected operator
>
> Steven,
>
> The first problem is fixed by this patch -- please see if you are still
> seeing the second problem.
>
> Thanks,
> -Tom
Tom
Applying the patch produced the following messages:
patching file Misc.pm
Hunk #1 succeeded at 473 with fuzz 2 (offset -3 lines).
Hunk #2 FAILED at 529.
1 out of 2 hunks FAILED -- saving rejects to file Misc.pm.rej
I have attached a copy of Misc.pm.rej
Steven.
--- Misc.pm
+++ Misc.pm
@@ -529,9 +530,13 @@
my @filters = @{$interfaceref->{filter}};
$chainref = $filter_table->{forward_chain $interface};
+ $chainref1 = $filter_table->{input_chain $interface};
if ( @filters ) {
- add_jump( $chainref , $target, 1, match_source_net( $_ ) ), $chainref->{filtered}++ for @filters;
+ for ( @filters ) {
+ add_jump( $chainref , $target, 1, match_source_net( $_ ) ), $chainref->{filtered}++;
+ add_jump( $chainref1 , $target, 1, match_source_net( $_ ) ), $chainref1->{filtered}++;
+ }
} elsif ( $interfaceref->{bridge} eq $interface ) {
add_jump( $chainref , $target, 1, match_dest_dev( $interface ) ), $chainref->{filtered}++ unless $interfaceref->{options}{routeback} || $interfaceref->{options}{routefilter};
}
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel