ipnat syntax error?
Erik Nørgaard
norgaard at locolomo.org
Sun Apr 2 01:40:00 UTC 2006
Juergen Heberling wrote:
> Could someone please check me on this ...
>
> fw1# ipnat -CFn -f /etc/ipnat.rules
> 0 entries flushed from NAT table
> 1 entries flushed from NAT list
> syntax error error at "-", line 1
>
> /etc/ipnat.rules contains:
> map em0 192.168.1.0/24 -> 204.134.75.1-10
> .. snip ..
>
> line 1 in the rules file is the example from the FreeBSD handbook.
> I'm running FreeBSD6.0 stable.
It seems to be a documentation bug, the ipf-howto.txt distributed with
ipfilter makes no mention of that notation, instead you should use cidr
notation, for example
204.134.75.0/29
Erik
--
Ph: +34.666334818 web: www.locolomo.org
S/MIME Certificate: www.daemonsecurity.com/ca/8D03551FFCE04F06.crt
Subject ID: 9E:AA:18:E6:94:7A:91:44:0A:E4:DD:87:73:7F:4E:82:E7:08:9C:72
Fingerprint: 5B:D5:1E:3E:47:E7:EC:1C:4C:C8:3A:19:CC:AE:14:F5:DF:18:0F:B9
More information about the freebsd-questions
mailing list