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
Parent Control Mouse Enter/Leave Events with Child Controls
How to Read/Stream a File Without Loading the Entire File into Memory
.Net:How to Get the Type of a Null Object
Is This Thread.Abort() Normal and Safe
ASP.NET MVC 4 C# Httppostedfilebase, How to Store File
How to Get the Local MAChine Name in C#
Why Doesn't Dictionary<Tkey, Tvalue> Support Null Key
Xml Error: There Are Multiple Root Elements
Creating Directories in a Ziparchive C# .Net 4.5
Ternary Operator Vb VS C#: Why Resolves Nothing to Zero
How to Confirm That Mail Has Been Delivered or Not
Task<> Does Not Contain a Definition for 'Getawaiter'
Adding Scripting Functionality to .Net Applications
Jquery Ajax Calls to Web Service Seem to Be Synchronous
How to Create Migrations After Upgrading to ASP.NET Core 2.0