From c80246b1d1d93b7f3497f3c692af6d94c47cf7d5 Mon Sep 17 00:00:00 2001 From: Xiaobo Liu Date: Sat, 12 Oct 2024 18:11:23 +0800 Subject: [PATCH] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dcd68a7..79a8ad9 100644 --- a/README.md +++ b/README.md @@ -39,12 +39,16 @@ $ netguard-server -c ./netguard.toml ### Run knock tool -On client site, Using `netguard-tool` to send knock packets: +On client site, Using `netguard-tool` to send TCP port knock packets. + +The following command sends a knock packet to unlock TCP port 10022: ```shell $ sudo ./netguard-tool auth --server 45.76.195.141 --protocol=tcp --unlock 10022 --key=./rsa_key ``` +If want to unlock a UDP port, use `--protocol=udp`。 + ### Example Two devices, one listening on port 10022 and then taken over by `netguard-server`: