Fix jsonnet examples
This commit is contained in:
parent
380599c80a
commit
b834e02755
@ -97,9 +97,9 @@ local banFor(time) = {
|
||||
iptables([ '-I', 'INPUT', '-p', 'all', '-j', 'reaction' ]),
|
||||
],
|
||||
stop: [
|
||||
iptables([ '-D,', 'INPUT', '-p', 'all', '-j', 'reaction' ]),
|
||||
iptables([ '-F,', 'reaction' ]),
|
||||
iptables([ '-X,', 'reaction' ]),
|
||||
iptables([ '-D', 'INPUT', '-p', 'all', '-j', 'reaction' ]),
|
||||
iptables([ '-F', 'reaction' ]),
|
||||
iptables([ '-X', 'reaction' ]),
|
||||
],
|
||||
streams: {
|
||||
ssh: {
|
||||
|
@ -32,11 +32,11 @@ local iptables(args) = ['ip46tables', '-w'] + args;
|
||||
// Those commands will be executed in order at stop, after everything else
|
||||
stop: [
|
||||
// Remove the chain from the INPUT chain
|
||||
iptables(['-D,', 'INPUT', '-p', 'all', '-j', 'reaction']),
|
||||
iptables(['-D', 'INPUT', '-p', 'all', '-j', 'reaction']),
|
||||
// Empty the chain
|
||||
iptables(['-F,', 'reaction']),
|
||||
iptables(['-F', 'reaction']),
|
||||
// Delete the chain
|
||||
iptables(['-X,', 'reaction']),
|
||||
iptables(['-X', 'reaction']),
|
||||
],
|
||||
|
||||
// streams are commands
|
||||
|
Loading…
Reference in New Issue
Block a user