Torsocks works badly with default VirtualAddrNetworkIPv4 ranges
In comment:9:ticket:7555 , aagbsn notes that you get the following warning when you use a default AutoMap configuration with IPv4:
05:53:37 libtorsocks(13692): connect: Connection is to a local address (127.192.0.1), may be a TCP DNS request to a local DNS server so have to reject to be safe. Please report a bug to http://code.google.com/p/torsocks/issues/entry if this is preventing a program from working properly with torsocks.
When AutomapHostsOnResolve is enabled, then Tor returns phony DNS addresses in the "Virtual range" (VirtualAddrNetworkIPv4, VirtualAddrNetworkIPv6) in response to requests for hosts listed in AutomapHostsSuffixes. For example, foobar.onion might resolve into 127.192.66.55, and subsequent connection attempts to 127.192.66.55 will cause Tor to make a connection to foobar.onion.
By default, VirtualAddrNetworkIPv4 is 127.192.0.0/10 and VirtualAddrNetworkIPv6 is [FE80::]/10 . It looks like torsocks rejects the IPv4 one because it's a local address? There should probably be some way to make it not do that, or to make an exception for a certain range, or something.