Name based portforwarding

NethServer Version: Nethserver 7 latest
Module: Firewall

Hi all!

I tried figuring out, how is possible to forward a request by the target hostname.
I want to publish more virtual machine from the local network, by with his hostname.

The nethserver hostname is srv1.mydomain.tld, with one WAN IP, but when a request is coming to the hostname srv3.mydomain.tld from WAN, then forward that request to the local machine. Like the name based virtualhosts in apache2.

It is possible with NethServer7?

Thanks!

Hi @fszontagh,

for HTTP/HTTPS you may use Apache Reverse Proxy module:

http://docs.nethserver.org/en/v7/proxy_pass.html

For TCP you need nginx I think, which needs manual configuration.

1 Like