Gavin-Home Posted February 23 Share Posted February 23 插件中心可以访问,其他虚拟机和Docker都无法上网。 如何让其他虚拟机也默认走V2RAY的转发代理? Quote Link to comment
JackieWu Posted February 23 Share Posted February 23 个人建议还是修改网关的形式去让 Unraid 使用代理,把网关修改为 openwrt 或者是其他透明代理网关。 Quote Link to comment
sepshow Posted February 26 Share Posted February 26 (edited) Docker安装v2rayA 把容器设置为开机自动启动 配置应用商店的魔法网络 1# cd /boot/config/plugins/community.applications/ 2# tee proxy.cfg <<-'EOF' port=20171 tunnel=1 proxy=http://127.0.0.1 EOF 编辑GO文件 cd /boot/config/ vi go 把下面四行写进Go文件保存后重启unraid echo "use_proxy=yes" >> /root/.wgetrc echo "http_proxy=http://127.0.0.1:20171" >> /root/.wgetrc echo "https_proxy=http://127.0.0.1:20171" >> /root/.wgetrc echo "wait=10" >> /root/.wgetrc *注意:此方法只有商店走代理其他网络正常,所以不开启v2rayA容器话商店是连接不上的。需要还原初始状态就删除GO文件里面的这四行,同时删除U盘里“community.applications”目录下proxy.cfg这个文件 Edited February 26 by sepshow Quote Link to comment
Solution Gavin-Home Posted March 1 Author Solution Share Posted March 1 On 2024/2/23 at PM6点21分, JackieWu said: 个人建议还是修改网关的形式去让Unraid使用代理,把网关修改为openwrt或者是其他透明代理网关。 感谢,使用了openwrt确实好用。 Quote Link to comment
Gavin-Home Posted March 1 Author Share Posted March 1 On 2024/2/26 at AM11点44分, sepshow said: Docker安装v2rayA把容器设置为开机自动启动 配置应用商店的金融网络 1# cd /boot/config/plugins/community.applications/ 2# tee proxy.cfg <<-'EOF' port=20171tunnel =1 proxy=http://127.0.0.1 EOF 编辑GO文件 cd /boot/config/ vi 转到 把下面四行写进Go文件保存后重启unraid echo "use_proxy=yes" >> /root/.wgetrc echo "http_proxy=http://127.0.0.1:20171" >> /root/.wgetrc echo "https_proxy=http://127.0.0.1:20171" >> /root/.wgetrc echo "wait=10" >> /root/.wgetrc *注意:此方法只有商店走代理其他网络正常,所以不开启v2rayA容器话商店是连接不上的。需要还原最终状态就删除GO文件里面的这四行,同时删除U盘里“community.applications”目录下proxy.cfg这个文件 非常感谢,就说为啥我用了网关代理商店页访问不了,看到你这个想起来,之前初始化系统的时候看别人的教程写过这个文件导致商店一直走20171端口。这个注释掉就好了。 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.