### INTERFACES ###
if = "{ re0 }"
#Intra
table <intranet> { 127.0.0.1 192.168.2.111 }
pass in quick from <intranet> to any keep state
#Network
table <network> persist
block quick from <network>
pass in on $if proto tcp from any to any \
keep state (max-src-conn 100, max-src-conn-rate 15/1, \
overload <network> flush global)
#ruleset
block in all
pass in quick on lo0
pass out quick on lo0
table <bruteforce> persist file "/var/db/blacklist"
block quick from <bruteforce>
pass in quick on re0 proto tcp from any to any port 22 keep state
pass in quick on re0 proto tcp from any to any port 3306 keep state
pass in quick on re0 proto tcp from any to any port 11002 keep state
pass in quick on re0 proto tcp from any to any port 13000 keep state
pass in quick on re0 proto tcp from any to any port 13001 keep state
pass in quick on re0 proto tcp from any to any port 13099 keep state
pass out all keep state