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

    EasyRule Not Functioning

    Firewalling
    firewall easyrule
    3
    4
    781
    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
      msadmire
      last edited by

      Hi,

      After attempting to add a firewall rule via easyrule, my changes aren't being saved / reflected to the GUI.
      For example, running the command easyrule block wan 1.1.1.1 yields the following message: Host added successfully - however, I cannot see any added block rule in the GUI (/firewall_rules.php).

      Additionally, easyrule showblock yields the following message: No block rules set on interface: wan.

      I am running pfSense v2.6.0-RELEASE.

      D 1 Reply Last reply Reply Quote 0
      • D
        DrPhil @msadmire
        last edited by

        @msadmire
        Try

        sudo easyrule block wan 1.1.1.1
        
        M 1 Reply Last reply Reply Quote 0
        • M
          msadmire @DrPhil
          last edited by msadmire

          @drphil
          I am currently attempting to use the command "easyrule pass ..." and have discovered that it works when I run it from the main shell. However, when I try to run the same command from an SSH session using a different user, it says "Successfully added pass rule!" (same result as main shell) but the rule doesn't actually get added.
          I've confirmed that the user is assigned the following permissions, which should allow for it to work: "WebCfg - All pages", "User - System: Shell account access", "WebCfg - Firewall: Easy Rule add/status".

          Attempting to use sudo results in: sudo: Command not found.

          How can I get this to work from a (non-root) SSH session?

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

            @msadmire said in EasyRule Not Functioning:

            How can I get this to work from a (non-root) SSH session?

            Install and configure the sudo package first, then use sudo to run the command. It's not a part of the base system.

            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.