Description:

If a server in the local network (e.g. a web server) should be reachable via the internet, a port forwarding can be used. Albeit a port forwarding has the downside that the same port can only be used once. If several domains are hosted on one web server, a Reverse Proxy has to be used. It recognizes the invoked domain and relays it to the corresponding web server. Furthermore, with a Reverse Proxy a Loadbalancing as well as a backup can be implented, when several servers are entered in the Backend.

This article describes how a Reverse Proxy can be configured on a Unified Firewall. 

As of January 2023, Websockets are not supported.



Requirements:


Scenario:

1) The Unified Firewall is directly connected to the Internet


2) The router upstream from the Unified Firewall establishes the Internet connection

This scenario also includes the “parallel” solution as described in this article.



Procedure:

The setups for scenarios 1 and 2 are basically the same. For scenario 2, you additionally have to set up port forwarding on the upstream router.


1) Configuring the Reverse Proxy on a Unified Firewall (scenario 1 and 2)

1.1) Open the configuration of the Unified Firewall in a browser and go to the menu UTM → Reverse Proxy → Reverse Proxy Settings.

1.2) Activate the Reverse Proxy via the slider and click Save.

1.3) Go to the menu Backends and click on the "Plus symbol" to create a new Backend.

1.4) Change the following parameters and click Create:

Optionally you can activate SSL encryption to encrypt the connection between the Unified Firewall and the server in the local network.

1.5) Go to the menu Frontends and click on the "Plus symbol" to create a new Frontend.

1.6) Make sure, that the slider is active, change the following parameters and click Create:

The SSL certificate has to be obtained from a public certification authority (CA) in order for any party to gain access to the server. The root certificate of known public certificate authorities is usually included in the certificate store of end devices.

Thus the certificate cannot be created on a Unified Firewall. In this case the certificate would have to be exported on the Unified Firewall and imported to the end device of each party, which should have access to the server.

1.7) The configuration of the Reverse Proxy on the Unified Firewall is thereby complete. 



2) Setting up port forwarding on an upstream LANCOM router (scenario 2 only)


If you are using a router from another manufacturer, approach them for information about the appropriate procedure.

2.1) Open the configuration for the LANCOM router in LANconfig and switch to the menu item IP Router → Masqu. → Port forwarding table.

2.2) Create a new entry and adjust the following parameters:

2.3) This concludes the configuration of the router. Write the configuration back to the router.