Rudi Pittman
Contributor
- Joined
- Dec 22, 2015
- Messages
- 161
I've got a bunch of different plugins that are running on various ports with their own ip addresses. I'd like to simplify things by redirecting the port within the jail so that whatever port it's using (for example emby is using port 8096) that port gets redirected to port 80 within the jail so instead of having to remember:
http://10.0.0.2:8080 is sickrage
http://10.0.0.3:9000 is couchpotato
http://10.0.0.4:7000 is nzbhydra
Those are totally made up but you get the idea. After the redirect I want http://10.0.0.2 to take me to sickpage, http://10.0.0.3 to take me to couchpotato and http://10.0.0.4 to take me to nzbhydra without having to worry about the port as it default to 80.
I'm sure it's a simple ipfw rule but I don't seem to be able to find a good example since everything I find seems to be trying to forward from the NAS ip/port to the jail ip/port.
http://10.0.0.2:8080 is sickrage
http://10.0.0.3:9000 is couchpotato
http://10.0.0.4:7000 is nzbhydra
Those are totally made up but you get the idea. After the redirect I want http://10.0.0.2 to take me to sickpage, http://10.0.0.3 to take me to couchpotato and http://10.0.0.4 to take me to nzbhydra without having to worry about the port as it default to 80.
I'm sure it's a simple ipfw rule but I don't seem to be able to find a good example since everything I find seems to be trying to forward from the NAS ip/port to the jail ip/port.