How to Use a NethServer Leader Node as a Gateway to Access Applications on Private Worker Nodes?

Hi Donny,

and welcome to NethServer Community.

You could use 2 HTTP routes, the first one to provide a cert and redirect from the VPS node to the wireguard IP of the home node and the second one to redirect from the home node to the “3rd machine” in your network.
In my test I entered the domain name pointing to my NS8 VPS in my browser and I got the web page of the old NethServer 7 at home.

In this example the home node is node 3 and has wireguard IP 10.5.4.3 and the VPS node is node 1.
internalsite.domain.com points to the VPS node in DNS.

The first HTTP route:

Node: 1
URL: http://10.5.4.3
Host: internalsite.domain.com
Request Let’s Encrypt certificate: Enabled (to get a valid cert)

The second one:

Node: 3
URL: http://192.168.1.10 (IP of the 3rd machine in LAN)
Host: internalsite.domain.com

Now it should be possible to browse to internalsite.domain.com and see the webpage of the 3rd machine.

4 Likes