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`