# wiki-proxy **Repository Path**: cdkjframework/wiki-proxy ## Basic Information - **Project Name**: wiki-proxy - **Description**: - WIKI代理(wiki-proxy)是一个基于netty的、开源的 Java 内网穿透项目,公供学习交流使用。 - 技术栈: 维基框架、JPA、Netty - 遵循MIT许可,因此您可以对它进行复制、修改、传播并用于任何个人或商业行为。 - 官网地址:https://www.framewiki.com/wiki-proxy - **Primary Language**: Java - **License**: MIT - **Default Branch**: master - **Homepage**: https://framewiki.com/wiki-proxy - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 1 - **Created**: 2025-01-09 - **Last Updated**: 2025-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: Java, Netty, 内网穿透, 代理, 网络代理 ## README

keytool

star fork license MIT

# 1. Introduction - Wiki proxy, an open-source Java intranet penetration project. - Technical stack: cdkjFramework (Wiki Framework) JPA、Netty - Following the MIT license, you may copy, modify, distribute, and use it for any personal or commercial activity. - Official website address: https://www.framewiki.com/ # 2. Project Structure - wiki-proxy Wiki Proxy Project - assets Framework resource file - client Agent - proxy-client Proxy client project - proxy-client-web Proxy client interface - proxy-admin Proxy monitoring project (developed based on Vue3+element plus) - proxy-core Proxy Core Library - proxy-util Proxy Tool Library - server Proxy server - proxy-server Proxy server business code - proxy-server-web Proxy server interface # 3. Operation ## 3.1 Generate a certificate and use the keytool tool to generate a test certificate as shown below (it is recommended to use Let's Encrypt to generate the official certificate) ``` shell keytool -genkey -alias wiki-proxy -keyalg RSA -keysize 2048 -validity 3650 -keypass wiki-proxy@SaFePwd2025! -storepass wiki-proxy@SaFePwd2025! -keystore "./wiki-proxy.jks" ``` keytool ## 3.2 Modify the server configuration file ``` yml spring: application: name: wiki-proxy-server proxy: server: # Server (TCP) port service-port: 10010 # Exposed ports can be used for multiple port: - 443 # Certificate storage path ssl-key-store-path: "D:\\Project\\wiki-proxy\\server\\proxy-server-web\\src\\main\\resources\\wiki-proxy.jks" # Certificate Password ssl-key-store-password: "wiki-proxy@SaFePwd2025!" # Certificate Type ssl-key-store-type: PKCS12 # The protocol defaults to TLSv1.2 version protocol: TLSv1.2 # The algorithm defaults to sunx509 algorithm: sunx509 # The AES interaction key needs to be consistent with the client aes-key: 8AUWlb+IWD+Fhbs0xnXCCg== # The interactive signature key needs to be consistent with the client token-key: tokenKey ``` ## 3.3 Server Startup (Spring Boot Project) > com.framewiki.proxy.server.ProxyServerApplication ## 3.4 Modify client configuration file ``` yml spring: application: name: wiki-proxy-client proxy: client: # Server IP service-ip: 127.0.0.1 # Server (TCP) port service-port: 10010 ip: - 127.0.0.1 # Target proxy IP dest-port: # Target proxy port - 50501 port: - 443 # Server exposed port # Certificate storage path ssl-key-store-path: "D:\\Project\\wiki-proxy\\server\\proxy-server-web\\src\\main\\resources\\wiki-proxy.jks" # Certificate Password ssl-key-store-password: "wiki-proxy@SaFePwd2025!" # Certificate Type ssl-key-store-type: PKCS12 # The protocol defaults to TLSv1.2 version protocol: TLSv1.2 # The algorithm defaults to sunx509 algorithm: sunx509 # The AES interaction key needs to be consistent with the server aes-key: 8AUWlb+IWD+Fhbs0xnXCCg== # The interactive signature key needs to be consistent with the server token-key: tokenKey ``` ## 3.5 Client Startup (Spring Boot Project) > com.framewiki.proxy.client.ProxyClientApplication # 4. Deployment

First, build the jar package for the project (as shown in the figure below), or download and publish the jar package, and then upload it to the designated directory on the server.

wiki-proxy-build ## 4.1 Deploy server

First, upload the wiki-proxy-server. jar package, Dockerfile, start.sh, and stop.sh to the server/user/web/wiki proxy/server directory.

### 4.1.1 Build and run Docker images

Switch the working directory to the/user/web/wiki-proxy/server directory (modify according to your own server directory structure)

```shell cd /user/web/wiki-proxy/server ```

Execute the following command to build a Docker image

```shell ./start.sh ``` ### 4.1.2 Stop Docker image ```shell ./stop.sh ``` ## 4.2 Deploy client

First, upload the wiki-proy-client. jar package, Dockerfile, start.sh, and stop.sh to the server/user/web/wiki proxy/client directory (modify according to your own server directory structure)

### 4.2.1 Build and run Docker images

Switch the working directory to the /user/web/wiki-proxy/client directory

```shell cd /user/web/wiki-proxy/client ```

Execute the following command to build a Docker image

```shell ./start.sh ``` ### 4.2.2 Stop Docker image ```shell ./stop.sh ``` # 5. Proxy schematic diagram keytool # 6. Contact us - WeChat: wangnanfei-cn - Gitee: https://gitee.com/cdkjframework/wiki-proxy - Github repository: https://github.com/cdkjframework/wiki-proxy # 7. Participate and contribute linkeddt