Skip to content

Commit

Permalink
fix new issues
Browse files Browse the repository at this point in the history
  • Loading branch information
phanirithvij committed Dec 23, 2020
1 parent 49d1af7 commit 8db6069
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,43 +13,43 @@ pingtunnel 是把 tcp/udp/sock5 流量伪装成 icmp 流量进行转发的工具

[Readme EN](./README_EN.md)

### 注意:本工具只是用作学习研究,请勿用于非法用途!!!
## 注意:本工具只是用作学习研究,请勿用于非法用途!!!

![image](network.jpg)

## 使用

### 安装服务端

- 首先准备好一个具有公网 ip 的服务器,假定域名或者公网 ip 是www.yourserver.com
-[releases](https://github.com/esrrhs/pingtunnel/releases)下载对应的安装包,如 pingtunnel_linux64.zip,然后解压,以**root**权限执行
- 首先准备好一个具有公网 ip 的服务器,假定域名或者公网 ip 是www.yourserver.com
- [releases](https://github.com/esrrhs/pingtunnel/releases)下载对应的安装包,如 pingtunnel_linux64.zip,然后解压,以**root**权限执行

```
sudo wget (最新release的下载链接)
sudo unzip pingtunnel_linux64.zip
sudo ./pingtunnel -type server
```

- (可选)关闭系统默认的 ping
- (可选)关闭系统默认的 ping

```
echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all
```

### 安装 GUI 客户端(新手推荐)

-[pingtunnel-qt](https://github.com/esrrhs/pingtunnel-qt)下载 qt 的 gui 版本
- 双击 exe 运行,修改 server(如www.yourserver.com)、listen port(如 1080),勾上 sock5,其他设置默认即可,然后点击*GO*
- 一切正常,界面上会有 ping 值显示,然后可点击 X 隐藏到状态栏
- 设置浏览器的 sock5 代理到 127.0.0.1:1080,如果连不上网,出现 socks version not supported 错误日志,说明浏览器的代理不是 socks5 代理。如果提示非安全连接,说明 dns 有问题,勾上浏览器的【使用 socks5 代理 DNS 查询】
- [pingtunnel-qt](https://github.com/esrrhs/pingtunnel-qt)下载 qt 的 gui 版本
- 双击 exe 运行,修改 server(如www.yourserver.com)、listen port(如 1080),勾上 sock5,其他设置默认即可,然后点击*GO*
- 一切正常,界面上会有 ping 值显示,然后可点击 X 隐藏到状态栏
- 设置浏览器的 sock5 代理到 127.0.0.1:1080,如果连不上网,出现 socks version not supported 错误日志,说明浏览器的代理不是 socks5 代理。如果提示非安全连接,说明 dns 有问题,勾上浏览器的【使用 socks5 代理 DNS 查询】

![image](qtrun.jpg)

### 安装客户端(高玩推荐)

-[releases](https://github.com/esrrhs/pingtunnel/releases)下载对应的安装包,如 pingtunnel_windows64.zip,解压
- 然后用**管理员权限**运行,不同的转发功能所对应的命令如下
- 如果看到有 ping pong 的 log,说明连接正常
- [releases](https://github.com/esrrhs/pingtunnel/releases)下载对应的安装包,如 pingtunnel_windows64.zip,解压
- 然后用**管理员权限**运行,不同的转发功能所对应的命令如下
- 如果看到有 ping pong 的 log,说明连接正常

#### 转发 sock5

Expand Down
22 changes: 11 additions & 11 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,43 +11,43 @@

Pingtunnel is a tool that advertises tcp/udp/sock5 traffic as icmp traffic for forwarding.

> Note: This tool is only to be used for study and research, do not use it for illegal purposes.
## Note: This tool is only to be used for study and research, do not use it for illegal purposes.

![image](network.jpg)

## Usage

### Install server

- First prepare a server with a public IP, such as EC2 on AWS, assuming the domain name or public IP is www.yourserver.com
- Download the corresponding installation package from [releases](https://github.com/esrrhs/pingtunnel/releases), such as pingtunnel_linux64.zip, then decompress and execute with **root** privileges
- First prepare a server with a public IP, such as EC2 on AWS, assuming the domain name or public IP is www.yourserver.com
- Download the corresponding installation package from [releases](https://github.com/esrrhs/pingtunnel/releases), such as pingtunnel_linux64.zip, then decompress and execute with **root** privileges

```
sudo wget (link of latest release)
sudo unzip pingtunnel_linux64.zip
sudo ./pingtunnel -type server
```

- (Optional) Disable system default ping
- (Optional) Disable system default ping

```
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
```

### Install GUI client (recommended by novices)

- Download the gui version of qt from [pingtunnel-qt](https://github.com/esrrhs/pingtunnel-qt)
- Double-click the exe to run, modify the server (such as www.yourserver.com), listen port (such as 1080), tick sock5, other settings can be default, and then click _GO_
- Everything is normal, there will be a ping value on the interface, and then you can click X to hide it in the status bar
- Set the browser's sock5 proxy to 127.0.0.1:1080, If you do not connect to the Internet, a socks version not supported error log appears, indicating that the browser's proxy is not a socks5 proxy.If it prompts a non-secure connection, it means there is a problem with dns. Check "Use socks5 proxy DNS query" on the browser.
- Download the gui version of qt from [pingtunnel-qt](https://github.com/esrrhs/pingtunnel-qt)
- Double-click the exe to run, modify the server (such as www.yourserver.com), listen port (such as 1080), tick sock5, other settings can be default, and then click _GO_
- Everything is normal, there will be a ping value on the interface, and then you can click X to hide it in the status bar
- Set the browser's sock5 proxy to 127.0.0.1:1080, If you do not connect to the Internet, a socks version not supported error log appears, indicating that the browser's proxy is not a socks5 proxy.If it prompts a non-secure connection, it means there is a problem with dns. Check "Use socks5 proxy DNS query" on the browser.

![image](qtrun.jpg)

### Install the client (recommended for high play)

- Download the corresponding installation package from [releases](https://github.com/esrrhs/pingtunnel/releases), such as pingtunnel_windows64.zip, and decompress it
- Then run with **administrator** privileges. The commands corresponding to different forwarding functions are as follows.
- If you see a log of ping pong, the connection is normal
- Download the corresponding installation package from [releases](https://github.com/esrrhs/pingtunnel/releases), such as pingtunnel_windows64.zip, and decompress it
- Then run with **administrator** privileges. The commands corresponding to different forwarding functions are as follows.
- If you see a log of ping pong, the connection is normal

#### Forward sock5

Expand Down

0 comments on commit 8db6069

Please sign in to comment.