Questions tagged [torsocks]

An open-source library to torify your application.

Torsocks allows you to use most applications in a safe way with Tor. It ensures that DNS requests are handled safely and explicitly rejects any traffic other than TCP from the application you're using.

Torsocks is an ELF shared library that is loaded before all others. The library overrides every needed Internet communication libc function calls such as connect(2) or gethostbyname(3).

This process is transparent to the user and if torsocks detects any communication that can't go through the Tor network such as UDP traffic, for instance, the connection is denied. If, for any reason, there is no way for torsocks to provide the Tor anonymity guarantee to your application, torsocks will force the application to quit and stop everything.

Repository
More information about the Tor project

31 questions
9
votes
1 answer

Why is Ruby failing to connect to my Tor network?

I’m using Ruby on Rails 4.2.7 on Mac El Capitan and just installed the Tor browser (v 6.0.4). I fired up my Tor browser, have verified its running by viewing a couple of web pages, but using this gem — https://github.com/dryruby/tor.rb , when I run…
Dave
  • 15,639
  • 133
  • 442
  • 830
7
votes
1 answer

torsocks and unsupported syscalls

i need to torify (using torsocks) a python deamon app. tested on macos everything works fine, on linux i have this error: 1507484799 WARNING torsocks[9]: [syscall] Unsupported syscall number 217. Denying the call (in tsocks_syscall() at…
robert laing
  • 1,331
  • 2
  • 12
  • 19
5
votes
0 answers

torsocks[30239]: [connect] Connection to a local address are denied

I want to open a shared folder at home for me to access at work, because most ftp is blocked by firewall I though I'd find an inventive way to access my files. On my remote host (at home) I host a tor hidden service that will forward all traffic to…
Tom Kustermans
  • 521
  • 2
  • 8
  • 31
4
votes
0 answers

scrapy + tor always returns 403 but I can curl and browse

I'm trying to setup scrapy + tor I'm using scrapy 0.24.6 I first tried using polipo to be able to access tor as an http proxy (https://pkmishra.github.io/blog/2013/04/16/scrapy-run-using-tor-and-multiple-agents-part-2-ubuntu/) I'm able to configure…
vieux
  • 23,887
  • 3
  • 26
  • 26
2
votes
0 answers

Why pip3 is not working with root in Tails4.22 OS using proxychains

I am using Tails4.22. I want to run this command which is sudo pip3 proxychains install selenium The problem is this command runs successfully without sudo and I want to use it with root. Conf file in /etc/proxychains.conf has all these lines in…
2
votes
0 answers

torsocks segmentation fault OSX

I've installed torsocks recently using brew but could not get it working. tor running on localhost:9050 as usual. torsocks on it's own without any arguments works fine as well, but everytime i execute command using torsocks/torify, i get…
Aesthetick
  • 61
  • 3
2
votes
1 answer

Torify/torsocks ssh only working from device itself, and not from other devices

While setting up ssh over tor I determined that the ssh only works from the device I try to access (deviceA), but not from another device (deviceB). I get a fresh install of Ubuntu Server 20.04 LTS, verify it is connected through wifi to the…
2
votes
0 answers

How to run multiple Tor browsers with different IPs on version 9?

I've read This Instruction but it's outdated and I couldn't comment on it because of reputation. I would like to run multiple Tor Browsers all at once, with each having a unique Tor IP address. And I'm using Windows . [ it's better to explain in…
TorLover
  • 21
  • 1
2
votes
1 answer

Unable to make python requests over tor ConnectionRefusedError: [WinError 10061]

I am trying to make requests using python requests over tor, but i get the error "ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it". Here is the code i am using: import…
Jawad Ahmad Khan
  • 279
  • 6
  • 19
2
votes
1 answer

java.net.UnknownHostException: Host is unresolved SOCKS proxy

I setup tor on a specific port and want to access the website through that port. The below code works perfectly in Android 7.0 but it gives below error in android 6.0. What may be the issue? The tor service successfully running at a specific port I…
tarun14110
  • 940
  • 5
  • 26
  • 57
1
vote
1 answer

SOCKS5 responds with no BND.ADDR nor BND.PORT?

Although this looks like a bug, some developers argue how it complies perfectly with the RFC. I wrote a simple C++ program on Linux which connects to a HTTP web-page and reads its contents over Tor. I start a tor service using this command: tor…
1
vote
1 answer

torsocks[7992]: Unable to resolve. Status reply: 4 (in socks5_recv_resolve_reply() at socks5.c:677) - Google Search

I've installed tor on ubuntu 21.10 I've got torsocks curl https://api.ipify.org?format=json Tried port 9051 torsocks -P 9051 curl https://api.ipify.org?format=json wit the same result. Checked port 9150(which is for tor browser): torsocks -P 9150…
Irina
  • 939
  • 1
  • 8
  • 26
1
vote
0 answers

Is there a way to use Torsocks directly on a Python script that runs Selenium?

I have a simple Python script that runs Selenium, and I have tried using Torsocks (as usual) simply like this: torsocks python script.py. However, it failed with this error: Traceback (most recent call last): File "script.py", line 21, in…
Samy
  • 629
  • 8
  • 22
1
vote
1 answer

Python - IP not changing with stem?

I wrote a script that changes the IP with stem, but it seems like it does not work. Here is a shortened version of the script: from stem import Signal from stem.control import Controller from stem.connection import connect def changeIP(): with…
user9053402
1
vote
1 answer

How can modify HTTParty gem for using Net::HTTP.SOCKSProxy

I want to be able to make requests with HTTParty via the tor. This functionality isn't yet available in HTTParty gem. How can I change modify it to do requests in combination with Net::HTTP.SOCKSProxy
melnik_vasya
  • 127
  • 8
1
2 3