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

    How to enter firewall rules manually?

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 1.3k 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.
    • D
      DraNick
      last edited by

      Hello,

      As the subject says, I am interested to know if there is a way to enter firewall rules manually?

      Something like this:

      
      -A INPUT -p UDP -m length --length 42 -m recent --set --name getstatus_cod
      -A INPUT -p UDP -m string --algo bm --string "getstatus" -m recent --update --seconds 1 --hitcount 20 --name getstatus_cod -j DROP
      
      

      Thank you!

      1 Reply Last reply Reply Quote 0
      • H
        heper
        last edited by

        i'm positive it is possible, i'm also positive its generally not a good idea todo so =-)

        anyways
        when enabled you can ssh to the box and drop to shell or you can also execute commands in the gui i believe (somewhere in the diagnostics menu)
        If you lock yourself out, then u'll be forced to go to the physical machine and remove the rules you've set.

        by the way …. pfsense does not use Iptables like the ones u mention, pfsense uses a highly modified version of 'pf' afaik
        http://www.openbsd.org/faq/pf/

        kind regards

        jeroen

        1 Reply Last reply Reply Quote 0
        • D
          DraNick
          last edited by

          Thank you for the reply! I'll see what I can do from the GUI then.

          Regards,

          Nick

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