NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: npf syntax: port ranges, negation of a condition, and map rules
On Wed, Oct 28, 2020 at 12:16:36PM +0100, Rocky Hotas wrote:
> 1) How to represent port ranges? I tried with
>
> beginning_port:end_port (which for example is used in OpenBSD's pf)
> beginning_port,end_port
> beginning_port-end_port
>
> $port_range = { beginning_port, end_port }
>
> but none of them seems to work in
There is an example in /usr/share/examples/npf/host-npf.conf:
# Allow being tracerouted
pass in proto udp to any port 33434-33600
Martin
Home |
Main Index |
Thread Index |
Old Index