update confs
This commit is contained in:
parent
5db4c67ddb
commit
2c73a8af03
@ -21,8 +21,7 @@ patterns:
|
|||||||
# Those commands will be executed in order at start, before everything else
|
# Those commands will be executed in order at start, before everything else
|
||||||
start:
|
start:
|
||||||
- [ 'ip46tables', '-w', '-N', 'reaction' ]
|
- [ 'ip46tables', '-w', '-N', 'reaction' ]
|
||||||
- [ 'ip46tables', '-w', '-A', 'reaction', '-j', 'ACCEPT' ]
|
- [ 'ip46tables', '-w', '-A', 'reaction', '-j', 'RETURN' ]
|
||||||
- [ 'ip46tables', '-w', '-I', 'reaction', '1', '-s', '127.0.0.1', '-j', 'ACCEPT' ]
|
|
||||||
- [ 'ip46tables', '-w', '-I', 'INPUT', '-p', 'all', '-j', 'reaction' ]
|
- [ 'ip46tables', '-w', '-I', 'INPUT', '-p', 'all', '-j', 'reaction' ]
|
||||||
|
|
||||||
# Those commands will be executed in order at stop, after everything else
|
# Those commands will be executed in order at stop, after everything else
|
||||||
|
@ -19,6 +19,16 @@ local banFor(time) = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
start: [
|
||||||
|
['ip46tables', '-w', '-N', 'reaction'],
|
||||||
|
['ip46tables', '-w', '-I', 'INPUT', '-p', 'all', '-j', 'reaction'],
|
||||||
|
],
|
||||||
|
stop: [
|
||||||
|
['ip46tables', '-w', '-D', 'INPUT', '-p', 'all', '-j', 'reaction'],
|
||||||
|
['ip46tables', '-w', '-F', 'reaction'],
|
||||||
|
['ip46tables', '-w', '-X', 'reaction'],
|
||||||
|
],
|
||||||
|
|
||||||
streams: {
|
streams: {
|
||||||
// Ban hosts failing to connect via ssh
|
// Ban hosts failing to connect via ssh
|
||||||
ssh: {
|
ssh: {
|
||||||
|
Loading…
Reference in New Issue
Block a user