OPNsense Forum

English Forums => General Discussion => Topic started by: Kyong on February 29, 2016, 11:10:43 am

Title: Port forwarding - from one port to another
Post by: Kyong on February 29, 2016, 11:10:43 am
Hi,
I am trying to figure out how to port forwarding if I want to to access more computers on the same port, because I don't want to change the default port of the services. For example, I put xxx.com:9090 and it will redirect to specific LAN to port 80. Here is example and red is marked what I tried but it doesn't work.

(http://i67.tinypic.com/11i3cd2.jpg)
Title: Re: Port forwarding - from one port to another
Post by: packet loss on March 02, 2016, 06:20:43 am
Kyong first off you might want to consider updating to a newer version of OPNsense. Looking at your ICMP rule I can see it still showing a webgui bug that has been fixed. Anyways, try the following NAT rule:

Code: [Select]
WAN     TCP     *     9090     WAN address     80(HTTP)     192.168.1.14     80(HTTP)
Edit: You can't forward the same port to different IP's within your LAN. This is the problem a lot of users face when they have multiple gaming consoles. Because a specific port can only be forwarded to a specific IP within a LAN it poses a problem since for instance 2 separate XBOX 360's will need to use the same port or ports. Many users end up using universal plug and play but this poses a security risk.

So the above rule should probably conflict with the port 80 you are forwarding to LAN IP address 192.168.1.12