Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

docker自定义网络br0如何修改网关

Featured Replies

image.thumb.png.353f0e07f6afae110839c138da2bffa9.png

配置如图

主路由192.168.31.1

虚拟机istoreos旁路由 192.168.31.38

 

网络设置里设置的网关和这里的br0是一样的,怎么可以改这里的br0呢,想系统设置为主路由,docker br0设置成旁路由

 

 

-------------------------------------------------------------------

 

其实都是qbittorrent用起来太麻烦了

网关指向旁路由时,我给qbittorrent指定了不同于unraid的ip,网络设置为br0,上传基本能跑满,在passwall里设置了qbittorrent的ip不走代理,但是此时bridge的docker网络又上不去了,查来查去是istoreos防火墙的问题,可是加了自定义规则之后,iptables -t nat -I POSTROUTING -o br-lan -j MASQUERADE,bridge能上网了,可是qbittorrent基本没速度了。

如果指定为主路由时,qbittorrent就跑不满上传,差的挺多

 

就请教各位大佬有没有两全其美的办法,我想的办法就是需要走代理的docker加入旁路由网关的br0,不需要的继续走系统主路由bridge

  • 2 weeks later...

我是用的mac vlan,eth0没有启用桥接,主路由里面的dhcp地址池设置192.168.0.1/25,然后docker网络如图配置;网络使用正常没出现过卡死情况,qb下载满速,pt站显示可连接image.thumb.png.77323038cc6d8eb58d4bc1011e55fe01.png

Edited by phui.chen

  • Author
On 2/21/2025 at 12:45 AM, phui.chen said:

我是用的mac vlan,eth0没有启用桥接,主路由里面的dhcp地址池设置192.168.0.1/25,然后docker网络如图配置;网络使用正常没出现过卡死情况,qb下载满速,pt站显示可连接image.thumb.png.77323038cc6d8eb58d4bc1011e55fe01.png

重新设置macvlan后,为什么很多docker都无法上网呀,需要改什么吗

  • 3 weeks later...

我刚开始摆弄unraid的时候也纠结过这个问题,结论是旁路由就是邪门歪道,这种事情就应该透明代理干的,实践结果也确实如我需求,压根没有网友那么多破事,代不代就一个黑白名单的事,一张网一个配置,也不会把自己弄晕。

 

说归说,做归做,对付邪门歪道,就要用邪门歪道(其实也没那么邪),你可以试一下用策略路由来分流不同容器的路由表,这样子管理维护都统一在物理主机上,方便很多,通过用户脚本来持久化,不过要求ipvlan得是L3模式,L2直接ARP走了,不过主机路由。unraid的默认br0好像是L2的。

  • Author
On 3/11/2025 at 8:03 PM, Roin said:

我刚开始摆弄unraid的时候也纠结过这个问题,结论是旁路由就是邪门歪道,这种事情就应该透明代理干的,实践结果也确实如我需求,压根没有网友那么多破事,代不代就一个黑白名单的事,一张网一个配置,也不会把自己弄晕。

 

说归说,做归做,对付邪门歪道,就要用邪门歪道(其实也没那么邪),你可以试一下用策略路由来分流不同容器的路由表,这样子管理维护都统一在物理主机上,方便很多,通过用户脚本来持久化,不过要求ipvlan得是L3模式,L2直接ARP走了,不过主机路由。unraid的默认br0好像是L2的。

透明代理如何设置,也得在istoreos上吗,我主路由是硬路由,有点不太理解

Outgoing Proxy Manager里面填一下透明代理地址不就行了,旁路由里设置下透明代理Outgoing Proxy Manager里面填一下透明代理地址不就行了,旁路由里设置下透明代理

  • Author
On 3/16/2025 at 9:03 PM, rallos_hoo said:

Outgoing Proxy Manager里面填一下透明代理地址不就行了,旁路由里设置下透明代理Outgoing Proxy Manager里面填一下透明代理地址不就行了,旁路由里设置下透明代理

我现在就是这样设置的

On 3/16/2025 at 9:25 AM, VvLin-61 said:

透明代理如何设置,也得在istoreos上吗,我主路由是硬路由,有点不太理解

是的,只能在上游设备,家用就是路由器,openwrt靠openclash,merlin靠merlin clash,其他系统不太了解

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.