Go to file
2021-04-01 11:50:28 +08:00
.github/workflows Update go.yml 2020-04-02 11:31:14 +08:00
docker-compose a basic documentation for easy deploy 2021-02-23 16:46:12 +03:30
_config.yml Set theme jekyll-theme-hacker 2019-12-05 14:45:26 +08:00
.gitignore Initial commit 2018-12-16 12:02:09 +08:00
Dockerfile Update Dockerfile 2021-03-18 11:22:13 +08:00
GeoLite2-Country.mmdb add 2019-11-05 09:07:14 +08:00
LICENSE Initial commit 2018-12-16 12:02:09 +08:00
main.go add 2020-05-01 15:21:30 +08:00
network.jpg add 2019-11-01 23:13:59 +08:00
pack.sh add 2020-09-03 09:36:44 +08:00
qtrun.jpg add 2020-01-07 22:10:28 +08:00
README_EN.md Update README_EN.md 2021-04-01 11:50:28 +08:00
README.md Update README.md 2021-04-01 11:49:07 +08:00

Pingtunnel

Go Report Card Codacy Badge

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

image

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, 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
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
  • Download the gui version of qt from 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

  • Download the corresponding installation package from 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

pingtunnel.exe -type client -l: 4455 -s www.yourserver.com -sock5 1

Forward tcp

pingtunnel.exe -type client -l: 4455 -s www.yourserver.com -t www.yourserver.com:4455 -tcp 1

Forward udp

pingtunnel.exe -type client -l: 4455 -s www.yourserver.com -t www.yourserver.com:4455

It can also be started directly with docker, which is more convenient. Same parameters as above

  • server:
docker run --name pingtunnel-server -d --privileged --network host --restart = always esrrhs / pingtunnel ./pingtunnel -type server -key 123456
  • client:
docker run --name pingtunnel-client -d --restart = always -p 1080: 1080 esrrhs / pingtunnel ./pingtunnel -type client -l: 1080 -s www.yourserver.com -sock5 1 -key 123456

Test

download the centos image centos mirror

wget ss kcp pingtunnel
AlibabaCloud 26.6KB/s 31.8KB/s 606KB/s 5.64MB/s