fix example

This commit is contained in:
ppom 2023-11-27 12:00:00 +01:00
parent f1b7d4b4c7
commit 7503e57063

View File

@ -70,10 +70,10 @@ local iptables(args) = ['ip46tables', '-w'] + args;
actions: { actions: {
// actions have a user-defined name // actions have a user-defined name
ban: { ban: {
cmd: iptables(['-A', 'reaction', '-s', '<ip>', '-j', 'reaction-log-refuse']), cmd: iptables(['-A', 'reaction', '-s', '<ip>', '-j', 'DROP']),
}, },
unban: { unban: {
cmd: iptables(['-D', 'reaction', '-s', '<ip>', '-j', 'reaction-log-refuse']), cmd: iptables(['-D', 'reaction', '-s', '<ip>', '-j', 'DROP']),
// if after is defined, the action will not take place immediately, but after a specified duration // if after is defined, the action will not take place immediately, but after a specified duration
// same format as retryperiod // same format as retryperiod
after: '48h', after: '48h',