Hello everyone!
I need to block port 445 (from this port someone attacked) from my internal network to Internet. My pf conf as below:
I need to block port 445 (from this port someone attacked) from my internal network to Internet. My pf conf as below:
Code:
ext_if="em0"
ext_ip="x.x.x.x"
int_if="vr0"
sync_if="msk0"
vlan1000_if="vlan1000"
safe_ports="{ 53,8080,22,8140 }"
safe_nat_ports="{ 110,25,143,993,443,587,465,995,3000,389,21,20,53 }"
table <clients> persist file "/etc/clients.conf"
#scrub in all
nat-anchor "ftp-proxy/*"
rdr-anchor "ftp-proxy/*"
nat on $ext_if from y.y.y.y/25 to any port $safe_nat_ports -> $ext_if
nat on $ext_if from z.z.z.z/21 to any port $safe_nat_ports -> $ext_if
nat on $ext_if from <clients> to any -> $ext_ip
anchor "ftp-proxy/*"
#block in
#pass out
pass in all
pass out all