On Tue, Aug 11, 2015 at 04:28:04PM +0100, Patrick Welche wrote: > 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.
Despite ipnat(5), it seems that ::0/0 just is not accepted. rdr xennet0 inet6 any port 80 -> ::1 port 3200 tcp does the trick... Cheers, Patrick
