Question concerning Port Forward

Started by Pete5, Today at 10:08:28 AM

Previous topic - Next topic
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

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.
Hardware:
DEC740

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.
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense
N355 - i226-V | AQC113C | 16G | 500G

PRXMX
N5105 - i226-V | 2x8G - #1
N100 - i226-V | 16G - #2
8400T - i219 | CX322A | 16G - #3