In FreeBSD 10.3 the following pf.conf opens many seemingly random ports.
How should I fix the
nmap -Pn x.x.x.x
shows each time different amount of open ports: 265, 115, etc. When the rdr pass ...
line is commented out, then nmap shows no additional open ports.
Code:
ext_if="re0"
ext_ip="x.x.x.x"
jail_if="lo1"
web_ports="{ 80, 443 }"
sshd_port=6543
jail_http="192.168.10.28"
nat pass on $ext_if from $jail_if:network to any -> $ext_ip
rdr pass log on $ext_if proto tcp from any to $ext_ip port $web_ports -> $jail_http
block log all
pass quick log proto tcp from any to $ext_ip port $sshd_port keep state
rdr pass ...
line?