NetBSD-Users archive

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

ipnat and ipv6



Before I hunt to far, anyone see why line 1 is OK, but line 2 is BAD?

# cat /etc/ipnat.conf
rdr xennet0 0/0 port 80 -> 127.0.0.1 port 3200 tcp
rdr xennet0 ::0/0 port 80 -> ::1 port 3200 tcp
# ipnat -f /etc/ipnat.conf
syntax error error at ":", line 2

Yet according to ipnat(5)

       For shorthand notations such as "0/32", the equivalent for IPv6 is
       "0/128". IPFilter will treat any netmask greater than 32 as an implicit
       direction that the address should be IPv6, not IPv4.  To be unambiguous
       with 0/0, for IPv6 use ::0/0.

The rule might be wrong, but the syntax ought to be right? (That is a
naive "translation" of a working IPv4 rule - more to it than that?)


Cheers,

Patrick


Home | Main Index | Thread Index | Old Index