knockd default conf
This commit is contained in:
parent
d98bceacc4
commit
c4595ff9cf
15
assets/default_knockd
Normal file
15
assets/default_knockd
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
################################################
|
||||||
|
#
|
||||||
|
# knockd's default file, for generic sys config
|
||||||
|
#
|
||||||
|
################################################
|
||||||
|
|
||||||
|
# control if we start knockd at init or not
|
||||||
|
# 1 = start
|
||||||
|
# anything else = don't start
|
||||||
|
#
|
||||||
|
# PLEASE EDIT /etc/knockd.conf BEFORE ENABLING
|
||||||
|
START_KNOCKD=0
|
||||||
|
|
||||||
|
# command line options
|
||||||
|
#KNOCKD_OPTS="-i eth1"
|
@ -1,15 +1,15 @@
|
|||||||
################################################
|
[options]
|
||||||
#
|
UseSyslog
|
||||||
# knockd's default file, for generic sys config
|
|
||||||
#
|
|
||||||
################################################
|
|
||||||
|
|
||||||
# control if we start knockd at init or not
|
[openSSH]
|
||||||
# 1 = start
|
sequence = 7000,8000,9000
|
||||||
# anything else = don't start
|
seq_timeout = 5
|
||||||
#
|
command = /sbin/iptables -A INPUT -s %IP% -p tcp --dport 22 -j ACCEPT
|
||||||
# PLEASE EDIT /etc/knockd.conf BEFORE ENABLING
|
tcpflags = syn
|
||||||
START_KNOCKD=0
|
|
||||||
|
[closeSSH]
|
||||||
|
sequence = 9000,8000,7000
|
||||||
|
seq_timeout = 5
|
||||||
|
command = /sbin/iptables -D INPUT -s %IP% -p tcp --dport 22 -j ACCEPT
|
||||||
|
tcpflags = syn
|
||||||
|
|
||||||
# command line options
|
|
||||||
#KNOCKD_OPTS="-i eth1"
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user