来源:http://bullshitlie.blogspot.com/2016/05/kcptundantesocksv5.html
工具
2. https://www.inet.no/dante/
wget https://github.com/xtaci/kcptun/releases/download/v20160507/kcptun-linux-amd64-20160507.tar.gz
下载kcptun客户端(windows版本):
地址: https://github.com/xtaci/kcptun/releases/download/v20160507/kcptun-windows-amd64-20160507.tar.gz
kcptun的全部平台下载地址为:
https://github.com/xtaci/kcptun/releases/latest
$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.
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
用记事本编辑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
Chrome浏览器推荐使用SwitchyOmega 配合gfwlist使用.
实测速度快过shadowsocks,而且长时间稳定,观看youtube的时候1080p很少有卡顿。
kcptun.bat可以长期运行不关闭,笔记本屏幕一翻开就能上网。
安装
下载kcptun服务器:wget https://github.com/xtaci/kcptun/releases/download/v20160507/kcptun-linux-amd64-20160507.tar.gz
下载kcptun客户端(windows版本):
地址: https://github.com/xtaci/kcptun/releases/download/v20160507/kcptun-windows-amd64-20160507.tar.gz
kcptun的全部平台下载地址为:
https://github.com/xtaci/kcptun/releases/latest
在服务器安装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" -tuncrypt2016/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很少有卡顿。
kcptun.bat可以长期运行不关闭,笔记本屏幕一翻开就能上网。
没有评论:
发表评论