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

    pfSense Shell - shell_exec php

    Development
    2
    2
    250
    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.
    • T
      tobijuan
      last edited by

      Im running shell_exec on php it shows output but the command done does not reflect on the pfsense firewall

      ex.
      When i run easyrule on the shell of pfSense itself it outputs "Host Added Successfully" it adds rules in pfSense

      When i run easyrule using shell_exec in my php code hosted by apache it also outputs "Hoste Added Successfully" but it doesnt add rules in pfSense

      help pls :< Thankyou in advance

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Trying to run a pfSense shell script from the GUI won't work as you expect (if at all). Use an actual shell.

        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.