tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

npf: map (rdr) range of ports



Sorry, I forgot the mail formatting requirements.

I find it pretty counter-intuitive that a port redirect like this:
| map pppoe0 dynamic proto tcp 192.168.1.17 port 40000-40100 <-
  ifaddrs(pppoe0) port 40000-40099
is a syntax error, but then this:
| map pppoe0 dynamic proto tcp 192.168.1.17 port 40000 <-
  ifaddrs(pppoe0) port 40000-40099
is fine syntactically, however it maps all 100 ports to 40000.
ipf with its equiavlent syntax would've mapped 40000 to 40000, 40001 to
40001 and so forth.

And the result seems to be that I have to add 100 map lines if i want to
redirect this port range.  Am I missing something?


Home | Main Index | Thread Index | Old Index