From 8c1e252ef0bbad8d01ecf3d45ea9d65c195bd4eb Mon Sep 17 00:00:00 2001 From: WinGeek Date: Sun, 8 Sep 2024 22:27:48 +0800 Subject: [PATCH] Fix image links --- docs/about.md | 6 ++++++ docs/build.md | 6 ++++++ docs/code.md | 5 +++++ docs/comparison.md | 3 +++ docs/deploy.md | 4 ++++ docs/features.md | 5 +++++ docs/server_plugin.md | 6 ++++++ docs/zh-cn/build.zh-cn.md | 6 +++--- 8 files changed, 38 insertions(+), 3 deletions(-) diff --git a/docs/about.md b/docs/about.md index c54b93d6..bdabba68 100644 --- a/docs/about.md +++ b/docs/about.md @@ -6,4 +6,10 @@ permalink: /about/ --- # About OpenNHP Project +{: .fs-9 } + +[中文版](./zh-cn/about/){: .label .fs-4 } + +--- + diff --git a/docs/build.md b/docs/build.md index e555ccc2..aa2d8244 100644 --- a/docs/build.md +++ b/docs/build.md @@ -6,3 +6,9 @@ permalink: /build/ --- # Build OpenNHP Source Code +{: .fs-9 } + +[中文版](./zh-cn/build/){: .label .fs-4 } + +--- + diff --git a/docs/code.md b/docs/code.md index b918a96b..6f79b287 100644 --- a/docs/code.md +++ b/docs/code.md @@ -6,4 +6,9 @@ permalink: /code/ --- # Understand the OpenNHP Source Code +{: .fs-9 } + +[中文版](./zh-cn/code/){: .label .fs-4 } + +--- diff --git a/docs/comparison.md b/docs/comparison.md index 9972bc97..76609c2f 100644 --- a/docs/comparison.md +++ b/docs/comparison.md @@ -6,5 +6,8 @@ permalink: /comparison/ --- # Comparison between NHP and SPA +{: .fs-9 } +[中文版](./zh-cn/comparison/){: .label .fs-4 } +--- \ No newline at end of file diff --git a/docs/deploy.md b/docs/deploy.md index 43a4f615..a31dc43e 100644 --- a/docs/deploy.md +++ b/docs/deploy.md @@ -6,4 +6,8 @@ permalink: /deploy/ --- # Deploy OpenNHP Binaries +{: .fs-9 } +[中文版](./zh-cn/deploy/){: .label .fs-4 } + +--- diff --git a/docs/features.md b/docs/features.md index e1ae6ebd..792eb952 100644 --- a/docs/features.md +++ b/docs/features.md @@ -6,6 +6,11 @@ permalink: /features/ --- # OpenNHP Feature List +{: .fs-9 } + +[中文版](./zh-cn/features/){: .label .fs-4 } + +--- - **Mitigate vulnerability risk:** The openness of TCP/IP protocols leads to a "trust by default" connection model, allowing anyone to establish a connection to a server port that provides services. Attackers exploit this openness to target server vulnerabilities. The NHP protocol implements the zero trust principle "never trust, always verify" by enforcing "deny-all" rules by default on the server side, only allowing authorized hosts to establish connections. This effectively mitigates vulnerability exploitation, particularly zero-day exploits. - **Mitigate phishing attacks:** DNS hijacking is a serious threat to internet security and is used for malicious purposes such as phishing, stealing sensitive information, or spreading malware. The NHP protocol can function as an encrypted DNS resolution service to mitigate this problem. When the NHP-Agent on the client side sends a knock request to the controller component NHP-Server with the identifier (e.g., the domain name) of the protected resource, the NHP-Server will return the IP address and port number of the protected resource if the NHP-Agent is successfully authenticated. Since NHP communication is encrypted and mutually verified, the risk of DNS hijacking is effectively mitigated. diff --git a/docs/server_plugin.md b/docs/server_plugin.md index 876cd807..7388c62a 100644 --- a/docs/server_plugin.md +++ b/docs/server_plugin.md @@ -6,6 +6,12 @@ permalink: /server_plugin/ --- # Develop NHP-Server Plugins +{: .fs-9 } + +[中文版](./zh-cn/server_plugin/){: .label .fs-4 } + +--- + diff --git a/docs/zh-cn/build.zh-cn.md b/docs/zh-cn/build.zh-cn.md index dbde56fb..66529591 100644 --- a/docs/zh-cn/build.zh-cn.md +++ b/docs/zh-cn/build.zh-cn.md @@ -13,7 +13,7 @@ permalink: /zh-cn/build/ **提示:** Windows 10/11下可以通过`WSL`子系统来运行Linux,详细请见WSL官方文档: - **【开启WSL功能】** 在Win10上,需要首先开启WSL才能使用WSL安装Linux,设置界面请见下图。 - ![Win10上WSL设置](../images/win10wsl.png) + ![Win10上WSL设置](/images/win10wsl.png) - **【WSL上安装Linux】** 推荐在WSL上安装Ubuntu Linux,通过PowerShell运行以下命令安装: ```bat @@ -61,7 +61,7 @@ permalink: /zh-cn/build/ - 安装GCC: `sudo apt install build-essential` - **Windows**: 1. 第一步:**安装mingw64**。mingw64可以通过msys2的包管理工具进行下载。安装msys2系统要求、下载与安装教程见:。 - ![install_msys2](../images/install_msys2.png) + ![install_msys2](/images/install_msys2.png) 2. 第二步:**安装GCC**。在msys2的控制台输入命令: @@ -114,4 +114,4 @@ permalink: /zh-cn/build/ - **NHP-Agent**的可执行文件和配置文件: `release\nhp-agent` 子目录下 - 所有二进制文件打包成一个`tar`文件: `release\archive` 子目录下 ---- \ No newline at end of file +---