[Ferm] Easier notation for rules with the same outcome

Marc Haber mh+ferm at zugschlus.de
Wed Dec 9 00:48:21 CET 2009


Hi,

I would like to have a way to write

chain f interface $if daddr 192.1.1.16 {
  protocol tcp dport 9100;
  protocol udp dport 161;
} jump drop;

some easier than
chain f interface $if daddr 192.1.1.16 {
  protocol tcp dport 9100 jump drop;
  protocol udp dport 161 jump drop;
}

Just imagine that there are not two rules but ten, in that situation
the tenfold "jump drop" would clutter up the code. Is it possible to
write it any easier? The first form, which is my current favorite,
does _not_ work ("No action defined, do you mean NOP").

Any hints would be appreciated.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 3221 2323190


More information about the Ferm mailing list