I created a file called firewall_rules.conf
In rc.conf I enable pf and also logging and give the path to the rules config file and the file for logging.
When I run
I type in pfctl -v -s rules and also pfctl -s rules and it shows nothing. I assume that commadn supposed to show all the rules loaded.
So, I am assuming that the rules are not being loaded. Is there a way I an find out what is the issue?
Before this I had syntax errors in the rules. I fixed them meaning when doing service pf start it would spit out syntax errors in rules
on certain lines. I fixed all of them and I know this because it cleared up those errors. I no longer have them.
However, I get no errors but a warning that it cannot load the rules file. How can I figure out as to why?
I assume it might be a permission issue? I have the file chmod 600. It's owned by root and group wheel.
Do I need to add PF to group wheel?
In rc.conf I enable pf and also logging and give the path to the rules config file and the file for logging.
When I run
Code:
Service pf start[/cmd]
I get [code] Warning: Unable to load /etc/firewall_rules.conf
I type in pfctl -v -s rules and also pfctl -s rules and it shows nothing. I assume that commadn supposed to show all the rules loaded.
So, I am assuming that the rules are not being loaded. Is there a way I an find out what is the issue?
Before this I had syntax errors in the rules. I fixed them meaning when doing service pf start it would spit out syntax errors in rules
on certain lines. I fixed all of them and I know this because it cleared up those errors. I no longer have them.
However, I get no errors but a warning that it cannot load the rules file. How can I figure out as to why?
I assume it might be a permission issue? I have the file chmod 600. It's owned by root and group wheel.
Do I need to add PF to group wheel?