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

pfSense Shell - shell_exec php

Scheduled Pinned Locked Moved Development
2 Posts 2 Posters 252 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.
  • T
    tobijuan
    last edited by Oct 17, 2019, 7:31 AM

    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
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Oct 21, 2019, 7:26 PM

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