EasyRule Not Functioning
-
Hi,
After attempting to add a firewall rule via easyrule, my changes aren't being saved / reflected to the GUI.
For example, running the commandeasyrule 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.
-
@msadmire
Trysudo easyrule block wan 1.1.1.1
-
@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?
-
@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 usesudo
to run the command. It's not a part of the base system.