DNS redirections

thegreek1

Dabbler
Joined
Sep 20, 2020
Messages
21
Hi,

seeing that the DNS server is only able to use IP address mappings and there are no direction to ports and page, how would I get truenas to redirect http/https requests to https://1.1.1.1 and redirecting them to https://1.1.1.1:port#/web
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
One typically does this with a server load balancer, depending on the specific need. The degenerate case of a SLB is commonly referred to as a "reverse proxy", and I believe Caddy is quite popular around here. I'm not particularly familiar with it, as we're a HAproxy shop.

If you are actually looking to capture the actual IP address 1.1.1.1, you will need both a jail that answers 1.1.1.1:{80,443} and a proxy within that redirects or forwards traffic as desired.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
I believe Caddy is quite popular around here
I'm not sure how popular it is other than with me and @Basil Hendroff, but we like it, at least. Relatively trivial configuration is a big benefit, but sadly there isn't a nice GUI to configure it like Nginx Proxy Manager.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Such GUI's typically make it harder to configure things correctly. Bleh.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
To be fair, Nginx Proxy Manager feels more byzantine than useful if you need anything vaguely complex.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Yeah, we surely wouldn't want anything like a GUI to configure a NAS.

NAS configuration is generally straightforward compared to the stuff you often end up doing with a SLB.
 
Top