Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Question regarding ipfw syntax

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 3 Posters 2.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      mrmunkey
      last edited by

      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 list

      
      From [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.
      1 Reply Last reply Reply Quote 0
      • A Offline
        ang
        last edited by

        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)

        1 Reply Last reply Reply Quote 0
        • jimpJ Offline
          jimp Rebel Alliance Developer Netgate
          last edited by

          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.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.