Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Commit 639760e

Browse files
authored
Update discord-webhook.conf
1 parent 99cf0c1 commit 639760e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: root/defaults/fail2ban/action.d/discord-webhook.conf

+5-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ actioncheck =
2020
# Notify on Banned
2121
actionban = curl -X POST "<webhook>" \
2222
-H "Content-Type: application/json" \
23-
-d '{"username":"<botname>", "content":":bell: Hey <discord_userid>! **[<name>]** :hammer:**BANNED**:hammer: IP: [<ip>](<url_check_ip><ip>) for **<bantime>** seconds after **<failures>** failure(s)."}'
24-
curl -X POST "<webhook>" \
25-
-H "Content-Type: application/json" \
26-
-d '{"username":"<botname>", "content":"If you want to unban the IP run: `fail2ban-client unban <ip>`"}'
23+
-d '{"username":"<botname>", "content":"<discord_userid> :bell: **[<name>]** :hammer:**BANNED**:hammer: IP: [<ip>](<url_check_ip><ip>) for **<bantime>** seconds after **<failures>** failure(s). If you want to unban the IP run: `fail2ban-client unban <ip>`"}'
2724

2825
# Notify on Unbanned
2926
actionunban = curl -X POST "<webhook>" \
@@ -37,6 +34,10 @@ webhook = https://discordapp.com/api/webhooks/XXXXXXXXXXXXXXX/XXXXXXXXXXXXXXXXXX
3734
# Discord Bot Username
3835
botname = Fail2Ban
3936

37+
# User ID to ping
38+
# ex: discord_userid = "<@!1234567890>"
39+
discord_userid = ""
40+
4041
# URL prefix for an IP checking website
4142
# abuseipdb is used by default since there is also an action to report an IP to their API
4243
url_check_ip = https://www.abuseipdb.com/check/

0 commit comments

Comments
 (0)