一个基于 Web 的 V2ray 控制面板,已改造为将树莓派作为旁路由使用,只需要设置好网关,即可代理路由器下所有设备透明翻墙,支持直连\智能分流\全局代理 三种模式,并能自动管理订阅,原理参考 透明代理(TPROXY) ,TG:https://t.me/v2ray_funpi
Raspberry Pi 4B
ZeroPi
Raspberry Pi OS (based on Debian Buster)
Armbian (based on Debian Buster)
sudo su - root
cd /usr/local
git clone https://github.com/twotreesus/V2ray.FunPi.git V2ray.Fun
cd V2ray.Fun/script
./install.sh
修改配置文件
sudo nano /usr/local/V2ray.Fun/config/app_config.json
{
"user": "admin",
"password": "admin",
"port": 1099,
"proxy_mode": 1
}
重启服务
sudo supervisorctl restart v2ray.fun
树莓派修改为静态地址192.168.66.200,这里路由器是192.168.66.1
sudo nano /etc/dhcpcd.conf
# Example static IP configuration:
interface eth0
static ip_address=192.168.66.200/24
static routers=192.168.66.1
static domain_name_servers=192.168.66.1