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

REST Style WebAPI for other systems to dynamiclly create firewalling rules.

Scheduled Pinned Locked Moved webGUI
4 Posts 2 Posters 4.2k 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.
  • B
    brokendash
    last edited by Aug 20, 2012, 5:10 AM Aug 18, 2012, 5:47 AM

    I'm wanting to have another system interact with my pfsense machine to create firewall rules, check status's, etc..  I was hoping to simply use the webgui for this in a REST manner by sending the needed http GET's an POST's. Does anyone know if this is possible or if their is a easier way and could point me to any documentation available on that?

    1 Reply Last reply Reply Quote 0
    • B
      brokendash
      last edited by Aug 20, 2012, 5:26 AM

      @brokendash:

      I'm wanting to have another system interact with my pfsense machine to create firewall rules, check status's, etc..  I was hoping to simply use the webgui for this in a REST manner by sending the needed http GET's an POST's. Does anyone know if this is possible or if their is a easier way and could point me to any documentation available on that?

      Also the console has a developer shell option however it doesn't appear to functional but their seems to be a mechanism to modify/create filter rules and other settings. I'm really not wanting to use the command line to manually drop in new filtering rules using pfctl since they will not be visible within the webgui.

      release info:
      2.0.1-RELEASE (i386)
      built on Mon Dec 12 18:24:17 EST 2011
      FreeBSD 8.1-RELEASE-p6

      1 Reply Last reply Reply Quote 0
      • B
        brokendash
        last edited by Aug 20, 2012, 1:42 PM

        Using "easyrule'  appears to be the best approach but I'm not clear on the best way to do the filter reload after adding new rules via this method.

        https://192.168.1.254:444/easyrule.php?action=pass&int=wan&proto=tcp&src=4.4.4.4&dst=5.5.5.5&dstport=1723&ipproto=inet

        http://doc.pfsense.org/index.php/Adding_Rules_With_easyrule

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Aug 20, 2012, 6:28 PM

          EasyRule automatically does a filter reload when called.

          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
          1 out of 4
          • First post
            1/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received