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

    How to block ip address via LAN interface on WAN interface without login

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 2 Posters 710 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.
    • R Offline
      rahul11
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • V Offline
        viragomann
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • R Offline
          rahul11
          last edited by

          thanks, that will work

          Can I call http://<lan ip="" addr="">/easyrule.php?action
          With Java webrequest</lan>

          1 Reply Last reply Reply Quote 0
          • R Offline
            rahul11
            last edited by

            Found solution, expect

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.