Sunday, May 8, 2016

使用kcptun+dante实现高速socksv5翻墙

工具

2. http://ift.tt/1ZvaZyr

安装

下载kcptun服务器:
wget http://ift.tt/1WUd1sD

下载kcptun客户端(windows版本):
地址:
http://ift.tt/1ZvaZOH

kcptun的全部平台下载地址为:
http://ift.tt/1WUd1sI

在服务器安装dante-server

$sudo apt-get install dante-server
$cat /etc/danted.conf
logoutput: syslog
internal: 127.0.0.1 port = 10000
external: eth0
method: none
user.privileged: proxy
user.notprivileged: nobody
user.libwrap: nobody
client pass {
from: 127.0.0.0/8 port 1-65535 to: 0.0.0.0/0
}
pass {
from: 127.0.0.0/8 to: 0.0.0.0/0
protocol: tcp udp
}

$service danted restart
Restarting Dante SOCKS daemon: May  8 10:31:09 (1462703469) danted[27339]: socks_seteuid(): old: 0, new: 13
May  8 10:31:09 (1462703469) danted[27339]: socks_reseteuid(): current: 13, new: 0
May  8 10:31:09 (1462703469) danted[27339]: socks_seteuid(): old: 0, new: 65534
May  8 10:31:09 (1462703469) danted[27339]: socks_reseteuid(): current: 65534, new: 0
May  8 10:31:09 (1462703469) danted[27339]: socks_seteuid(): old: 0, new: 65534
May  8 10:31:09 (1462703469) danted[27339]: socks_reseteuid(): current: 65534, new: 0
danted.





在服务器端启动kcpserver

$./server_linux_amd64 -t “127.0.0.1:10000” -key “你的密码” -l “:43212” -tuncrypt
2016/05/08 10:33:25 version: 20160507
2016/05/08 10:33:25 listening on  [::]:43212
2016/05/08 10:33:25 communication mode: fast
2016/05/08 10:33:25 tunnel encryption: true




在客户端启动kcpclient

用记事本编辑kcptun.bat,内容为:
client_windows_amd64.exe -r “服务器IP:43212″ -key “你的密码” -tuncrypt

双击kcptun.bat运行:
2016/05/08 18:35:37 version: 20160507
2016/05/08 18:35:37 listening on: [::]:12948
2016/05/08 18:35:37 communication mode: fast
2016/05/08 18:35:37 remote address: 服务器IP:43212
2016/05/08 18:35:37 tunnel encryption: true
2016/05/08 18:35:39 stream opened




浏览器设置socks5代理:

Chrome浏览器推荐使用SwitchyOmega 配合gfwlist使用.

实测速度快过shadowsocks,而且长时间稳定,观看youtube的时候1080p很少有卡顿。

原文:http://ift.tt/1ZvaZyp




via 细节的力量 http://ift.tt/1rC4P4T

No comments:

Post a Comment