-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
executable file
·24 lines (23 loc) · 781 Bytes
/
Copy pathconfig.js
File metadata and controls
executable file
·24 lines (23 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
var config = {
openSSH: {
sequence : [ 7000,8000,9000 ],
seq_timeout : 10,
command : '/sbin/iptables -I sshknock 1 -s %IP% -p tcp --dport 22 -j ACCEPT',
tcpflags : 'syn',
cmd_timeout : 30,
stop_command : '/sbin/iptables -D sshknock -s %IP% -p tcp --dport 22 -j ACCEPT'
},
flush: {
sequence : [4000,4001,4002],
seq_timeout : 10,
command : '/sbin/iptables -F',
tcpflags : 'syn'
},
closeSSH: {
sequence : [9000,8000,7000],
seq_timeout : 5,
command : '/sbin/iptables -D sshknock -s %IP% -p tcp --dport 22 -j ACCEPT',
tcpflags : 'syn'
}
};
exports.config = config;