2025-03-14 21:59:59 -06:00
|
|
|
# knock
|
|
|
|
|
|
|
|
|
|
> Port knocking client to open specific ports on firewall.
|
|
|
|
|
> More information: <https://manned.org/knock>.
|
|
|
|
|
|
|
|
|
|
- Knock on ports using different protocols:
|
|
|
|
|
|
|
|
|
|
`knock {{hostname}} {{portnumber}}:{{protocol}}`
|
|
|
|
|
|
|
|
|
|
- Knock on port using UDP:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`knock {{[-u|--udp]}} {{hostname}} {{portnumber}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Force usage of IPv4/IPv6:
|
|
|
|
|
|
|
|
|
|
`knock {{-4|-6}} {{hostname}} {{portnumber}}`
|
|
|
|
|
|
|
|
|
|
- Display errors and details of connection:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`knock {{[-v|--verbose]}} {{hostname}} {{portnumber}}`
|