diff options
author | Maxime THIEBAUT <46688461+0xThiebaut@users.noreply.github.com> | 2024-05-01 22:16:03 +0200 |
---|---|---|
committer | Maxime THIEBAUT <46688461+0xThiebaut@users.noreply.github.com> | 2024-05-12 10:36:34 +0200 |
commit | 549089a970e39d1ea09c10af5eaf8f696dd19d40 (patch) | |
tree | c50e8e4ce30a714d70d36434ae9e51028bb6d77a /op-mode-definitions | |
parent | 91c1a8556eedc9e9aa50d8bf415b37e53d52cb7d (diff) | |
download | vyos-1x-549089a970e39d1ea09c10af5eaf8f696dd19d40.tar.gz vyos-1x-549089a970e39d1ea09c10af5eaf8f696dd19d40.zip |
suricata: T751: Initial support for suricata
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/suricata.xml.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/op-mode-definitions/suricata.xml.in b/op-mode-definitions/suricata.xml.in new file mode 100644 index 000000000..a5025afba --- /dev/null +++ b/op-mode-definitions/suricata.xml.in @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="update"> + <children> + <node name="suricata"> + <properties> + <help>Update Suricata</help> + </properties> + <command>if test -f /run/suricata/suricata.yaml; then sudo suricata-update --suricata-conf /run/suricata/suricata.yaml; sudo systemctl restart suricata; else echo "Service Suricata not configured"; fi </command> + </node> + </children> + </node> + <node name="restart"> + <children> + <node name="suricata"> + <properties> + <help>Restart Suricata service</help> + </properties> + <command>if systemctl is-active --quiet suricata; then sudo systemctl restart suricata.service; else echo "Service Suricata not configured"; fi</command> + </node> + </children> + </node> +</interfaceDefinition> |