Opened 5 years ago

Last modified 3 months ago

#11579 assigned enhancement

Torsocks should support Java

Reported by: mttp Owned by:
Priority: Medium Milestone:
Component: Core Tor/Torsocks Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Right now Java programs run with torsocks have their network calls dropped, or sometimes crash. Torsocks should force Java programs to use Tor. This could be done by setting the proxy settings in the JVM with -DsockProxyHost=127.0.0.1 -DsocksProxyPort=8080. To ensure proxy obedience for DNS calls, torsocks might implement a DNS provider that uses SOCKS for resolution, add that to the classpath, and use it to override the DNS provider the JVM uses at runtime.

Child Tickets

Change History (3)

comment:1 Changed 3 years ago by dgoulet

Cc: dgoulet yawning removed
Severity: Normal
Status: newaccepted

comment:2 Changed 13 months ago by torsocksbug

Workaround (you may not need all of these depending on what you are running):

torsocks.conf:

  • AllowInbound 1
  • AllowOutboundLocalhost 2

environment:

  • JAVA_TOOL_OPTIONS='-Djava.net.preferIPv4Stack=true'

comment:3 Changed 3 months ago by gaba

Owner: dgoulet deleted
Status: acceptedassigned

Releasing some old tickets.

Note: See TracTickets for help on using tickets.