How to steer public traffic to a jail

Ernie Luzar luzar722 at gmail.com
Fri Aug 14 14:58:05 UTC 2020


Carsten Bäcker wrote:
> Hi,
> 
> you may want to have a look into reverse proxying, e.g. using nginx on
> your jail-host.
> Really basic example:
> 
> |http { server { listen 80; server_name your.1st.domain.com; location /
> { proxy_pass http://127.0.1.2; } } server { listen 80; server_name
> your.2nd.domain.com; location / { proxy_pass http://127.0.1.3; } } }|
> 

This looks interesting.

When does nginx see the packet, before the firewall or after the 
firewall passes it through?

Employing this concept each unique domain name is the element used to 
target the jails private ip address.

Would need a server clause for each port number/domain name targeting 
each jail.

This would work for port 21, 22, 23, 25


More information about the freebsd-questions mailing list