Total Pageviews

Wednesday 28 April 2021

利用http proxy程序garrow翻墙

在linux vps上安装go环境,然后,

cd $GOPATH

GO111MODULE=off go get -u -v github.com/ibigbug/GArrow/cmd/garrow/

(在$GOPATH/bin/下,就会生成可执行文件garrow)

[root@racknerd-7b97d8 gopath]# which garrow

/root/go1.16/go/gopath/bin/garrow

[root@racknerd-7b97d8 gopath]# nano /etc/garrow.yaml

[root@racknerd-7b97d8 gopath]# cat /etc/garrow.yaml

server: '0.0.0.0:6699'

password: 'mypassword'

[root@racknerd-7b97d8 ~]# garrow -c /etc/garrow.yaml -m server

(此命令是运行在前台的,我们可以利用boa把它运行在后台上。按ctrl+c)

[root@racknerd-7b97d8 gopath]# boa /root/go1.16/go/gopath/bin/garrow -c /etc/garrow.yaml -m server && reboot

服务器端搭建完成。



在客户机器mac上。安装go环境,然后,

cd $GOPATH

GO111MODULE=off go get -u -v github.com/ibigbug/GArrow/cmd/garrow/

(在$GOPATH/bin/下,就会生成可执行文件garrow)

nano ~/garrow.yaml

cat ~/garrow.yaml

显示:

server: 'vps-public-ip:6699'

local: '127.0.0.1:2456'

password: 'mypassword'


然后,

garrow -c ~/garrow.yaml -m client

不要关闭此终端,然后设置浏览器的http proxy地址为127.0.0.1 ,端口为2456 ,浏览器即可翻墙。


项目地址:https://github.com/ibigbug/GArrow

https://github.com/ibigbug/GArrow/issues/10


速度有点慢。


No comments:

Post a Comment