OPNsense Forum

English Forums => General Discussion => Topic started by: Pete5 on December 04, 2026, 10:08:28 AM

Title: Question concerning Port Forward
Post by: Pete5 on December 04, 2026, 10:08:28 AM
Hi all,

i configured a port forward to a server behind my opnsense.

Interface: WAN
Version:   IPv4
Protocol:  TCP
Destination: WAN address
Destination Port: IMAPS (993)
Redirect Target IP: myserversIP
Redirect Target Port: IMAPS (993)

It is working, but i'm confused about WAN address, i've thought that i have to set myServersIP there.
Could somebody explain it in few easy words why i have to set WAN address as destination, the traffic already comes in via the WAN port?

Thanks
Pete
Title: Re: Question concerning Port Forward
Post by: Monviech (Cedrik) on December 04, 2026, 10:59:52 AM
The initial connection targets the public IP address of your WAN interface, so that is the original destination of the packet.

You then change that original destination to a new destination, the internal IP address of your server.
Title: Re: Question concerning Port Forward
Post by: Seimus on December 04, 2026, 12:27:36 PM
Destination: WAN address
Destination Port: IMAPS (993)

Look at it like this, this means "What IP & port is the packet originally targeted/delivered to, before I want to NAT it?"

Regards,
S.