1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 13:33:43 +02:00

knock, knockd: add page (#14316)

* knock.md and knockd.md

* Update pages/linux/knock.md

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* Update pages/linux/knock.md

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* Update pages/linux/knock.md

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>

---------

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
Angad Singh Grover 2024-10-23 02:50:51 +08:00 committed by GitHub
parent 6d57e8b8c7
commit 0d6f7235c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 32 additions and 0 deletions

20
pages/linux/knock.md Normal file
View file

@ -0,0 +1,20 @@
# 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:
`knock -u {{hostname}} {{portnumber}}`
- Force usage of IPv4/IPv6:
`knock {{-4|-6}} {{hostname}} {{portnumber}}`
- Display errors and details of connection:
`knock -v {{hostname}} {{portnumber}}`

12
pages/linux/knockd.md Normal file
View file

@ -0,0 +1,12 @@
# knockd
> Port knocking daemon to listen for port knocking and execute scripts.
> More information: <https://manned.org/knockd>.
- Start knockd system daemon:
`knockd -d`
- Use specified configuration file for knockd:
`knockd -c {{path/to/file}}.configuration`