[SOLVED]Redirect outgoing traffic port to lan port
-
Hello,
sorry for my bad english and i don't know if this is the right section.I have installed a pfsense box with 1 LAN interface and 1 WAN interface.
I'd like to redirect the outgoing connections on a specific port to a lan address:port.
Let me write an example.
A LAN PC having address 172.16.2.10 tries to make a TCP connection to a REMOTE_IP:62150.
I'd like to force the connection to the LAN address:port 172.16.2.150:34567How I can do it? I tried many things but nothing worked.
I hope I explained it well. -
https://doc.pfsense.org/index.php/Redirecting_all_DNS_Requests_to_pfSense
-
Thank you doktornotor
but it doesn't work.
I attached screenshots
-
Why don't you have 172.16.2.20 just connect directly to 172.16.2.150?
-
^^^ This.
Thank you doktornotor
but it doesn't work.If's something on your LAN (and not pfSense itself), you'd better leave the NAT reflection enabled.
-
Again Thank you doktornotor!
By enabling pure NAT, the LAN port forward works! ;D