[list.status]
command:/usr/local/opnsense/scripts/ipsec/list_status.py
parameters:
type:script_output
message:IPsec list status

[list.leases]
command:/usr/local/opnsense/scripts/ipsec/list_leases.py --leases
parameters:
type:script_output
message:IPsec list ip address leases

[list.pools]
command:/usr/local/opnsense/scripts/ipsec/list_leases.py
parameters:
type:script_output
message:IPsec list pools

[list.spd]
command:/usr/local/opnsense/scripts/ipsec/list_spd.py
parameters:
type:script_output
message:List SPD entries

[list.sad]
command:/usr/local/opnsense/scripts/ipsec/list_sad.py
parameters:
type:script_output
message:List SAD entries

[list.legacy_vti]
command:/usr/local/opnsense/scripts/ipsec/get_legacy_vti.php
parameters:
type:script_output
message:IPsec list legacy VirtualTunnelInterfaces

[get.swanctl]
command:/usr/local/opnsense/scripts/ipsec/get_swanctl.py
parameters:
type:script_output
message:Get swanctl.conf file

[connect]
command:/usr/local/opnsense/scripts/ipsec/connect.py
parameters:%s
type:script
message:IPsec connect %s

[disconnect]
command:/usr/local/opnsense/scripts/ipsec/disconnect.py
parameters:%s
type:script
message:IPsec disconnect %s

[spddelete]
command:/usr/local/opnsense/scripts/ipsec/spddelete.py
parameters:%s
type:script_output
message:Delete SPD entry %s

[saddelete]
command:/usr/local/opnsense/scripts/ipsec/saddelete.py
parameters:%s
type:script_output
message:Delete SAD entry %s

[status]
command:/usr/local/sbin/pluginctl -s strongswan status
parameters:
type:script_output
message:Request IPsec status

[start]
command:/usr/local/sbin/pluginctl -c ipsec
parameters:
type:script
message:IPsec service start

[stop]
command:/usr/local/etc/rc.d/strongswan onestop
parameters:
type:script
message:IPsec service stop

[restart]
command:/usr/local/etc/rc.d/strongswan onestop; /usr/local/sbin/pluginctl -c ipsec
parameters:
type:script
message:IPsec service restart
description:Restart IPsec service

[reload]
command:/usr/local/sbin/pluginctl -c ipsec
parameters:
type:script
message:IPsec service reload
description:Reload IPsec service
