How to block ip address via LAN interface on WAN interface without login
-
I want to add a code to my server module, that can call Pfsense and add a deny rule for an IP address
How to achieve it?
-
Activate SSH and allow it with a firewall rule if your LAN access is restricted.
Use SSH or plink or something like that to send an easyrule command to pfSense:
https://doc.pfsense.org/index.php/Adding_Rules_With_easyrule -
thanks, that will work
Can I call http://<lan ip="" addr="">/easyrule.php?action
With Java webrequest</lan> -
Found solution, expect