Update README.md

This commit is contained in:
zhao xin authored and GitHub committed 2018-12-23 13:09:33 +08:00
1 parent ed841bc0d2
commit 73fe99044f
1 file changed
+18 -1
+18 -1
View File
@@ -12,6 +12,23 @@ sudo ./pingtunnel -type server
```
pingtunnel.exe -type client -l :4455 -s www.yourserver.com -t www.yourserver.com:4455
```
* 如果看到客户端不停的ping、pong日志输出,说明工作正常。If you see the client ping, pong log output, it means normal work
```
ping www.xx.com 2018-12-23 13:05:50.5724495 +0800 CST m=+3.023909301 8 0 1997 2
pong from xx.xx.xx.xx 210.8078ms
```
# 注意
对于某些网络,比如长城宽带、宽带通,需要特殊处理才能正常工作。方法是
* 关闭服务器的系统ping,例如
```
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
```
* 客户端添加catch参数,用来主动抓取服务器回包,100就是每秒主动抓100个包
```
pingtunnel.exe -type client -l :4455 -s www.yourserver.com -t www.yourserver.com:4455 -catch 100
```
# Usage
@@ -46,4 +63,4 @@ pingtunnel.exe -type client -l :4455 -s www.yourserver.com -t www.yourserver.com
The protocol that the client receives the ping. The default is 14.
-catch 主动抓模式,每秒从服务器主动抓多少个reply包,默认0
Active capture mode, how many reply packets are actively captured from the server per second, default 0
Active capture mode, how many reply packets are actively captured from the server per second, default 0