[j-nsp] Block port 0 traffic

Randy Bush randy at psg.com
Thu Oct 14 22:28:50 EDT 2004


>>> term deny-port-zero {
>>>     from {
>>>         protocol [ tcp udp ];
>>>         source-port 0;
>>>         destination-port 0;
>>>     }
>>>     then {
>>>         count deny-port-zero;
>>>         sample;
>>>         discard;
>>>     }
>>> }

my read of the manual sez that this will only match packets
with BOTH dest and source ports of 0.

i think you need two separate terms.

randy



More information about the juniper-nsp mailing list