knock.1.in 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. .TH knockd 1 "April 22, 2021" "knockd #VERSION#" ""
  2. .SH NAME
  3. knock \- port-knock client
  4. .SH SYNOPSIS
  5. \fBknock [options] <host> <port[:proto]> [port[:proto]] ...\fP
  6. .SH DESCRIPTION
  7. \fBknock\fP is a \fIport-knock\fP client. It sends TCP/UDP packets
  8. to each specified \fIport\fP on \fIhost\fP, creating a special knock
  9. sequence on the listening server (see the \fBknockd\fP manpage for more
  10. info on this).
  11. .SH OPTIONS
  12. .TP
  13. .B "\-u, \-\-udp"
  14. Make all port hits use UDP (default is TCP).
  15. If you want each port to use a different protocol (TCP or UDP), then you
  16. can specify the protocol on a per-port basis. See the example below.
  17. .TP
  18. .B "\-d <t>, \-\-delay <t>"
  19. Wait <t> milliseconds between each port hit. This can be used in situations
  20. where a router mistakes your stream of SYN packets as a port scan and blocks
  21. them. If the packet rate is slowed with \-\-delay, then the router should let
  22. the packets through.
  23. .TP
  24. .B "\-4, \-\-ipv4 <version>"
  25. Force usage of IPv4.
  26. .TP
  27. .B "\-6, \-\-ipv6 <version>"
  28. Force usage of IPv6.
  29. .TP
  30. .B "\-v, \-\-verbose"
  31. Output verbose status messages.
  32. .TP
  33. .B "\-V, \-\-version"
  34. Display the version.
  35. .TP
  36. .B "\-h, \-\-help"
  37. Syntax help.
  38. .SH EXAMPLES
  39. .nf
  40. knock myserver.example.com 123:tcp 456:udp 789:tcp
  41. knock \-u myserver.example.com 8284 4721 18592 42912
  42. .fi
  43. .SH SEE ALSO
  44. \fBknockd\fP is the accompanying port-knock server.
  45. .SH AUTHOR
  46. .nf
  47. Judd Vinet <[email protected]>
  48. .fi