PF Strange behavior in PF? (cannot allocate memory)

I'm grateful there's people like you, even if it didn't work!! It was more than worth a try.
Thank's for the link, I have been there already, but I can't remember if I tried the kern.maxdsiz settings.

It might be far fetched, but I have my configuration files (.conf) in /usr/local/etc and basically every examples out there, points to /etc instead.
So, there are a few more things I could try, before giving up completely!
 
This is what I ended up doing, to almost get it working, if someone having similar problems.
Still getting an error about an anchor during boot, and sometimes about memory allocation.

/etc/rc.conf

Code:
pf_enable="YES"
pf_rules="/usr/local/etc/pf.conf"
pflog_enable="YES"

/usr/local/etc/pf.conf

Code:
# table <ddos> persist file "/usr/local/etc/pf.ddos.list"
# Create table ddos without loading ips
table <ddos> persist
block in quick from <ddos> to any

/etc/rc.local

Code:
/sbin/pfctl -t ddos -T flush
/sbin/pfctl -t ddos -T replace -f /usr/local/etc/pf.ddos.list

crontab every 15 minutes

Code:
pfctl -t ddos -T flush 2>&1 | tee -a /var/log/ddosip.log
pfctl -t ddos -T replace -f /usr/local/etc/pf.ddos.list 2>&1 | tee -a /var/log/ddosip.log

# dmesg -a

Code:
/* message during boot */
Starting local daemons:0 addresses deleted.
pfctl: Anchor does not exist.
Server ready
 
Back
Top