Jump to content

unraid网关设置为虚拟机openwrt,无法代理


Recommended Posts

在unraid虚拟机中安装了openwrt并配置好了ssrp,ip地址为192.168.88.10。局域网内的其他设备都可以通过设置静态ip,将网关设置为openwrt的ip地址来实现透明代理,但unraid本身即便网关指向了openwrt,无论是更新plugin还是docker都非常慢(偶尔失败),通过命令行ping google也不成功。

image.thumb.png.72349fe07812fd094decf6bf5be5d96b.png

openwrt是旁路由,就一个br-lan,也没有使用任何直通。从openwrt的网络诊断可以正常访问openwrt.org:

 

traceroute to openwrt.org (64.226.122.113), 20 hops max, 46 byte packets
 1  192.168.88.1  0.768 ms
 2  180.172.110.1  6.016 ms
 3  61.172.75.13  4.125 ms
 4  61.172.75.2  5.029 ms
 5  202.97.51.206  6.013 ms
 6  *
 7  202.97.51.254  158.261 ms
 8  218.30.53.51  133.711 ms
 9  *
10  129.250.6.238  187.879 ms
11  129.250.2.36  203.055 ms
12  129.250.2.110  215.619 ms
13  129.250.3.191  250.860 ms
14  212.119.4.189  216.092 ms
15  143.244.224.146  242.818 ms
16  *
17  *
18  *
19  *
20  64.226.122.113  260.000 ms

但ssh到后台再tracert或者ping都不通:

root@OpenWrt:~# ping openwrt.org
PING openwrt.org (2a03:b0c0:3:d0::1a51:c001): 56 data bytes
^C
--- openwrt.org ping statistics ---
112 packets transmitted, 0 packets received, 100% packet loss
root@OpenWrt:~# traceroute openwrt.org
traceroute to openwrt.org (2a03:b0c0:3:d0::1a51:c001), 30 hops max, 72 byte packets
 1  240e:38c:8849:3f00:5054:ff:febb:405c (240e:38c:8849:3f00:5054:ff:febb:405c)  0.538 ms  0.487 ms  0.392 ms
 2  240e:38c:8849:3f00:5054:ff:fea6:ef9c (240e:38c:8849:3f00:5054:ff:fea6:ef9c)  0.321 ms  0.423 ms  0.322 ms
 3  240e:38c:8849:3f00:5054:ff:febb:405c (240e:38c:8849:3f00:5054:ff:febb:405c)  0.482 ms  0.598 ms  0.587 ms
 4  240e:38c:8849:3f00:5054:ff:fea6:ef9c (240e:38c:8849:3f00:5054:ff:fea6:ef9c)  0.480 ms  0.629 ms  1.221 ms
 5  *  240e:38c:8849:3f00:5054:ff:febb:405c (240e:38c:8849:3f00:5054:ff:febb:405c)  1.328 ms  0.993 ms
 6  240e:38c:8849:3f00:5054:ff:fea6:ef9c (240e:38c:8849:3f00:5054:ff:fea6:ef9c)  0.709 ms  0.715 ms  1.440 ms
 7  *  240e:38c:8849:3f00:5054:ff:febb:405c (240e:38c:8849:3f00:5054:ff:febb:405c)  1.644 ms  1.270 ms
 8  240e:38c:8849:3f00:5054:ff:fea6:ef9c (240e:38c:8849:3f00:5054:ff:fea6:ef9c)  0.934 ms  1.059 ms  0.972 ms
 9  *  240e:38c:8849:3f00:5054:ff:febb:405c (240e:38c:8849:3f00:5054:ff:febb:405c)  2.436 ms  1.468 ms
10  240e:38c:8849:3f00:5054:ff:fea6:ef9c (240e:38c:8849:3f00:5054:ff:fea6:ef9c)  1.303 ms  1.163 ms  1.551 ms
11  240e:38c:8849:3f00:5054:ff:febb:405c (240e:38c:8849:3f00:5054:ff:febb:405c)  1.192 ms  1.383 ms  *
12  240e:38c:8849:3f00:5054:ff:fea6:ef9c (240e:38c:8849:3f00:5054:ff:fea6:ef9c)  2.598 ms  1.628 ms  1.305 ms
13  *  *  *
14  240e:38c:8849:3f00:5054:ff:fea6:ef9c (240e:38c:8849:3f00:5054:ff:fea6:ef9c)  2.294 ms  1.412 ms  1.446 ms
15  *  *  *
16  240e:38c:8849:3f00:5054:ff:fea6:ef9c (240e:38c:8849:3f00:5054:ff:fea6:ef9c)  4.260 ms  2.053 ms  2.006 ms
17  *  240e:38c:8849:3f00:5054:ff:febb:405c (240e:38c:8849:3f00:5054:ff:febb:405c)  3.485 ms  *
18  240e:38c:8849:3f00:5054:ff:fea6:ef9c (240e:38c:8849:3f00:5054:ff:fea6:ef9c)  3.024 ms  2.344 ms  1.759 ms
19  *  *  *
20  240e:38c:8849:3f00:5054:ff:fea6:ef9c (240e:38c:8849:3f00:5054:ff:fea6:ef9c)  3.640 ms  3.141 ms  2.160 ms
21  *  *^C

求助到底哪里出问题了,这结果非常诡异……

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