Question regarding ipfw syntax
-
Hi,
I have been using iptables in another os. I am lost when it comes to listing what rules I have currently running with ipfw. I am also assuming that pfsense is using ipfw. Please correct me if I am wrong. from the ipfw man pages```
ipfw listFrom [http://www.cyberciti.biz/faq/howto-setup-freebsd-ipfw-firewall/](http://www.cyberciti.biz/faq/howto-setup-freebsd-ipfw-firewall/) I am seeing that if I get an error like the one below that I may have a issue.
ipfw: getsockopt(IP_FW_GET): Protocol not available
All I am trying to do is run something comparable to :
iptables -L
Thanks in advance for any help.
-
Bump, I'm curious about this as well. Is there any way to get the rules/nats via CLI, hit counts, etc?
(pfctl -s rules shows it, but I wonder if there's an ipfw or similar command)
-
pfSense uses pf and ipfw, pf for firewalling and most tasks, and ipfw for captive portal, limiters, and maybe a couple other things.
You can run "pfctl -vvsr" and "pfctl -vvsn" to see the rule list and nat list, respectively. The extra v's on there will show hit counts since the last filter reload.