Skip to content

A shell script wrapper which automates port knocking via knockd .

License

Notifications You must be signed in to change notification settings

humblelad/knockd_auto_wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

knockd_auto_wrapper

A shell script wrapper which automates port knocking via knockd .

Pls note to enable ufw firewall to block all packets. We then use knockd to add rules to iptables.

In Server: chmod +x knockd.sh ./knockd.sh

Inputs

Just enter the values as asked.

Sequence: 7000,8000,9000, Port: 22, cmd_timeout: 20, interface: ens1

In client/ from where you are trying to connect, install knockd too, ( I used brew isntall knock for mac ) Before port knocking nmap -Pn -p 22 ip

PORT STATE SERVICE 22/tcp filtered ssh

PORT STATE SERVICE
22/tcp filtered ssh

knock -v ip 7000 8000 9000

After port knocking enabled: nmap -Pn -p 22 ip

PORT STATE SERVICE
22/tcp open ssh

Note: This happens after cmd_timeout is over

About

A shell script wrapper which automates port knocking via knockd .

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages