how to aggregate rules using ipfw2 ?

Markie markie at notwentytwo.freeserve.co.uk
Sun Mar 30 08:22:46 PST 2003


Hi!

I remember having difficulty getting this to work when I first got IPFW2,
turns out it wouldn't accept it because there _has_ to be a space between
the { and }.

For example...

ipfw add allow ip from any to { 192.168.0.0/16 or 10.0.0.0/8 }

not

ipfw add allow ip from any to {192.168.0.0/16 or 10.0.0.0/8}

Markie

----- Original Message -----
From: "Ilia E. Chipitsine" <ilia at cgu.chel.su>
To: <questions at FreeBSD.ORG>
Cc: <ipfw at FreeBSD.ORG>
Sent: Sunday, March 30, 2003 3:18 PM
Subject: how to aggregate rules using ipfw2 ?


> Dear Sirs,
>
> how can I aggregate rules ...
>
> ipfw add allow ip from any to 192.168.0.0/16
> ipfw add allow ip from any to 10.0.0.0/8
>
> ... into the single rule, probably using { .. or .. } syntax?
> I read man page, tried few combination, but them don't work for me.
>
> Cheers,
> Ilia Chipitsine
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"
>



More information about the freebsd-questions mailing list