network port redirection


bah1976

Recommended Posts

In a perfect world, there would be such thing as DNS for ports.  i.e., I could go to http://plex.mydomain.com and get redirected to 192.168.1.1:32400, or http://deluge.mydomain.com and get redirected to 192.168.1.1:8112.  I know you can hit all these from the dockers page - but how do you guys handle this for the non-techies in the family who have no business being in the unraid admin panel?  I used to have a "portal" i.e. static html page that you could get to via http://home.mydomain.com that had all the port links on it, but that was on a Xen VM.  I can't even have a http host docker because it would have to be on something different than port 80 - and I want this to be seamless to the house..

 

Is there such thing that would let me:

1) host a web server docker on a different IP than my host. I think Docker can somehow do that via host networking and other bindings, but I don't know if unRaid can handle it.

2) do some php magic that when I browse to plex.mydomain.com:80 on that IP, it would redirect to plex.mydomain.com:32400

 

Any thoughts?

Link to comment

Interesting. I think I can do that redirection through bluehost too.  But that will end up with me redirecting "on the line" to an internal IP/port.  Should be ok - it would only actually work from inside my network, but it relies on outside services to function.  And then there's the exception - there are a couple where it'd be handy to redirect differently based on external or internal connections.  Anybody set up this as an internally hosted DNS service?

Link to comment

I've been in your shoes before.

 

What you want is a reverse proxy.

Most current webservers have this ability.

 

Also, you can make the reverse proxy do redirects to port 443 and handle all the SSL work.

 

Sophos UTM Home Router has a built in reverse proxy and that would control access from the router.

 

Link to comment

In a perfect world, there would be such thing as DNS for ports.  i.e., I could go to http://plex.mydomain.com and get redirected to 192.168.1.1:32400, or http://deluge.mydomain.com and get redirected to 192.168.1.1:8112.  I know you can hit all these from the dockers page - but how do you guys handle this for the non-techies in the family who have no business being in the unraid admin panel?  I used to have a "portal" i.e. static html page that you could get to via http://home.mydomain.com that had all the port links on it, but that was on a Xen VM.  I can't even have a http host docker because it would have to be on something different than port 80 - and I want this to be seamless to the house..

 

Is there such thing that would let me:

1) host a web server docker on a different IP than my host. I think Docker can somehow do that via host networking and other bindings, but I don't know if unRaid can handle it.

2) do some php magic that when I browse to plex.mydomain.com:80 on that IP, it would redirect to plex.mydomain.com:32400

 

Any thoughts?

 

for lan only, use a dns server to create forwards.

 

For outside access to your services, there are 2 good options:

 

1) Reverse proxy as mentioned above. Setting up is not that straightforward, but works really well for the end user once it is set up. I use nginx container as the reverse proxy. mydomain.com/sab goes to sabnzbd and mydomain.com/cp goes to couchpotato, etc.

2a) Your domain name provider may already support advanced dns forwarding

My provider of choice is dynadot. I can set up different subdomain forwards including to different ports. For instance, dynadot can forward cp.mydomain.com to homeserver:5000 and forward sab.mydomain.com to homeserver:8000 etc. (You can use dynamic dns address like from duckdns for the homeserver address if you don't have a static IP)

2b) Or your hosting provider may allow that. I use hostgator and they also allow for forwarding subdomains to different IP:port combos

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.