diff --git a/docs/2024.md b/docs/2024.md index 453e1bd..8cc8abc 100644 --- a/docs/2024.md +++ b/docs/2024.md @@ -42,11 +42,24 @@ PostDown = iptables -t nat -D PREROUTING -p tcp -m tcp --dport -j D #### 检测客户端连通性 +nmap: + ```shell nmap -6 -p <端口号> nmap -p <端口号> ``` +nc: + +```shell +# TCP +nc -l # server +nc # client +# UDP +nc -u -l # server +nc -u # client +``` + ### 11.14 #### 纯ipv6服务器访问ipv4