Fix jsonnet examples

This commit is contained in:
ppom 2023-12-21 12:00:00 +01:00
parent 380599c80a
commit b834e02755
2 changed files with 6 additions and 6 deletions

View File

@ -97,9 +97,9 @@ local banFor(time) = {
iptables([ '-I', 'INPUT', '-p', 'all', '-j', 'reaction' ]), iptables([ '-I', 'INPUT', '-p', 'all', '-j', 'reaction' ]),
], ],
stop: [ stop: [
iptables([ '-D,', 'INPUT', '-p', 'all', '-j', 'reaction' ]), iptables([ '-D', 'INPUT', '-p', 'all', '-j', 'reaction' ]),
iptables([ '-F,', 'reaction' ]), iptables([ '-F', 'reaction' ]),
iptables([ '-X,', 'reaction' ]), iptables([ '-X', 'reaction' ]),
], ],
streams: { streams: {
ssh: { ssh: {

View File

@ -32,11 +32,11 @@ local iptables(args) = ['ip46tables', '-w'] + args;
// Those commands will be executed in order at stop, after everything else // Those commands will be executed in order at stop, after everything else
stop: [ stop: [
// Remove the chain from the INPUT chain // Remove the chain from the INPUT chain
iptables(['-D,', 'INPUT', '-p', 'all', '-j', 'reaction']), iptables(['-D', 'INPUT', '-p', 'all', '-j', 'reaction']),
// Empty the chain // Empty the chain
iptables(['-F,', 'reaction']), iptables(['-F', 'reaction']),
// Delete the chain // Delete the chain
iptables(['-X,', 'reaction']), iptables(['-X', 'reaction']),
], ],
// streams are commands // streams are commands