File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- ## Version 2022/08 /16
1+ ## Version 2023/02 /16
22#
33# Fail2Ban action configuration for OPNsense
44# Author: https://linuxserver.io/
4545# Tags: See jail.conf(5) man page
4646# Values: CMD
4747#
48- actionban = curl <_allow_insecure> -s -XPOST -d '{"address ":"<ip>"}' -H "Content-Type: application/json" -u "<key> ":"<secret>" https://<firewall>/api/firewall/alias_util/add/<alias>
48+ actionban = curl <_allow_insecure> -s -u "<key> ":"<secret>" -H "Content-Type: application/json" -d '{"address ":"<ip>"}' https://<firewall>/api/firewall/alias_util/add/<alias>
4949
5050# Option: actionunban
5151# Notes.: command executed when unbanning an IP. Take care that the
5252# command is executed with Fail2Ban user rights.
5353# Tags: See jail.conf(5) man page
5454# Values: CMD
5555#
56- actionunban = curl <_allow_insecure> -s -XPOST -d '{"address ":"<ip>"}' -H "Content-Type: application/json" -u "<key> ":"<secret>" https://<firewall>/api/firewall/alias_util/delete/<alias>
56+ actionunban = curl <_allow_insecure> -s -u "<key> ":"<secret>" -H "Content-Type: application/json" -d '{"address ":"<ip>"}' https://<firewall>/api/firewall/alias_util/delete/<alias>
5757
5858# Internal variable handler for `allow_insecure`
5959_allow_insecure = $(if [ '<allow_insecure>' = true ]; then echo ' -k '; else echo ''; fi;)
You can’t perform that action at this time.
0 commit comments