Hot answers tagged

17 votes

"This is a SOCKS Proxy, Not An HTTP Proxy"

Tor provides a SOCKS proxy by default. Whatever you've configured to use Tor is trying to use it as an HTTP proxy which is a different kind of proxy protocol. Tor (at least as of 0.3.2.x) can ...
cacahuatl's user avatar
  • 10.9k
12 votes
Accepted

resolve .onion address from bash

You should use --socks5-hostname instead of just --socks5. This way, the socks5 proxy does the hostname resolution. Otherwise curl tries to resolve the hostname itself, which it can't.
Jobiwan's user avatar
  • 3,665
8 votes

"This is a SOCKS Proxy, Not An HTTP Proxy"

As @cacahuatl said you can use that switch, if you want it to be permanent go to /etc/tor/torrc (This is the path for tor config file in Ubuntu and Debian), open it with your favorite text editor and ...
Siyavash vaez afshar's user avatar
7 votes

resolve .onion address from bash

Moreover, you should use torsocks - built-in utility for working with Tor Network. It is designed to prevent any leakage! Please, read the man page. For example: root@localhost:/# torsocks curl ...
snowden's user avatar
  • 71
4 votes

What's the difference between ControlPort and SocksPort

The control port is used for controlling Tor, usually via other software like Arm. The Socks port is the port running as a SOCKS5 proxy. This is the one you want to use. Please note that Tor is not ...
SuperSluether's user avatar
4 votes

How to set Tor proxy for Windows 10 instead of VPN?

Tor not just a not http proxy - it's a transparent proxy with host-mapping features and DNS + SOCKS backend. If you want it as a VPN, especially on Windows 10, you MUST use a separate box as a router, ...
Alexey Vesnin's user avatar
  • 5,915
4 votes

Does Tor add encryption at the TCP protocol level?

This isn't a good idea. TCPCrypt is, and I can't stress this enough, absolute trash. It provides no protection against an active MITM attacker, it's not authenticated. The remote party too must ...
cacahuatl's user avatar
  • 10.9k
4 votes

How can I figure out how to use TOR in my Java application

Just download and run TOR Browser. It will open a socks proxy in your system. You can check the port in browser settings: You just need to set a proxy for your java socket: InetSocketAddress ...
Mir Saman's user avatar
  • 368
4 votes
Accepted

How does Tor use application proxy (SOCKS)?

The "Onion Proxy" is a name for a Tor client, it is the entire client process. The SOCKS interface is just a way for a client to utilise the onion proxy. The SOCKS server is provided by the Tor ...
cacahuatl's user avatar
  • 10.9k
3 votes

How to change Tor Browser default SocksPort?

The easiest way to define them is through use of environment variables, e.g. start Tor Browser with the command, e.g.: env TOR_SOCKS_PORT=9170 TOR_CONTROL_PORT=9071 ./Browser/start-tor-browser or by ...
cacahuatl's user avatar
  • 10.9k
3 votes
Accepted

What is passed to the Onion Proxy in terms of the OSI model?

The SOCKS proxy operates on the application layer. Therefore the answers to your questions are: The SOCKS proxy receives whatever you send to it via the TCP connection that is built up to the SOCKS ...
segfault's user avatar
3 votes
Accepted

What's the difference between torify, usewithtor, tsocks and torsocks?

Most of the links you posted state the differences. You should use torsocks. tsocks: Allows non-SOCKS aware applications to use a SOCKS proxy. No longer maintained. tsocks' role is to allow these ...
Steve's user avatar
  • 3,112
2 votes

Proxy Client: unable to connect ("general SOCKS server failure")

To resolve this issue, Open Tor browser => Click on Configure button => select Tor is censored in my country option => Click on Request a new Bridge => enter captcha then click Submit. you will get a ...
LoRe's user avatar
  • 21
2 votes
Accepted

HTTP proxy over Tor

Polipo is the best choice! Here is an official website and a GitHub repository
Alexey Vesnin's user avatar
  • 5,915
2 votes

How to set Tor proxy for Windows 10 instead of VPN?

Best way is to set it via Control Panel: right click start -> control panel -> internet options -> connections tab -> LAN settings Check off "Use a proxy server for your LAN..." Optionally, select "...
UlchabhanRua's user avatar
2 votes

How to set Tor proxy for Windows 10 instead of VPN?

Tor is not a http proxy but it is a SOCKS proxy, so please put your options (127.0.0.1:9150) in the socks field. :)
php_coder_3809625's user avatar
2 votes
Accepted

RealVNC Viewer and Tor

Tor utilises the SOCKS username and password authentication mechanism for isolation, not access control. You can enter any credentials and it will accept them as valid. I'd be wary of adding the ...
cacahuatl's user avatar
  • 10.9k
2 votes

What's the best way to isolate applications as they enter the tor network?

you can utilize a circuit isolation by authenticating them at SOCKS proxy differently, as it is said at the manual : SOCKSPort [address:]port|unix:path|auto [flags] [isolation flags] Open this ...
Alexey Vesnin's user avatar
  • 5,915
2 votes

cURL and wget with Tor

They will know you're (likely) using curl, similarly they might know you're using wget or pythons urllib based on the behaviour and other headers. They might be able to guess at other aspects of the ...
cacahuatl's user avatar
  • 10.9k
2 votes
Accepted

Exit traffic through a SOCKS proxy

No. There's no mechanism for this in Tor, you'll need to deal with routing the outbound traffic yourself. You should also note that the address your relay is listening/running on will be linked to ...
cacahuatl's user avatar
  • 10.9k
2 votes
Accepted

Tor Dns , Multi Instances

Encrypted Traffic Tor is agnostic to the data that is routed through the network. Data is protected as it traverses the network but not before it enters or after it leaves. It is the responsibility of ...
cacahuatl's user avatar
  • 10.9k
2 votes

How to send Tor traffic through ssh tunnel?

You want to configure Tor to use an upstream proxy. Tor Button/Onion Menu -> Network Settings -> Tick 'This computer needs to use a local proxy to access the Internet' Proxy Type: SOCKS5 Address: ...
cacahuatl's user avatar
  • 10.9k
2 votes
Accepted

Socks version 22 not recognized. (Tor is not an http proxy.)

You're not trying to speak SOCKS, the SOCKS port only speaks the SOCKS protocol. Decimal 22 is hexadecimal 0x16, which is the initial byte of a TLS connection. Tor's SOCKS port does not speak TLS. ...
cacahuatl's user avatar
  • 10.9k
2 votes

Privoxy VS Polipo

Well, privoxy and polipo are basically even: they both have filtering systems inside them, both are HTTP-to-SOCKS tools. In the last beta of tor you have a HTTPS proxy embedded in tor itself, so I'd ...
Alexey Vesnin's user avatar
  • 5,915
2 votes
Accepted

Sending a request over Tor without binding port on localhost

If you plan on using the standard tor implementation, then yes you will need to use some form of local proxy. If you don't want to bind the SOCKS port to a localhost address, you can also use a unix ...
Steve's user avatar
  • 3,112
1 vote

What's the difference between ControlPort and SocksPort

The SOCKSPort is for talking to other applications. Tor runs as a SOCKS proxy and other applications (like a web browser, another proxy etc.) could connect to it. The manpage writes: SOCKSPort [...
Jens Kubieziel's user avatar
  • 8,561
1 vote

What's the difference between ControlPort and SocksPort

SocksPort is for accepting SOCKS connections from tor clients(=applications that will be "torified"), ControlPort is for communicating with tor controllers, i.e. applications that are interacting and ...
Alexey Vesnin's user avatar
  • 5,915
1 vote

Tor Dns , Multi Instances

You cannot send signal NEWNYM using port 9050. Usually, the default controllport for tor is 9051. You have to use 9051 to send signal NEWNYM. Port 9050 is used to have anonymous traffic. Here is ...
Anil Pediredla's user avatar
1 vote

Is it possible to run Tor with Proxychains using socks4a?

Tor provides a SOCKS4a or SOCKS5 compatible proxy, port 9050 is default for a system daemon/service and 9150 for Tor Browser. However it will not be compatible with most of nmap's functionality, and ...
cacahuatl's user avatar
  • 10.9k

Only top scored, non community-wiki answers of a minimum length are eligible