I have setup a http proxy on openwrt, it listens on 0.0.0.0:8443
My openwrt has IP address of 192.168.1.1
However when trying to test it using curl --connect-timeout 2 -x 192.168.1.1:8443 http://example.com , it does not work, I got a connection timeout error. I have tried it from openwrt itself and a PC on the same local network.
Only if I test it using curl --connect-timeout 2 -x 127.0.0.1:8443 http://example.com on openwrt itself will I get the result that it actually connects.
On openwrt nc 127.0.0.1 8443 it shows an empty row, I think it means connection successful?
(because if I nc 127.0.0.1 8444 it straight up refuses to connect since I have nothing on port 8444) nc 192.168.1.1 8443 gives same result
On PC client telnet 192.168.1.1 8443 gives a connection error
Sorry, this service is created by docker.
So it is actually mapped from 172.17.0.4 (docker instance) to openwrt.
I don't think I can change 0.0.0.0 to 192.168.1.1 since the mapping is controlled by docker-ce