Here is my situation (hypothetically).
-
I have several vlans.
-
One vlan has a server delivering http content over a nonstandard port (8080, let’s say).
-
I want hosts on the same vlan as that server to use 8080 while accessing it.
-
I want hosts on all other vlans and the internet to access it using port 80.
-
I can achieve this with outbound NAT rules on the WAN interface and each of the other vlans, but I’d rather accomplish it with a single NAT rule on the server’s vlan (inbound rule, I’m assuming?).
I have never really messed with source NAT rules (other than masquerade for a gateway), so I’m not sure how they work. I tried to make it look like the outbound rule reversed, but that didn’t work.
I’m configuring this on a Ubiquiti Edgerouter, but I’m pretty sure I’m just missing it conceptually…