571
16.1 Legacy Series / Re: Intrusion Detection - Schedule Task
« on: April 06, 2016, 11:36:30 am »
Hi interkrome,
You can build your own configd actions to do so, development documentation is available here https://docs.opnsense.org/development/examples/helloworld.html?highlight=configd
For example, create a file here:
Containing something like this:
(when a description is available, you should be able to schedule the item from https://<your address>/ui/cron/ )
Don't forget to restart configd after adding new templates:
Next test your action, using:
Regards,
Ad
You can build your own configd actions to do so, development documentation is available here https://docs.opnsense.org/development/examples/helloworld.html?highlight=configd
For example, create a file here:
Code: [Select]
/usr/local/opnsense/service/conf/actions.d/actions_myactions.conf
Containing something like this:
Code: [Select]
[stop]
command:/usr/local/etc/rc.d/suricata stop
parameters:
type:script
message:reload suricata rules
description: stop suri
(when a description is available, you should be able to schedule the item from https://<your address>/ui/cron/ )
Don't forget to restart configd after adding new templates:
Code: [Select]
service configd restart
Next test your action, using:
Code: [Select]
configctl myactions stop
Regards,
Ad