For LAN, redirect port of external host (e.g. 220.127.116.11:80 to 18.104.22.168:2000)
I am sorry this is a newbie question. I have checked the documentation and can't figure out a seemingly obvious thing. I read all of the documentation regarding port forwarding but I don't think that is what I need.
Basically I want for the computers on the LAN (behind pfsense) one port of one external host to remap to another port of the same external host.
e.g. remap 22.214.171.124:80 to 126.96.36.199:2000
At the moment the users need to type 188.8.131.52:2000 in the browser bar, but it would be far more convenient to omit the port and use a friendly name e.g. MyExternalHost. I can setup a DNS entry for MyExternalHost 184.108.40.206 but the port is still a problem. Simplified, when users access 220.127.116.11 from their browser, I would like pfsense to reroute to 18.104.22.168:2000. I cannot do any changes to the external host (eg serve on port 80).
I don't think port forwarding is a solution for this problem as that seems to operate on the WAN IP port.
Can anybody help me out? I did read the docs but I can't figure it out :(
I don't need help on the DNS entry, just the 'automatic' port redirect…
Thanks in advance.
You need a port forwarding rule to achieve what you intend. The NAT rule can be assignd to any interface you need it.
In the rule select the LAN interface and at destination enter 22.214.171.124, port 80, Redirect target IP 126.96.36.199 port 2000
Thank you for your prompt reply.
Your suggestion worked immediately. I was confused by the description (redirect target IP - internal IP etc). I didn't realize it would also accept 188.8.131.52.