示例

在这里,您将找到多个常见的使用场景和配置示例,可供您用来亲自部署和体验这些示例。

通过 SSH 访问内网机器

通过简单配置 TCP 类型的代理,使用户能够访问内网服务器。

多个 SSH 服务复用同一端口

通过使用 tcpmux 类型的代理,您可以实现多个 SSH 服务通过同一端口进行暴露。这种方法还适用于任何支持 HTTP Connect 代理连接方式的客户端,以实现端口的复用。

通过自定义域名访问内网的 Web 服务

通过简单配置 HTTP 类型的代理,您可以让用户通过自定义域名访问内网的 Web 服务。

转发 DNS 查询请求

本示例演示如何通过简单配置 UDP 类型的代理来实现 DNS 查询请求的转发。

转发 Unix 域套接字

通过配置 Unix 域套接字客户端插件,您可以使用 TCP 端口访问内网的 Unix 域套接字服务,例如 Docker Daemon。

对外提供简单的文件访问服务

通过配置 static_file 客户端插件,您可以将本地文件暴露在公网上,以供其他人访问。

为本地 HTTP 服务启用 HTTPS

使用 https2http 插件将本地 HTTP 服务转换为 HTTPS 服务,以供外部访问。

安全地暴露内网服务

通过创建一个只有授权用户能够访问的 SSH 服务代理,实现内网服务的安全暴露。

点对点内网穿透

这个示例将演示如何通过点对点 (P2P) 连接来访问内网服务,流量不会通过服务器中转。

最后修改 November 15, 2023: fix 404 (#71) (626ce4d)

Example

Here, you will find several common Use scenarios and ConfigurationExample that you can use to deploy and experience these Example yourself.

Access the private network machine through SSH

By using a simple Configuration TCP type Agent Users can access the internal network server.

Multiple SSH services reuse the same port

By using tcpmux type agents, you can achieve multiple SSH Services are exposed through the same port. This method is also applicable to any support for HTTP Connect the client using the Connect Agent connection method to achieve port reuse.

Access the Web service of the intranet through a custom domain name

Through Agent of simple Configuration HTTP type. You can allow users to access the Web service of the private network through a custom domain name

Forward DNS query request

This Example demonstrates how to pass the Agent of a simple Configuration UDP type. To realize the forwarding of DNS query requests.

Forward Unix domain sockets

With the Configuration Unix domain socket ClientPlug-in, you can Use. The TCP port accesses the Unix domain socket service of the intranet, such as Docker Daemon.

Provide simple file access service to the public

Through Configuration. static_file . ClientPlug-in, you can expose local files on the public network for others to access.

Enable HTTPS for the local HTTP service

Use https2http Plug-in converts the local HTTP service to. HTTPS services for external access.

Safely expose intranet services

By creating a SSH service Agent that only authorized users can access. To achieve the security exposure of intranet services

Point-to-point intranet penetration

This Example will demonstrate how to use peer-to-peer (P2P). Connect to access the intranet service, and traffic will not be transferred through the server.

Last modified November 15, 2023: fix 404 (#71) (626ce4d)