Hi everyone,
I feel somewhat embarrassed posting this, but I'm at a complete loss ...
Ive got two FreeBSD web servers (10.1).
One is running on RackSpace and the other on DigitalOcean. The RS server has been up and running for sometime now and PF is working perfectly for me. This week I copied over my pf.conf to my DO box and the rules don't appear to be loading at all - I did amend the ext_if name.
My rc.conf:
The only difference between the two machines is platform they sit on, a quick portscan of my DO box suggests the everything is open, including 3306 :s
Any thoughts?
I feel somewhat embarrassed posting this, but I'm at a complete loss ...
Ive got two FreeBSD web servers (10.1).
One is running on RackSpace and the other on DigitalOcean. The RS server has been up and running for sometime now and PF is working perfectly for me. This week I copied over my pf.conf to my DO box and the rules don't appear to be loading at all - I did amend the ext_if name.
Code:
ext_if="vtnet0"
webports = "{http}"
int_tcp_services = "{www}"
#int_udp_services = "{nothing}
set skip on lo
set loginterface $ext_if
scrub in all random-id fragment reassemble
block return in log all
block out all
antispoof quick for $ext_if
table <bruteforce> persist
block quick from <bruteforce>
pass in quick proto tcp to $ext_if port 22 keep state (max-src-conn 15, max-src-conn-rate 5/3, overload <bruteforce> flush global)
# Webserver
pass proto tcp from any to $ext_if port $webports
# Allow essential outgoing traffic
pass out quick on $ext_if proto tcp to any port $int_tcp_services
pass out quick on $ext_if proto udp to any port $int_udp_services
Code:
pf_rules="/etc/pf.conf"
pf_enable="YES"
Code:
Open TCP Port: 21 ftp
Open TCP Port: 22 ssh
Open TCP Port: 80 http
Open TCP Port: 554 rtsp
Open TCP Port: 3306 mysql
Open TCP Port: 7070 arcp