Search code examples
tor

Can anyone access pluggable-transports/meek.git?


git clone https://git.torproject.org/pluggable-transports/meek.git

fatal: unable to access 'https://git.torproject.org/pluggable-transports/meek.git/': Failed to connect to gitweb.torproject.org port 443: Connection timed out

and I get TorBrowser running ,and config git with

git config --global http.proxy 'socks5://127.0.0.1:9150'

git config --global https.proxy 'socks5://127.0.0.1:9150'

and git clone get these message:

fatal: unable to access 'https://git.torproject.org/pluggable-transports/meek.git/': Can't complete SOCKS5 connection to 0.0.0.0:0. (1)

Does meek source code accessible?

I want use tor not JUST TorBrowser Bundle . and I need meek to get out the GFW .

curl https://torproject.org --socks5 '127.0.0.1:9150'
curl: (7) Can't complete SOCKS5 connection to 0.0.0.0:0. (6)

TorBrowser 6.0.6 is running ScreenShot


Solution

  • The apparent problem is that Git's HTTP(S) proxy doesn't do DNS resolution over SOCKS and relies on your system DNS server. So when you try to clone (via https://gitweb.torproject or the .onion site) it's doing a DNS lookup through your default DNS servers which I think are giving you bad information.

    This should work (because it resolves DNS over Tor):

    curl https://torproject.org --socks5-hostname '127.0.0.1:9150'
    

    While this probably doesn't (because it uses your default DNS servers):

    curl https://torproject.org --socks5 '127.0.0.1:9150'
    

    That said, I didn't try very hard or look more into having Git's proxy resolve DNS over SOCKS, but the easier thing to do is try using torsocks or proxychains.

    Go to https://github.com/rofl0r/proxychains-ng - download, configure, build, and install. Then edit /etc/proxychains.conf and change socks4 127.0.0.1 9050 to socks5 127.0.0.1 9150

    Then run:

    ./proxychains4 git clone http://dccbbv6cooddgcrq.onion/pluggabletransports/meek.git
    

    If it works, you're set.

    The directory permissions are fine. They show up funny in the web viewer d--------- but when you clone it, the directories will get permissions (probably 0755) based on your umask.

    In any case, if you're still stuck, I've uploaded the meek git clone to https://drew.co.il/downloads/meek.zip so you can try to download that. It'll have the .git directory in it in case you need that later.