国内VPS使用科学上网的简单教程
- 启动 ss-local 代理客户端连接国外VPS,本地代理端口为 1080 。
- 安装命令行代理工具 proxychains4 。
- 使用 proxychains4 科学上网。
前提
更换软件源,通常是为了提高软件下载速度,当然也是
cp /etc/apt/sources.list /etc/apt/sources.list.bak
cat <<END > /etc/apt/sources.list
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb http://mirrors.aliyun.com/debian-security buster/updates main
deb-src http://mirrors.aliyun.com/debian-security buster/updates main
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
END
cat /etc/apt/sources.list
apt update
安装ss-local客户端
这里只是以ss代理为例,当然你是可以更换其他任何代理类型的。
安装shadowsocks工具
apt install -y shadowsocks-libev wget curl
启动ss代理客户端,端口为1080:
nohup ss-local -s server_ip -p server_port -m method -k password -l 1080 >/dev/null 2>&1 &
安装proxychains工具
apt install -y proxychains
配置proxychains,文件: /etc/proxychains.conf
内容如下:
socks5 127.0.0.1 1080
使用proxychains科学上网
比如访问Github资源
proxychains bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)
这样就可以啦。
大佬 小白一枚 怎么安装都不会 请收下小弟膝盖
多尝试,多搜索,找方法,也许我这个方法不适合你的系统版本,继续找方法,也可以留言描述你的系统类型和版本以及你尝试后的失败现象,失败次数多了总会成功的。