首先 plex 是 docker 部署,网络桥接地址 192.168.31.74 ;
clash 同样 docker 部署,网络桥接;
在启动 plex 时,clash 日志有 warn 如下内容;
WARN[0044] [TCP] dial DIRECT (match Match/) 192.168.31.74:41158 --> 127.0.0.1:32400 error: dial tcp4 127.0.0.1:32400: connect: connection refused
WARN[0044] [TCP] dial DIRECT (match Match/) 192.168.31.74:41164 --> 127.0.0.1:32400 error: dial tcp4 127.0.0.1:32400: connect: connection refused
WARN[0044] [TCP] dial DIRECT (match Match/) 192.168.31.74:41168 --> 127.0.0.1:32400 error: dial tcp4 127.0.0.1:32400: connect: connection refused
WARN[0044] [TCP] dial DIRECT (match Match/) 192.168.31.74:41172 --> 127.0.0.1:32400 error: dial tcp4 127.0.0.1:32400: connect: connection refused
WARN[0044] [TCP] dial DIRECT (match Match/) 192.168.31.74:41176 --> 127.0.0.1:32400 error: dial tcp4 127.0.0.1:32400: connect: connection refused
WARN[0044] [TCP] dial DIRECT (match Match/) 192.168.31.74:41180 --> 127.0.0.1:32400 error: dial tcp4 127.0.0.1:32400: connect: connection refused
WARN[0044] [TCP] dial DIRECT (match Match/) 192.168.31.74:41184 --> 127.0.0.1:32400 error: dial tcp4 127.0.0.1:32400: connect: connection refused
WARN[0044] [TCP] dial DIRECT (match Match/) 192.168.31.74:41188 --> 127.0.0.1:32400 error: dial tcp4 127.0.0.1:32400: connect: connection refused
clash 的配置规则
rules:
- 'DOMAIN,v4.plex.tv,DIRECT'
- 'DOMAIN-SUFFIX,plex.direct,DIRECT'
- 'DOMAIN-SUFFIX,plex.tv,♻️ 手动切换'
- 'DOMAIN,me.plexapp.com,♻️ 手动切换'
- 'DOMAIN,lastfm.freetls.fastly.net ,♻️ 手动切换'
- 'MATCH,DIRECT'
从日志看是不是 plex 的 41158 端口想要访问 127.0.0.1 本地的 32400 端口,但是由于被 clash 代理原因,导致访问到了 clash 本地的 32400 端口,导致端口被拒绝。
如果是这样该怎么解决,还是我哪里设置有问题?