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

EasyRule Not Functioning

Scheduled Pinned Locked Moved Firewalling
firewalleasyrule
4 Posts 3 Posters 801 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
    msadmire
    last edited by Dec 21, 2022, 9:57 PM

    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 Apr 28, 2023, 1:27 PM Reply Quote 0
    • D
      DrPhil @msadmire
      last edited by Apr 28, 2023, 1:27 PM

      @msadmire
      Try

      sudo easyrule block wan 1.1.1.1
      
      M 1 Reply Last reply May 3, 2023, 9:59 PM Reply Quote 0
      • M
        msadmire @DrPhil
        last edited by msadmire May 3, 2023, 9:59 PM May 3, 2023, 9:59 PM

        @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?

        J 1 Reply Last reply May 4, 2023, 1:07 PM Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate @msadmire
          last edited by May 4, 2023, 1:07 PM

          @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.
            [[user:consent.lead]]
            [[user:consent.not_received]]