
When you install the "SWAG" reverse proxy in Unraid, you configure it to use ports 8080 (for HTTP) and 4443 (for HTTPS), for example, to avoid conflicting with ports 80 (HTTP) and 443 (HTTPS) used by the Unraid web interface.
Furthermore, you've probably already noticed that the domain you're using with SWAG can only be used from the outside (Internet).
Indeed, if you type your domain name into the web browser of a computer on your own local network, the connection simply fails.
This is due to "loopback," which is prohibited by default in routers. In other words, you can't access your public IP address from your own local network.
One way around this problem is to enable NAT reflection on your router (if it supports it, which is generally not the case). However, if you use pfSense as your router, you can enable this "NAT reflection" option. This means you'll be able to use your domain from the Internet and your local network as if nothing had happened.
We've already explained how to use NAT reflection with pfSense in our tutorial: pfSense 2.6 - Enable NAT reflection.
But the purpose of this tutorial is to show you that it also works with SWAG.
When using the "SWAG" reverse proxy, you need a domain whose root domain, "www" subdomain (optional), and other subdomains (one per service) point to your public IP address (i.e., the one assigned to your box).
In our case, we're using our domain "informatiweb-tuto.net," whose root domain and "www" subdomain point to our public IP address.

We also pointed the subdomain "jellyfin" (as an example for this tutorial) to the same IP address as our root domain "informatiweb-tuto.net".

If pfSense is an intermediate router (i.e., one located between your router and your computer), it has a private (local) IP address for its WAN interface.
In our case: 192.168.1.10.
Note: pfSense can be installed on a computer, a virtual machine, or purchased as a physical router from Netgate (the company that manages pfSense).

In this case, start by redirecting ports 80 (HTTP) and 443 (HTTPS) to the WAN IP address of your pfSense machine.
In our case, we redirected these two ports to the IP address "192.168.1.10," which corresponds to the IP address assigned to the pfSense WAN interface.

To ensure that packets arriving from outside reach your reverse proxy (SWAG), you must also create a port forwarding in pfSense.
To do this, in the pfSense web interface, go to: Firewall -> NAT.
Then, click the "Add" button.

Configure the port forwarding settings like this:
Then, click Save.


The new port forwarding rule appears.
Click "Add" again to also forward port 443 (HTTPS) for SWAG.

Most of the values are the same.
However, this time, select:
Click Save.


The new port forwarding rule for HTTPS also appears.
Click "Apply Changes" to apply these new rules.

The new port forwarding rules have been applied.

NAS 2/18/2026
NAS 11/21/2025
NAS 11/26/2025
NAS 5/13/2026
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