How to redirect all traffic for a specific port?

Started by bsdkilla, December 15, 2019, 12:31:34 AM

Previous topic - Next topic
Running OpnSense 19.7.4

How can I configure OpnSense so all LAN traffic going to a specific destination port is redirected to a target IP on the LAN?

So if we have LAN IP 192.168.1.10 accessing an external IP address on port 3000, we want it redirected to target LAN IP 192.168.1.20:3000

I have tried configuring Outbound NAT but can't get this working and it seems this is broken in 19.7.x.  Can someone run me through the configuration steps in case I am doing something stupid?


You're a bit unclear about your traffic directions, but I reckon you need to use 1:1 NAT. This ties an internal host to a public IP address in your WAN range.

Bart...

Thanks for your thoughts, however 1-to-1 NAT would not achieve this as it maps source and destination IP addresses only.  We are wanting redirection to work on any Destination IP for a specific port 3000 only.


I figured it out now, it was something stupid - on the Port Forward rule I had the wrong Interface selected.