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

    Unblocking IPs from the Command Line

    Scheduled Pinned Locked Moved Firewalling
    2 Posts 2 Posters 1.8k 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.
    • A Offline
      atlasis
      last edited by

      Hi,

      I was just wondering if it possible to handle any of the firewall rules from the command line.

      For example, can I list the rule or unblock/block an IP from the command line?

      Thanks in advance

      Antonios

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

        Not at this time, not easily anyhow.

        If it's in a rule or alias, you could hand edit the config (using viconfig) and then run /etc/rc.filter_configure

        If it's in a table that is dynamic, like snort or the ssh lockout, you can clear it on the command line with pfctl like so:

        pfctl -t sshlockout -T flush

        That would clear all entries in the sshlockout table

        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.