zerotier / ZeroTierOne

A Smart Ethernet Switch for Earth
https://zerotier.com
Other
14.31k stars 1.67k forks source link

Attempting to use ZT1 for proxy #125

Closed hollomancer closed 9 years ago

hollomancer commented 9 years ago

Hi,

I have my laptop and a Docker container running a proxy server, both up on ZeroTier, both pulling an IP and interfaces initialized properly.

When I attempt to use the proxy server from my laptop, all of my requests time out. I went into the docker container to check out the logs, and I get output similar to this;

(ip's redacted) 1414808938.758 10079 X.X.X.X TCP_MISS/200 3512 CONNECT www.google.com:443 - DIRECT/74.125.201.105 - 1414808940.232 321 X.X.X.X TCP_MISS/200 10267 GET http://www.whatismyip.com/ - DIRECT/141.101.120.14 text/html

From what I can tell, the proxy server is getting my requests just fine, and resolving the DNS for my requests fine, but for some reason it's not getting back to my laptop. I have tried this with Polipo and with Squid, and I am seeing the same endstate (though the logs are less verbose from Polipo). Still trying to work this out on my own chasing packets down, but any ideas why this wouldn't work?

adamierymenko commented 9 years ago

Are you able to do a regular file transfer over the link? Like what happens if you just sftp a good size file? Might also try "ping -s 2048" or similar just to see if traffic is flowing.

Use of ZeroTier in Docker containers should work just fine, and there are lots of reports of it working, but there might be little gotchas I'm not aware of yet, I might examine iptables rules on both ends if things are not working.