March 13, 20242 yr unraid版本6.12.8,如图所示,我要安装clash容器,需要映射7870端口,我明明在配置模板映射了7890,但是创建完成后依旧只有8080,而且8080端口就算不映射,依旧可以自动完成映射.我在ubuntu虚拟机里面是能检测到端口打开的, ✘ ⚡ root@teriri ~ nc -v -n 192.168.100.19 7890 Connection to 192.168.100.19 7890 port [tcp/*] succeeded! 但是无法访问, ⚡ root@teriri ~ wget -e "http_proxy=http://192.168.100.19:7890" http://www.google.com --2024-03-13 15:50:00-- http://www.google.com/ Connecting to 192.168.100.19:7890... connected. Proxy request sent, awaiting response... 502 Bad Gateway 2024-03-13 15:50:05 ERROR 502: Bad Gateway. 我又开了一个win虚拟机,win虚拟机里面就没有问题,容器里面用桥接的clash容器就没办法访问 ✘ ⚡ root@teriri ~ wget -e "http_proxy=http://192.168.100.38:7890" http://www.google.com --2024-03-13 15:51:01-- http://www.google.com/ Connecting to 192.168.100.38:7890... connected. Proxy request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: ‘index.html’ index.html [ <=> ] 19.01K 126KB/s in 0.2s 2024-03-13 15:51:02 (126 KB/s) - ‘index.html’ saved [19468] 不当当是clash容器问题,很多时候,感觉端口是一开始就已经默认固定好的,你配置界面修改端口映射,完成后依旧显示只映射默认端口
March 13, 20242 yr 首先我不是很懂。 但是我看你这里container port后面都没有值,是不是没有映射成功啊? 点后面的编辑按钮,把container port的值加上试试看呢?
March 13, 20242 yr Author 28 minutes ago, kecho05 said: 首先我不是很懂。 但是我看你这里container port后面都没有值,是不是没有映射成功啊? 点后面的编辑按钮,把container port的值加上试试看呢? 设置了,我也不知道是怎么回事,主机端口和默认值都写了
March 13, 20242 yr Author 19 minutes ago, JackieWu said: 使用 Custom: br0 给 docker 设置固定 IP 地址的情况下不需要进行端口映射,默认情况下会自动暴露容器所使用到的所有端口。 那就能解释为什么我扫描clash容器端口7890端口是通的,我现在是怀疑容器网关问题 "Networks": { "br0": { "IPAMConfig": { "IPv4Address": "192.168.100.19" }, "Links": null, "Aliases": [ "7efc815111aa" ], "NetworkID": "a0973ee1a76af6e32fa0842d754f0592e8740fb6fb40e691c21ca5e6167d6bcf", "EndpointID": "0670f7329d85bdded37f673f17a0ce7aa660e19ff3f163548364af9eadbd3ecc", "Gateway": "192.168.100.2", "IPAddress": "192.168.100.19", "IPPrefixLen": 24, "IPv6Gateway": "2408:825xxxxxc1", "GlobalIPv6Address": "24082xxxxxx", "GlobalIPv6PrefixLen": 64, "MacAddress": "02:42:c0:a8:64:13", "DriverOpts": null } } } } clash容器详细网络配置,现在.2网关是旁路由的,我在虚拟机win直接安装clash是能在局域网访问代理的,clash容器就不行, Custom模式下能自定义容器的网关吗,我要把网关指向主路由
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.