This should be simple, but I'm not seeing it.
I'm trying to open a port in pf. I've set up a test-jail with NGINX.
I can reach it from the LAN using the internal IP.
I can't reach it externally, port check comes back with connection refused.
pf.conf
[/CODE]
I'm trying to open a port in pf. I've set up a test-jail with NGINX.
I can reach it from the LAN using the internal IP.
I can't reach it externally, port check comes back with connection refused.
pf.conf
Code:
### pf.conf
### Interfaces
WAN="wan0"
LAN="lan0"
JAIL="lo1"
### Networks
LOCAL=$LAN:network # Internal IP-range is 10.0.0.X
JAILS=$JAIL:network # Jails are on 10.0.1.X
### Jails
NGINX= "10.0.1.50" # Webserver test jail
set loginterface $WAN
### REDIRECTION ###
### Bridge subnet
nat on $WAN from $LOCAL to any -> ($WAN)
nat on $WAN from $JAILS to any -> ($WAN)
### NGINX
rdr pass on $WAN proto tcp from any to any port http -> $NGINX port http
### DENY any redirection not defined above
no rdr
### Open the firewall
pass in quick log all
pass out quick log all
[CODE]