Skip to main content
Share Your Experience: Take the 2024 Developer Survey
15 votes

How to properly start tor service

Normally the Tor service should be started/stopped with either: sudo systemctl start/stop tor.service Or: sudo service tor start/stop Personally I've always used the service command because it is ...
SuperSluether's user avatar
6 votes

Torsocks vs Proxychains?

You should prefer torsocks over proxychains, since torsocks is intended to block potential leaks. Especially in cases with tools like youtube-dl which might try to pass over execution to programs ...
cacahuatl's user avatar
  • 11k
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
Accepted

SSH only for onion network

To achieve this, just change your SSH configuration so it only binds to 127.0.0.1 instead of 0.0.0.0, so it can only be accessed by local processes.
cacahuatl's user avatar
  • 11k
3 votes

How to add Tor Services in My Java Application

You could try and use jtorctl which is a A Java library for controlling a Tor instance via its control port. It is used in the Android app Orbot as well as others. Orchid Orchid is a Tor client ...
m894v5n74v539nm8's user avatar
3 votes
Accepted

Should I worry about this torify (torsocks) warning?

torsocks intercepts calls to the libc syscall() function (and various other libc calls) by hooking into them through the dynamic linkers LD_PRELOAD environment variable. It creates a "shim" function ...
cacahuatl's user avatar
  • 11k
3 votes
Accepted

Questions about tor, tor browser and the possibility of 6 relays stacking

No, the Tor Browser will launch it's own tor process by default and both will connect to the Tor network separately. So unless you've knowingly configured your system daemon instance of tor to act as ...
cacahuatl's user avatar
  • 11k
3 votes

Allow command-line tor client to accept anonymous connection from private address

It seems that you're hitting the Tor built-in protection against requests to private LAN addresses through SOCKS proxy backend. Try using redsocks or something like it, but revise your config first : ...
Alexey Vesnin's user avatar
  • 6,225
3 votes

ssh reverse connect tor

So , i solved the problem. Change torsocks to ssh -o "ProxyCommand socat - SOCKS4A:localhost:%h:%p,socksport=9050" and now a can create reverse connect from device to my server.
soik's user avatar
  • 31
3 votes

How to check if Tor socks proxy is working programatically python?

I personally wouldn't do this by getting a web page. It might depend on your use case but if you want to get status info about Tor you probably should get this info from the Tor control port (9051). ...
Lord Vapor'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,142
3 votes
Accepted

TICKET_CREATE privileges - Can't create a ticket on the tracker

The Tor Project is currently in the process of migrating from trac to a Gitlab instance. It may be difficult to report issues there for the next few weeks. Instead you can try mailing lists, or asking ...
Steve's user avatar
  • 3,142
2 votes

SSH to Tor Hidden service running on Home Computer failed

You're not fully understanding how Tor works with traffic, let me explain : it has it's SOCKS listener through which one he can give you an access to the hidden service by default. That's it. It is ...
Alexey Vesnin's user avatar
  • 6,225
2 votes
Accepted

IRC Server behind a tor hidden service?

This is unrelated to the onion service, there is a problem with your client configuration. It is not properly using SOCKS5/SOCKS4a's remote hostname functionality. The problem is that you're ...
cacahuatl's user avatar
  • 11k
2 votes

Debian-tor user running tor in the background from startup

It seems you have installed the Tor package, either from Tor directly or as a Debian package. By default the software is set up to start by system start and it always runs in the background. So this ...
Jens Kubieziel's user avatar
  • 8,570
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

PERROR torsocks [2893]

If you want to use Tor Browser's Tor instance you'll have to use TorPort 9150. Alternatively, you can install a global Tor instance. This doesn't work if you're running the alpha version of Tor ...
Peter Gerber's user avatar
  • 1,342
2 votes
Accepted

How to specify ExitNodes in Linux?

GeoIP needs to be installed for Tor to be able to determine in what country a exit relay is. You can install it using sudo apt install tor-geoipdb. From the logs: We've been configured to use (or ...
Peter Gerber's user avatar
  • 1,342
2 votes

torsocks over torsocks? (by accident)

Torsocks sets the LD_PRELOAD environment variable to intercept a few system calls. It does not matter if you use it recursively: # at first $LD_PRELOAD is unset $ echo $LD_PRELOAD # when we start ...
Peter Gerber's user avatar
  • 1,342
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
  • 11k
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
  • 11k
2 votes

curl website with tor's unix socket

First of all, ControlPort isn't used to send data over Tor, it's used to get information and set configuration options from the Tor client. If you want to connect over a UNIX socket and connect over ...
cacahuatl's user avatar
  • 11k
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
  • 6,225
2 votes
Accepted

cert type 4, 5, 7 in cert cell

All certificates types are listed here, see section "A.1. List of certificate types" [04] - Ed25519 signing key with an identity key (see prop220 section 4.2) [05] - TLS link ...
Oleg Pekar's user avatar
2 votes
Accepted

Does torify/torsocks give access to hidden services?

The torsocks program (the actual name of the torify alias) can connect to hidden services fine. For example: torsocks curl https://3g2upl4pq6kufc4m.onion
Steve's user avatar
  • 3,142
2 votes

torsocks on macOS: ERROR: YYY is located in a directory protected by Apple's System Integrity Protection

You cannot use torsocks on system utilities without disabling SIP. Your best bet is to install alternate versions of these tools using Homebrew and use torsocks on those binaries. For example, you can ...
xrisk's user avatar
  • 123
2 votes

Cannot connect to tor hidden sevice on my server after years of use

You're probably using a v2 onion service. These v2 onion services are now deprecated and are no longer supported by the network for security and privacy reasons. You need to upgrade your v2 service to ...
Steve's user avatar
  • 3,142
2 votes
Accepted

irssi with Tor - Mapped hostname not working

irssi looks like it very strictly only works with real fqdn names that it can resolve directly with DNS. It works with socks4 but not with socks5 so you can't use the tor proxy directly. The official ...
elmerjfudd's user avatar
  • 2,274
2 votes
Accepted

Why doesn't `torsocks git clone https://github.com/ElementsProject/lightning.git` work?

It's how the Git works - you need to set Git socks proxy like that: git config --global http.proxy 'socks5://127.0.0.1:9050' and to unset it: git config --global --unset http.proxy Use http.proxy or ...
Alexey Vesnin's user avatar
  • 6,225
1 vote

tbb-nightly-hardened provides no TCP socks proxy, only unix domain socket. is that normal?

The feature has been introduced to make it possible to block all IP networking, thereby, making it harder to bypass Tor. Tickets 12585 and 14270 have some more information on it. So, yes, this is the ...
Peter Gerber's user avatar
  • 1,342

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