给ubuntu server搭个梯子
ubuntu server上安装了docker,众所周知,拉取镜像是个技术活,小的镜像用cloudflare搭的桥可以慢慢下,太大的要用github actions下载,再转到主机上。直接给服务器架个梯子是必然的选择。
安装v2ray
sudo apt install v2ray
安装v2raya
在项目https://github.com/v2rayA/v2rayA下载debian安装包installer_debian_x64_2.2.6.3.deb,传到主机上安装。sudo apt install ./installer_debian_x64_2.2.6.3.deb
sudo systemctl start v2raya v2ray
从IP:2017访问。
会出现提示,v2ray core版本不是v5,要么回退v2ray到v1.5,要么升级v2ray core。
升级v2ray core
在项目https://github.com/v2fly/v2ray-core下载release文件v2ray-linux-64.zip
解压得到config.json、geoip.dat、geoip-only-cn-private.dat、geosite.dat、systemd、v2ray、vpoint_socks_vmess.json、vpoint_vmess_freedom.json。
把config.json、geoip.dat、geoip-only-cn-private.dat、geosite.dat复制到/etc/v2ray,把v2ray复制到/usr/bin,把vpoint_socks_vmess.json、vpoint_vmess_freedom.json复制到/usr/share/v2ray,把systemd/system/里面的文件复制到/etc/systemd/system目录,重启v2ray。sudo systemctl restart v2ray
重启v2raya服务
sudo systemctl restart v2raya
再回到ip:2017,输入订阅链接,更新,选定一个服务器就可以开启透明代理服务。
2月5日续:主机加上梯子,每次开启梯子或关闭梯子,都会导致docker服务重启,还有一个严重后果,用lucky设置的stun内网穿透失效了,但cf tunnel没失效。所以这个梯子还是不用为好。