diff --git a/README.md b/README.md index 865b8b0..c885379 100644 --- a/README.md +++ b/README.md @@ -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: { diff --git a/config/example.jsonnet b/config/example.jsonnet index 18583fa..8a693cc 100644 --- a/config/example.jsonnet +++ b/config/example.jsonnet @@ -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