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.
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.