0%

树莓派使用V2ray

安裝和更新 V2Ray

地址:
https://github.com/v2fly/fhs-install-v2ray

1
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)

安裝最新發行的 geoip.dat 和 geosite.dat

1
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-dat-release.sh)

移除 V2Ray

1
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh) --remove

离线安装V2Ray

下载v2ray core:
https://github.com/v2ray/v2ray-core/releases
树莓派选择:
v2ray-linux-arm32-v7a.zip

安装:

1
2
wget -O v2ray-install.sh  https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh
sudo ./v2ray-install.sh --local v2ray-linux-arm32-v7a.zip

修改v2ray配置:

1
sudo mousepad /usr/local/etc/v2ray/config.json

启动v2ray:

1
2
3
4
systemctl start v2ray 
# 或使用 service v2ray start
ps -ef|grep v2ray
# 或使用 service v2ray status

代理配置

编译安装 ProxyChains-NG 进行全局代理设置

1
2
3
4
5
6
git clone https://github.com/rofl0r/proxychains-ng.git
cd proxychains-ng/
./configure && make && make install

# 修改配置
sudo mousepad /usr/local/etc/proxychains.conf

proxychains.conf 内容:

1
2
3
proxy_dns
[ProxyList]
socks5 127.0.0.1 1080

测试:

1
proxychains4 curl -I google.com