Jump to content

【求助】unraid开启Docker的V2RAY代理后,其他docker和虚拟机无法上网。


Go to solution Solved by Gavin-Home,

Recommended Posts

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 by sepshow
Link to comment
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端口。这个注释掉就好了。

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...