mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-05 15:44:27 +00:00
Update cheatsheets
This commit is contained in:
25
tldr/linux/knock
Normal file
25
tldr/linux/knock
Normal 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
17
tldr/linux/knockd
Normal 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`
|
||||
Reference in New Issue
Block a user