dog-tunnel是一款高速P2P端口映射工具,支持Socks5代理。0.5版本之后,它成为开源的。UDP底层基于开源库KCP重写,大大提高了效率,在恶劣环境下优势明显。同时提供非P2P版本(精简版)。两端的连接过程完全不依赖于中间服务器。支持加密、登录认证、自动重连,但需要手动确保两端能正常连接(否则请使用默认的P2P版本)。将远端的指定端口通过doghole映射到近端后,就可以进行高速访问了。具有数据安全性,数据以p2p方式通信不经过服务器,用户可自定义访问密码。p2p模式底层采用KCP协议,在恶劣的网络环境下比tcp延迟降低30%-40%。p2p模式支持AES加密。p2p模式可以穿透80%的网络。p2p模式失败时自动切换到c/s模式。本机支持远程socks5代理。支持多孔模式,在有多个连接时动态切换狗孔,提高访问速度。当远端断开连接时自动重新连接。开启精简版测试,完全点对点独立于服务器,需要保证一方有公网IP,自动重连,加密,登录认证,支持透明代理。适用于可访问远程局域网的服务,如HTTP、VNC远程控制、SSH等。Socks5反代理,在公司内使用代理连接QQ,在公司外访问公司网站等。安装Fedora20/21&CentOS6/7#!/bin/sh#needrunasrootcd~yuminstall-ytarmkdir/root/goworkspacewgethttps://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gztarzxvfgo1.4.2.linux-amd64.tar.gzecho'exportGOROOT=/root/go'>>.bashrcecho'exportGOPATH=/root/goworkspace'>>.bashrcecho'exportPATH="/root/go/bin:/root/goworkspace/bin:"$PATH'>>.bashrcsource~/.bashrcyuminstall-ygitgitclonehttps://github.com/vzex/dog-tunnel.gitcddog-tunnelgogetgithub.com/go-sql-driver/mysqlmakemvdtunnel/usr/bin/dtunnelUbuntu/Kubuntu14.04,14.10#!/bin/sh#needrunasrootcd~apt-getupdate&&apt-getdist-upgrade-y&&echo'Upgradesystemok'apt-getinstalltarwgetcurlgitmakegccbuild-essential-y&&echo'packageinstalled'mkdir/root/goworkspacewgethttps://storage.googleapis.com/golang/go1.4.2。linux-amd64.tar.gztarzxvfgo1.4.2.linux-amd64.tar.gzecho'exportGOROOT=/root/go'>>.bashrcecho'exportGOPATH=/root/goworkspace'>>.bashrcecho'exportPATH="/root/go/bin:/root/goworkspace/bin:"$PATH'>>.bashrcsource~/.bashrcgitclonehttps://github.com/vzex/dog-tunnel.gitcddog-tunnelgogetgithub.com/go-sql-driver/mysqlmakemvdtunnel/usr/bin/dtunnel项目地址:https://github.com/vzex/dog-tunnel/官网:http://狗-tunnel.tk/案例:http://dog-tunnel.tk/case
