Total Pageviews

Tuesday 20 August 2019

利用dog-tunnel-lite 翻墙

登陆linux vps.首先安装go环境。然后,
git clone https://github.com/ForkProject/dog-tunnel-lite
cd dog-tunnel-lite
make
(会在当前目录下,生成可执行文件dtunnel_lite)


./dtunnel_lite -v -service :1234 -dnscache 10 &
不过命令./dtunnel_lite -v -service :1234 -dnscache 10 &容易退出,我们可以利用systemd把该命令运行为service.
killall dtunnel_lite 
nano /etc/systemd/system/dog-tunnel-lite.service
其内容如下:
[Unit]
After=network.target

[Service]
WorkingDirectory=/root/dog-tunnel-lite/
ExecStart=/root/dog-tunnel-lite/dtunnel_lite -v -service :1234 -dnscache 10 
Restart=always

[Install]
WantedBy=multi-user.target

然后,运行:
systemctl start dog-tunnel-lite
systemctl enable dog-tunnel-lite

服务器端搭建完成。

在客户端机器mac上。首先安装go环境。然后,
git clone https://github.com/ForkProject/dog-tunnel-lite
cd dog-tunnel-lite
make
(会在当前目录下,生成可执行文件dtunnel_lite)

./dtunnel_lite -v -service 你的vps的ip:1234 -local :8787
不要关闭此terminal.

然后设置浏览器的socks5代理服务器为127.0.0.1 ,端口为8787,浏览器即可翻墙。

项目地址:https://github.com/ForkProject/dog-tunnel-lite

类似的项目:
https://github.com/fyhong/dtunnel130
https://github.com/fyhong/dtunnel130/blob/master/HowToUse.txt

https://github.com/vzex/dog-tunnel/tree/udpVersion
https://github.com/vzex/dog-tunnel/blob/udpVersion/HowToUse.txt 
(udpVersion就是所谓的lite版本)





No comments:

Post a Comment