commands.sh

knock

linux

Port knocking client to open specific ports on firewall.

More info →

Options (2)

-u, --udpboolean

Knock on port using UDP

Example: knock {{[-u|--udp]}} {{hostname}} {{portnumber}}
-v, --verboseboolean

Display errors and details of connection

Example: knock {{[-v|--verbose]}} {{hostname}} {{portnumber}}

Examples (4)

Knock on ports using different protocols

knock hostname portnumber:protocol

Knock on port using UDP

knock [-u|--udp] hostname portnumber

Force usage of IPv4/IPv6

knock -4|-6 hostname portnumber

Display errors and details of connection

knock [-v|--verbose] hostname portnumber
made by @shridhargupta | data from tldr-pages