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' ]),
|
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: {
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user