Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tor & cURL: Can't complete SOCKS5 connection to 0.0.0.0:0

Tags:

curl

tor

centos

Was running a scraping script on one server using tor, and all worked fine. Moved it to the production server and the script stopped working. Tried running cURL manually, and got the following output:

curl http://www.google.com --socks5 '127.0.0.1:9050'
curl: (7) Can't complete SOCKS5 connection to 0.0.0.0:0. (6)

Relevant info: Tor version 0.2.2.35 | CentOS 6.2 i686

curl --version
curl 7.19.7 (i686-pc-linux-gnu) libcurl/7.19.7 NSS/3.12.7.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp 
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

There doesn't seem to be much info on this particular error message that I could find in my searching, just generic bad configurations or tor not running. I am using the same configuration on my production server as the development server where it worked.

like image 740
Dale Smith Avatar asked Jun 28 '12 14:06

Dale Smith


People also ask

Is Tor Browser illegal?

In short: yes, using Tor is completely legal. However, if you use Tor for illicit activities, like drug trafficking or viewing explicit and abusive content, then you can face legal scrutiny if your activities are traced back to you. Some countries, such as China and Russia, have also banned the Tor browser and network.

What is Tor used for?

The Tor browser enables people to have access to the dark web. While many associate the dark web with illegal activities, the Tor network also has a number of legitimate uses. These include communicating or browsing in countries implementing internet censorship.

Is Tor better or VPN?

To put it simply, Tor is best for those transmitting sensitive information. A VPN is usually a more effective solution for everyday use as it strikes a great balance between connection speed, convenience, and privacy.

What is Tor and how it works?

Tor is a network of virtual tunnels that allows you to improve your privacy and security on the Internet. Tor works by sending your traffic through three random servers (also known as relays) in the Tor network. The last relay in the circuit (the “exit relay”) then sends the traffic out onto the public Internet.


1 Answers

The time on my server was 10 hours behind. After fixing it (ntpd already was installed, I just ran command /usr/sbin/ntpdate 0.rhel.pool.ntp.org europe.pool.ntp.org) and restarting Tor, everything works.

like image 164
Ruslan Mansurov Avatar answered Nov 16 '22 03:11

Ruslan Mansurov