applyed patch to knockd to be enableable
patch https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=868015
This commit is contained in:
parent
adfe0d6232
commit
3bc0ee06ee
@ -38,9 +38,16 @@ read sq
|
||||
sed -i "s/7000,8000,9000/$sq/g" /etc/knockd.conf
|
||||
sed -i 's/START_KNOCKD=0/START_KNOCKD=1/g' /etc/default/knockd
|
||||
# /etc/init.d/knockd start
|
||||
systemctl start knockd
|
||||
# patch https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=868015
|
||||
# systemctl enable knockd
|
||||
echo -e "
|
||||
|
||||
# patch https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=868015
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Alias=knockd.service" >> /lib/systemd/system/knockd.service
|
||||
|
||||
systemctl enable knockd
|
||||
systemctl start knockd
|
||||
|
||||
echo -e "\033[92;1mknockd installed and configured\033[Om"
|
||||
echo -e "\033[92;1mplease note this sequence for future ssh knocking\033[Om"
|
||||
|
Loading…
x
Reference in New Issue
Block a user