On Sun, 2008-02-03 at 08:49 -0800, Tom Eastep wrote:
> 
> Perl is tolerant of extraneous whitespace after the leading special character.
> 
> [EMAIL PROTECTED]:~/shorewall/branches/4.0/Shorewall-perl> perl -e '($foo, $ 
> bar) = (1,2); print "$bar\n"'
> 2
> [EMAIL PROTECTED]:~/shorewall/branches/4.0/Shorewall-perl> 

Interesting.  I didn't know this.

> > PARAM       DEST    SOURCE  ospf
> > PARAM       DEST    224.0.0.22 igmp
> > PARAM       1.2.3.4 5.6.7.8 ospf
> > PARAM       SOURCE  DEST    ospf
> > PARAM       -       224.0.0.5 ospf
> > PARAM       -       224.0.0.6 ospf

> The SOURCE in the first two rules in 'fw'.

/me smacks forehead

Doh!  Of course.

>  The first rule will appear in
> the 'fw2loc' chain while the second will appear in the 'fw2fw' chain,
> which is not what you want.

In fact, the second rule does appear in the fw2loc chain:

 3159  229K ACCEPT     89   --  *      *       0.0.0.0/0            0.0.0.0/0   
        
    0     0 ACCEPT     2    --  *      *       0.0.0.0/0            224.0.0.22  
        

But I still wonder why the

PARAM   SOURCE  DEST    ospf

rule translates into:

 6431  509K ACCEPT     89   --  *      *       0.0.0.0/0            0.0.0.0/0   
        

b.

Attachment: signature.asc
Description: This is a digitally signed message part

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to