Re: ipfw port forwarding ipv6 to localhost?

From: Andrey V. Elsukov <bu7cher_at_yandex.ru>
Date: Wed, 14 May 2025 08:07:49 UTC
On 13.05.2025 16:09, Ronald Klop wrote:
> Quick question. I have Jenkins running on port 8443 as it is running as 
> an unprivileged user.
> To keep the URLs sane I do this in IPFW:
> 
> add nat 1 ipv4 from any to any via epair8b
> nat 1 config if epair8b log redirect_port tcp 127.0.0.1:8443 443
> 
> Which works fine for years already.
> 
> Now I am configuring more and more IPv6 in my network.
> Playing around by using an ipv6 address in that config gives errors and 
> the man page gives me the idea that nat is ipv4 only.
> # ipfw add nat 2 ipv6 from any to any via epair8b
> # ipfw nat 2 config if epair8b log redirect_port tcp ::1,8443 443
> ipfw: unknown host
> 
> Can I do a similar ipfw action for ipv6?

Hi,

it is not clear what network topology do you have, but it is probably 
possible just use ipfw fwd.
I.e. something like that:

ipfw add fwd ::1,8443 ip6 from any to any 443 proto tcp via epair8b 
keep-state

-- 
WBR, Andrey V. Elsukov