Update cheatsheets

This commit is contained in:
ivuorinen
2024-10-23 00:17:21 +00:00
parent 19fe9bd339
commit 84e267fb89
2 changed files with 42 additions and 0 deletions

25
tldr/linux/knock Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`

17
tldr/linux/knockd Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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`