Using Tor as Proxy

Using CURL with TOR as a Proxy on CentOs

You've made no mistake. That output indicates that Tor launched, connected to the network and is running. You'll probably want to figure out how to daemonize it, or run it in the background (nohup tor &).

The line Opening Socks listener on 127.0.0.1:9050 tells you that it's SOCKS (proxy) port is listening on port 9050. This is the port you want applications like curl or wget to proxy through.

As shown in the article you linked, you just need to run curl using Tor's SOCKS port.

curl -s --socks5-hostname 127.0.0.1:9050 http://www.showmyip.gr

TOR as HTTP proxy instead SOCKS

The easiest way is to add HTTPTunnelPort 9080 line in your /etc/tor/torrc file.

After that you'll have localhost:9080 socket open and you can set http_proxy=http://localhost:9080 environment variable to tell applications to use it.



Related Topics



Leave a reply



Submit