For the life of me I can't remember where to put this. I have a jail on my PC-BSD system and from the base system I want to set up an internal alias for it so I can just type "tomcat7" in my browser instead of the IP and port, where would I put this?
I'm not entirely 100% absolutely positively sure, but I don't think you can put port numbers in /etc/hosts. If you want all inbound traffic for the jail to be redirected to a certain port number, you may have to set up a small NAT (e.g. using PF) on the host.
If your network has a domain name, add it to the middle entry: something like
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.