[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Tor gives "resolve failed" errors even when IP address is supplied



Hello,

I've been using Tor for some time, but recently ran into problems when
I started running it on my Linksys NSLU2 (running Unslung
V2.3R63-uNSLUng-6.8-beta).  I'm running version 0.1.2.17 of Tor, the
latest version for which there is a compiled ipkg package.  (I'm
posting even though I know there's a newer version of Tor because I've
had trouble with libevent when trying to compile from source, so I've
had to use the compiled ipkg.  Plus, I never had this problem with any
previous version, though I never tried any previous version on an
NSLU2.)

Anyway, I seem to be unable to get any webpages through Tor.  I am
using privoxy as a SOCK4a proxy to send traffic through Tor, and Tor
is receiving the requests (that much is apparent from the Tor logs).
The log keeps telling me that there is a resolve failure, which is
strange, because tor-resolve seems to work just fine.

I tried sending an ip address directly, but Tor still gave a "resolve
failed" error and didn't complete the request.

I have attached
(1) my torrc file
(2) the php code for the simple Tor client class I wrote to send
requests via Tor.  I emphasize that this works just fine on other
platforms so I don't think it's a problem with the code; I'm just
posting it for completeness (and in case anyone wants a simple
implementation of a class that filters requests through Tor).  Also
the php code that instantiates and uses that class - as you can see,
Tor shouldn't even be trying to resolve anything (right?), since I'm
giving it an IP address in the first place.
(3) the portion of my tor log that shows what happens when I run the
php scripts in (2) - Tor is humming along and thinking everything's
fine, but it throws a "resolve failed" error whenever it actually
tries to fetch something.

First I thought that Tor was just having DNS problems - but since
tor-resolve works, and since I have the same problem even when I
manually supply the IP, I don't think that's it.

Can anyone help me figure out what's going on here?  Thanks very much
in advance; I appreciate any assistance.

Best,
jeh

Attachment: torrc
Description: Binary data

Attachment: TorClient.php
Description: Binary data

Attachment: TorClientTester.php
Description: Binary data

-- BEGIN --

Dec 17 08:54:53.878 [info] connection_ap_handshake_send_begin(): Address/port sent, ap socket 4, n_circ_id 20841
Dec 17 08:54:53.879 [info] connection_edge_process_inbuf(): data from edge while in 'waiting for connect response' state. Leaving it on buffer.
Dec 17 08:55:01.825 [info] circuit_finish_handshake(): Finished building circuit hop:
Dec 17 08:55:01.826 [info] exit circ (length 3, exit petspaper): adendorf(open) lefkada(open) $49543D006E777DBECD0C12086E34B519D47CF6DE(open)
Dec 17 08:55:01.826 [info] circuit_send_next_onion_skin(): circuit built!
Dec 17 08:55:03.732 [info] connection_ap_expire_beginning(): We tried for 10 seconds to connect to '[scrubbed]' using exit 'thisIsMyFirstTorSvr'. Retrying on a new circuit.
Dec 17 08:55:03.734 [info] exit circ (length 3): adendorf(open) lefkada(open) $49543D006E777DBECD0C12086E34B519D47CF6DE(open)
Dec 17 08:55:03.736 [info] connection_ap_handshake_send_begin(): Address/port sent, ap socket 4, n_circ_id 45895
Dec 17 08:55:03.737 [info] circuit_predict_and_launch_new(): Have 2 clean circs (2 internal), need another exit circ.
Dec 17 08:55:03.745 [info] choose_good_exit_server_general(): Found 624 servers that might support 0/0 pending connections.
Dec 17 08:55:03.812 [info] choose_good_exit_server_general(): Chose exit server 'justanickname'
Dec 17 08:55:03.940 [info] circuit_send_next_onion_skin(): First hop: finished sending CREATE_FAST cell to 'h762626'
Dec 17 08:55:04.143 [info] circuit_finish_handshake(): Finished building fast circuit hop:
Dec 17 08:55:04.144 [info] exit circ (length 3, exit justanickname): h762626(open) $13C61E29E74ADFB0F75D5B6BD3DCA1B8B08773E3(closed) justanickname(closed)
Dec 17 08:55:07.816 [info] circuit_finish_handshake(): Finished building circuit hop:
Dec 17 08:55:07.817 [info] exit circ (length 3, exit justanickname): h762626(open) $13C61E29E74ADFB0F75D5B6BD3DCA1B8B08773E3(open) justanickname(closed)
Dec 17 08:55:08.021 [info] connection_edge_process_relay_cell(): end cell (resolve failed) dropped, unknown stream.
Dec 17 08:55:09.020 [info] circuit_predict_and_launch_new(): Have 2 clean circs (2 internal), need another exit circ.
Dec 17 08:55:09.034 [info] choose_good_exit_server_general(): Found 624 servers that might support 0/0 pending connections.
Dec 17 08:55:09.083 [info] choose_good_exit_server_general(): Chose exit server 'dotplex'
Dec 17 08:55:10.283 [info] circuit_send_next_onion_skin(): First hop: finished sending CREATE_FAST cell to 'nixnix'
Dec 17 08:55:10.378 [info] circuit_finish_handshake(): Finished building fast circuit hop:
Dec 17 08:55:10.379 [info] exit circ (length 3, exit dotplex): $04E81AA7E053C4B6DA6BA09E065D13EA8B83B014(open) $28972B9441AC685865F67268435F671D99DB192B(closed) $80C83C56A969E4192AC423D40B41EAF88D62F383(closed)
Dec 17 08:55:10.727 [info] circuit_finish_handshake(): Finished building circuit hop:
Dec 17 08:55:10.727 [info] exit circ (length 3, exit dotplex): $04E81AA7E053C4B6DA6BA09E065D13EA8B83B014(open) $28972B9441AC685865F67268435F671D99DB192B(open) $80C83C56A969E4192AC423D40B41EAF88D62F383(closed)
Dec 17 08:55:11.627 [info] circuit_finish_handshake(): Finished building circuit hop:
Dec 17 08:55:11.634 [info] exit circ (length 3, exit dotplex): $04E81AA7E053C4B6DA6BA09E065D13EA8B83B014(open) $28972B9441AC685865F67268435F671D99DB192B(open) $80C83C56A969E4192AC423D40B41EAF88D62F383(open)
Dec 17 08:55:11.635 [info] circuit_send_next_onion_skin(): circuit built!
Dec 17 08:55:13.655 [info] connection_ap_expire_beginning(): We tried for 10 seconds to connect to '[scrubbed]' using exit 'petspaper'. Retrying on a new circuit.
Dec 17 08:55:13.657 [info] exit circ (length 3): $04E81AA7E053C4B6DA6BA09E065D13EA8B83B014(open) $28972B9441AC685865F67268435F671D99DB192B(open) $80C83C56A969E4192AC423D40B41EAF88D62F383(open)
Dec 17 08:55:13.659 [info] connection_ap_handshake_send_begin(): Address/port sent, ap socket 4, n_circ_id 1709
Dec 17 08:55:13.660 [info] circuit_predict_and_launch_new(): Have 2 clean circs (2 internal), need another exit circ.
Dec 17 08:55:13.674 [info] choose_good_exit_server_general(): Found 624 servers that might support 0/0 pending connections.
Dec 17 08:55:13.745 [info] choose_good_exit_server_general(): Chose exit server 'petspaper'
Dec 17 08:55:13.865 [info] circuit_send_next_onion_skin(): First hop: finished sending CREATE_FAST cell to 'nixnix'
Dec 17 08:55:13.869 [info] connection_edge_process_relay_cell(): end cell (resolve failed) dropped, unknown stream.
Dec 17 08:55:13.973 [info] circuit_finish_handshake(): Finished building fast circuit hop:
Dec 17 08:55:13.974 [info] exit circ (length 3, exit petspaper): $04E81AA7E053C4B6DA6BA09E065D13EA8B83B014(open) liquitor(closed) $49543D006E777DBECD0C12086E34B519D47CF6DE(closed)
Dec 17 08:55:14.164 [info] connection_edge_process_end_not_open(): Address '[scrubbed]' refused due to 'resolve failed'. Considering retrying.
Dec 17 08:55:14.164 [info] client_dns_incr_failures(): Address [scrubbed] now has 1 resolve failures.
Dec 17 08:55:14.165 [info] exit circ (length 3): $04E81AA7E053C4B6DA6BA09E065D13EA8B83B014(open) $28972B9441AC685865F67268435F671D99DB192B(open) $80C83C56A969E4192AC423D40B41EAF88D62F383(open)
Dec 17 08:55:14.873 [info] circuit_predict_and_launch_new(): Have 3 clean circs (2 internal), need another exit circ.
Dec 17 08:55:14.942 [info] choose_good_exit_server_general(): Found 536 servers that might support 1/1 pending connections.
Dec 17 08:55:14.997 [info] choose_good_exit_server_general(): Chose exit server 'BostonUCompSci'
Dec 17 08:55:15.084 [info] circuit_send_next_onion_skin(): First hop: finished sending CREATE_FAST cell to 'h762626'
Dec 17 08:55:15.282 [info] circuit_finish_handshake(): Finished building fast circuit hop:
Dec 17 08:55:15.282 [info] exit circ (length 3, exit BostonUCompSci): h762626(open) Bellum(closed) BostonUCompSci(closed)
Dec 17 08:55:15.718 [info] circuit_finish_handshake(): Finished building circuit hop:
Dec 17 08:55:15.719 [info] exit circ (length 3, exit BostonUCompSci): h762626(open) Bellum(open) BostonUCompSci(closed)
Dec 17 08:55:16.113 [info] circuit_finish_handshake(): Finished building circuit hop:
Dec 17 08:55:16.121 [info] exit circ (length 3, exit petspaper): $04E81AA7E053C4B6DA6BA09E065D13EA8B83B014(open) liquitor(open) $49543D006E777DBECD0C12086E34B519D47CF6DE(closed)
Dec 17 08:55:17.469 [info] circuit_finish_handshake(): Finished building circuit hop:
Dec 17 08:55:17.469 [info] exit circ (length 3, exit BostonUCompSci): h762626(open) Bellum(open) BostonUCompSci(open)
Dec 17 08:55:17.470 [info] circuit_send_next_onion_skin(): circuit built!
Dec 17 08:55:17.478 [info] exit circ (length 3): h762626(open) Bellum(open) BostonUCompSci(open)
Dec 17 08:55:17.480 [info] connection_ap_handshake_send_begin(): Address/port sent, ap socket 4, n_circ_id 20844
Dec 17 08:55:17.906 [info] connection_edge_process_end_not_open(): Address '[scrubbed]' refused due to 'resolve failed'. Considering retrying.
Dec 17 08:55:17.906 [info] client_dns_incr_failures(): Address [scrubbed] now has 2 resolve failures.
Dec 17 08:55:17.907 [info] exit circ (length 3): h762626(open) Bellum(open) BostonUCompSci(open)
Dec 17 08:55:18.260 [info] circuit_predict_and_launch_new(): Have 3 clean circs (2 internal), need another exit circ.
Dec 17 08:55:18.330 [info] choose_good_exit_server_general(): Found 536 servers that might support 1/1 pending connections.
Dec 17 08:55:18.398 [info] choose_good_exit_server_general(): Chose exit server 'delbene'
Dec 17 08:55:18.503 [info] circuit_send_next_onion_skin(): First hop: finished sending CREATE_FAST cell to 'adendorf'
Dec 17 08:55:18.698 [info] circuit_finish_handshake(): Finished building fast circuit hop:
Dec 17 08:55:18.698 [info] exit circ (length 3, exit delbene): adendorf(open) confector(closed) delbene(closed)
Dec 17 08:55:19.548 [info] circuit_finish_handshake(): Finished building circuit hop:
Dec 17 08:55:19.549 [info] exit circ (length 3, exit delbene): adendorf(open) confector(open) delbene(closed)
Dec 17 08:55:21.748 [info] circuit_finish_handshake(): Finished building circuit hop:
Dec 17 08:55:21.749 [info] exit circ (length 3, exit delbene): adendorf(open) confector(open) delbene(open)
Dec 17 08:55:21.749 [info] circuit_send_next_onion_skin(): circuit built!
Dec 17 08:55:21.750 [info] exit circ (length 3): adendorf(open) confector(open) delbene(open)
Dec 17 08:55:21.746 [info] connection_ap_handshake_send_begin(): Address/port sent, ap socket 4, n_circ_id 45897
Dec 17 08:55:22.906 [info] connection_edge_process_end_not_open(): Address '[scrubbed]' refused due to 'resolve failed'. Considering retrying.
Dec 17 08:55:22.907 [info] client_dns_incr_failures(): Address [scrubbed] now has 3 resolve failures.
Dec 17 08:55:22.907 [notice] Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Dec 17 08:55:22.907 [info] connection_edge_process_end_not_open(): Giving up on retrying; conn can't be handled.
Dec 17 08:55:22.908 [info] connection_edge_process_end_not_open(): Edge got end (resolve failed) before we're connected. Marking for close.

-- END --