By default, computers and/or servers located behind a gateway are not accessible from the Internet (WAN).
However, thanks to port forwarding, it's possible to make a server accessible on a specific port from the outside.
In this tutorial, we installed a web server in our DMZ. But, the principle would be the same if it were the LAN network.
As you can see, this web server has the local IP address "10.10.0.10".
To create port forwarding via NAT on pfSense, go to: Firewall -> NAT.
In the "Port Forward" tab, click: Add.
On the "Edit Redirect Entry" page that appears, you can configure the settings:
For access to our web server from the WAN (Internet) interface, configure these settings:
Then click: Save.
Sources :
The created rule appears.
Click "Apply Changes" to apply the changes.
Plain Text
The NAT configuration has been changed. The changes must be applied for them to take effect.
Port forwarding is effective.
If you go to "Firewall -> Rules -> WAN", you will see that a rule has been created in the pfSense firewall to allow network traffic with the same values (same source, same destination, same port, . ..).
Display the pfSense dashboard by clicking on the pfSense logo at the top left.
As you can see, in our case our WAN address uses a private (local) IP address.
If this is also your case, then make sure to allow access to the pfSense WAN interface from a private (local) IP address. Ex: 10.0.0.x, 192.168.1.x, ...
To do this, go to "Interfaces -> WAN".
The "Interfaces / WAN" page appears.
At the bottom of the page, make sure to uncheck the "Block private networks and loopback addresses" box.
Note: disabling this option will remove the "Block private networks" rule from the pfSense firewall which by default blocks network traffic on the WAN interface coming from "RFC 1918 networks".
Then, at the top of the page, click "Apply Changes".
Modifications have been saved.
From a computer located on the Internet or connected to the pfSense WAN network (if applicable), enter the pfSense WAN IP address in your web browser.
As expected, the default IIS page (hosted by our local web server on Windows Server) appears.
As a reminder, pfSense redirects network traffic from its WAN address on port 80 to port 80 of the local IP address "10.10.0.10".
The IP address "10.10.0.10" corresponding in our case to our local web server.
Firewall 6/4/2025
Firewall 5/9/2025
Firewall 5/30/2025
Firewall 5/15/2025
Pinned content
Contact
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.
You must be logged in to post a comment