I have a dst-nat rule in operation.
A server gets forwarded with the IP 193.0.8.248 two ports from the outside. Port forward for the Exchange 443 and 25. That works fine.
I would like to make a second server with the IP 193.0.8.254 externally achievable. But only one dst-nat rule works.
Is there any way that I can work with both rules.
Maybe you can give me a hint how to solve.
Thank you very much.
Note use of dst-port to make NAT rules more specific.
Optionally you can use to-ports=25 on second line if you actually want to forward non-standard port on WAN side to some standard port on LAN server (port 25 is used as an example).
@karlisi beat me to the answer … however, note that if you’re forwarding port from WAN to LAN while keeping the port number, you don’t need to set to-ports … at the same time, you can set several ports on single NAT config line.