Hello everyone. Since the "re"install of my home server, my pf.conf does not work as in the past.
My server is in a router DMZ, so the PF will only be protecting the server and their jails. Therefore the server has only one ethernet interface. When I load the following rules I can access my server (the host) but not the jails. I guess the NAT rules are incorrect. And even the host, when I ssh into it, it takes a couple of seconds to ask for the password.
Can you guys please point some help.
My best regards.
Systrace
My server is in a router DMZ, so the PF will only be protecting the server and their jails. Therefore the server has only one ethernet interface. When I load the following rules I can access my server (the host) but not the jails. I guess the NAT rules are incorrect. And even the host, when I ssh into it, it takes a couple of seconds to ask for the password.
Can you guys please point some help.
Code:
ext_if="msk0"
set optimization normal
set block-policy drop
set fingerprints "/etc/pf.os"
set skip on lo0
nat on $ext_if inet from ($ext_if) to any -> ($ext_if)
rdr on $ext_if proto tcp from any to ($ext_if) port 80 -> 192.168.0.15 port 80
rdr on $ext_if proto tcp from any to ($ext_if) port 443 -> 192.168.0.15 port 443
rdr on $ext_if proto tcp from any to ($ext_if) port 25 -> 192.168.0.16 port 25
rdr on $ext_if proto tcp from any to ($ext_if) port 993 -> 192.168.0.16 port 993
rdr on $ext_if proto tcp from any to ($ext_if) port 995 -> 192.168.0.16 port 995
rdr on $ext_if proto tcp from any to ($ext_if) port 22 -> 192.168.0.17 port 22
block in log on $ext_if
pass on $ext_if proto tcp from any to any port { 22, 25, 80, 443, 993, 995, 1723, 4100 } flags S/SA
pass in quick on $ext_if proto 47 from any to 192.168.0.14
pass in quick on $ext_if proto 50 from any to 192.168.0.14
pass in quick on $ext_if proto 51 from any to 192.168.0.14
pass in on $ext_if proto udp from any to any port { 500, 4500 }
pass out on $ext_if proto { tcp, udp, 47, 50, 51 } all
pass in quick on $ext_if proto tcp from any to any port > 49151
Systrace