Introducing PHPService Package



  • I have created a new package for pfSense called PHPService.

    It runs PHP as a service from the command line. It runs a controlled loop so that the execution of the PHP code is continuous. At this time the loop has a 1 second delay so that it keeps processor usage down. I may make the delay adjustable in the future. After installation the service is empty and has to have PHP code provided to it for it to do anything. You can see example PHP code that monitors the Snort Alert file for changes and disconnects sessions.

    For more information see:
    http://doc.pfsense.org/index.php/PHPService

    The snort example 'Snort Alert Disconnect Sessions' was sponsored by forum user: miteltec
    It was designed specifically for Snort alerting on p2p traffic category.



  • Hi there,
    I just installed this and have found a minor bug. It appears that you can't delete a entry once you have added it. The best you can do is disable it.

    I'm running version 1.2.2

    Thanks!



  • New version is available.

    Changes
    1. Fixed the bug that prevented the delete
    2. Added logging to  /var/log/phpservice.log anything that is echoed will be saved to the log.
    3. Also improved the php service so it backgrounds better.


Locked