What is Port Knocking ?
Port knocking is a simple method to grant remote access without leaving a port constantly open.
This preserves your server from port scanning and script kiddie attacks.
Server Setup
Install the package
Debian:
1 | apt install knockd |
Configuration
/etc/knockd.conf
I want to hide the ssh.
You have to change the sequence, because the script kiddies will try this sequence first.
1 | [options] |
You have some exemple here.
Enable the deamon
/etc/default/knockd
Uncomment the START_KNOCKD=1 line to enable the daemon.
1 | ################################################ |
Client side
Linux
You should install knockd on the client too.knock -v 192.168.1.250 7000 8000 9000
Windows
Download this: SourceForge-KnockKnock
You sould read the README.txt
KnockKnock.zip - archive containing all files
|- Shortcut to KnockKnock - Shortcut to knock client
|
|- Shortcut to KnockMonitor - Shortcut to knock server