From 84e267fb893af4d9c7acfb39d1d988a19df07a45 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Wed, 23 Oct 2024 00:17:21 +0000 Subject: [PATCH] Update cheatsheets --- tldr/linux/knock | 25 +++++++++++++++++++++++++ tldr/linux/knockd | 17 +++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 tldr/linux/knock create mode 100644 tldr/linux/knockd diff --git a/tldr/linux/knock b/tldr/linux/knock new file mode 100644 index 00000000..1e461190 --- /dev/null +++ b/tldr/linux/knock @@ -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: . + +- 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}}` diff --git a/tldr/linux/knockd b/tldr/linux/knockd new file mode 100644 index 00000000..28dc3792 --- /dev/null +++ b/tldr/linux/knockd @@ -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: . + +- Start knockd system daemon: + +`knockd -d` + +- Use specified configuration file for knockd: + +`knockd -c {{path/to/file}}.configuration`