[tor-bugs] #29050 [Community/Tor Support]: Connecting to tor over a socks 5 connection no longer works in 3.5.7

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Jan 18 20:32:30 UTC 2019


#29050: Connecting to tor over a socks 5 connection no longer works in 3.5.7
-----------------------------------+-----------------------------------
 Reporter:  arj                    |          Owner:  dgoulet
     Type:  defect                 |         Status:  needs_information
 Priority:  Medium                 |      Milestone:
Component:  Community/Tor Support  |        Version:  Tor: 0.3.5.7
 Severity:  Normal                 |     Resolution:
 Keywords:  regression?            |  Actual Points:
Parent ID:                         |         Points:
 Reviewer:                         |        Sponsor:
-----------------------------------+-----------------------------------

Comment (by arj):

 This is default tor config on a debian machine.

 torsocks seems to work both with -u & -p and without, here is log without:

 547843375 DEBUG torsocks[16768]: Logging subsystem initialized. Level 5,
 file (null), time 1 (in init_logging() at torsocks.c:304)
 1547843375 DEBUG torsocks[16768]: Config file not provided by
 TORSOCKS_CONF_FILE. Using default /etc/tor/torsocks.conf (in
 config_file_read() at config-file.c:543)
 1547843375 DEBUG torsocks[16768]: Config file setting tor address to
 127.0.0.1 (in conf_file_set_tor_address() at config-file.c:298)
 1547843375 DEBUG torsocks[16768]: Config file setting tor port to 9050 (in
 conf_file_set_tor_port() at config-file.c:254)
 1547843375 DEBUG torsocks[16768]: [config] Onion address range set to
 127.42.42.0/24 (in set_onion_info() at config-file.c:108)
 1547843375 DEBUG torsocks[16768]: Config file /etc/tor/torsocks.conf
 opened and parsed. (in config_file_read() at config-file.c:572)
 1547843375 DEBUG torsocks[16768]: [fclose] Close caught for fd 3 (in
 tsocks_fclose() at fclose.c:45)
 1547843375 DEBUG torsocks[16768]: Config file setting tor port to 9050 (in
 conf_file_set_tor_port() at config-file.c:254)
 1547843375 DEBUG torsocks[16768]: [onion] Pool init with subnet
 127.42.42.0 and mask 24 (in onion_pool_init() at onion.c:104)
 1547843375 DEBUG torsocks[16768]: [onion] Pool initialized with base 0,
 max_pos 255 and size 8 (in onion_pool_init() at onion.c:132)
 1547843375 DEBUG torsocks[16768]: [fclose] Close caught for fd 3 (in
 tsocks_fclose() at fclose.c:45)
 --2019-01-18 21:29:35--  https://www.google.com./
 1547843375 DEBUG torsocks[16768]: [fclose] Close caught for fd 3 (in
 tsocks_fclose() at fclose.c:45)
 1547843375 DEBUG torsocks[16768]: [close] Close caught for fd 3 (in
 tsocks_close() at close.c:33)
 1547843375 DEBUG torsocks[16768]: [fclose] Close caught for fd 3 (in
 tsocks_fclose() at fclose.c:45)
 Resolving www.google.com. (www.google.com.)... 1547843375 DEBUG
 torsocks[16768]: [getaddrinfo] Requesting www.google.com. hostname (in
 tsocks_getaddrinfo() at getaddrinfo.c:44)
 1547843375 DEBUG torsocks[16768]: Resolving www.google.com. on the Tor
 network (in tsocks_tor_resolve() at torsocks.c:545)
 1547843375 DEBUG torsocks[16768]: Setting up a connection to the Tor
 network on fd 3 (in setup_tor_connection() at torsocks.c:368)
 1547843375 DEBUG torsocks[16768]: Socks5 sending method ver: 5, nmethods
 0x01, methods 0x00 (in socks5_send_method() at socks5.c:229)
 1547843375 DEBUG torsocks[16768]: Socks5 received method ver: 5, method
 0x00 (in socks5_recv_method() at socks5.c:262)
 1547843375 DEBUG torsocks[16768]: [socks5] Resolve for www.google.com.
 sent successfully (in socks5_send_resolve_request() at socks5.c:633)
 1547843375 DEBUG torsocks[16768]: [socks5] Resolve reply received
 successfully (in socks5_recv_resolve_reply() at socks5.c:710)
 1547843375 DEBUG torsocks[16768]: [getaddrinfo] Node www.google.com.
 resolved to 172.217.21.132 (in tsocks_getaddrinfo() at getaddrinfo.c:107)
 172.217.21.132
 Connecting to www.google.com. (www.google.com.)|172.217.21.132|:443...
 1547843375 DEBUG torsocks[16768]: [socket] Creating socket with domain 2,
 type 1 and protocol 0 (in tsocks_socket() at socket.c:33)
 1547843375 DEBUG torsocks[16768]: Connect caught on fd 3 (in
 tsocks_connect() at connect.c:118)
 1547843375 DEBUG torsocks[16768]: [connect] Socket family AF_INET and type
 1 (in tsocks_validate_socket() at connect.c:77)
 1547843375 DEBUG torsocks[16768]: [onion] Finding onion entry for IP
 172.217.21.132 (in onion_entry_find_by_addr() at onion.c:268)
 1547843375 DEBUG torsocks[16768]: Connecting to the Tor network on fd 3
 (in tsocks_connect_to_tor() at torsocks.c:473)
 1547843375 DEBUG torsocks[16768]: Setting up a connection to the Tor
 network on fd 3 (in setup_tor_connection() at torsocks.c:368)
 1547843375 DEBUG torsocks[16768]: Socks5 sending method ver: 5, nmethods
 0x01, methods 0x00 (in socks5_send_method() at socks5.c:229)
 1547843375 DEBUG torsocks[16768]: Socks5 received method ver: 5, method
 0x00 (in socks5_recv_method() at socks5.c:262)
 1547843375 DEBUG torsocks[16768]: Socks5 sending connect request to fd 3
 (in socks5_send_connect_request() at socks5.c:459)
 1547843375 DEBUG torsocks[16768]: Socks5 received connect reply - ver: 5,
 rep: 0x00, atype: 0x01 (in socks5_recv_connect_reply() at socks5.c:519)
 1547843375 DEBUG torsocks[16768]: Socks5 connection is successful. (in
 socks5_recv_connect_reply() at socks5.c:523)
 connected.
 1547843375 DEBUG torsocks[16768]: [fclose] Close caught for fd 4 (in
 tsocks_fclose() at fclose.c:45)
 ERROR: no certificate subject alternative name matches
         requested host name 'www.google.com.'.
 To connect to www.google.com. insecurely, use `--no-check-certificate'.
 1547843376 DEBUG torsocks[16768]: [close] Close caught for fd 3 (in
 tsocks_close() at close.c:33)
 1547843376 DEBUG torsocks[16768]: [close] Close connection putting back
 ref (in tsocks_close() at close.c:51)
 1547843376 DEBUG torsocks[16768]: [onion] Destroying onion pool containing
 0 entry (in onion_pool_destroy() at onion.c:148)

 So it seems like the socks js library connects differently than torsocks.
 The thing is, this used to work fine.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/29050#comment:9>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list