[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #31542 [Core Tor/Tor]: Cannot connect to IPv6 addresses using Tor SOCKS
#31542: Cannot connect to IPv6 addresses using Tor SOCKS
--------------------------+------------------------------
Reporter: sega01 | Owner: (none)
Type: defect | Status: new
Priority: Medium | Component: Core Tor/Tor
Version: Tor: 0.4.1.5 | Severity: Normal
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
--------------------------+------------------------------
Here is my Tor configuration:
{{{
SocksPort 127.0.0.1:9050 IPv6Traffic
SocksPort [::1]:9050 IPv6Traffic
DataDirectory /run/tor_client
ControlPort unix:/run/tor_client/control
ClientUseIPv6 1
}}}
I'm using 0.4.1.5 on Debian 9.
IPv4 direct addresses are fine:
{{{
$ curl -s -x socks5h://127.0.0.1:9050 -v 157.230.170.226
* Rebuilt URL to: 157.230.170.226/
* Trying 127.0.0.1...
* TCP_NODELAY set
* SOCKS5 communication to 157.230.170.226:80
* SOCKS5 request granted.
* Connected to (nil) (127.0.0.1) port 9050 (#0)
> GET / HTTP/1.1
> Host: 157.230.170.226
> User-Agent: curl/7.52.1
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Server: nginx
< Date: Tue, 27 Aug 2019 20:54:51 GMT
< Content-Type: text/html
< Content-Length: 178
< Connection: keep-alive
< Location: https://157.230.170.226/
<
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
* Curl_http_done: called premature == 0
* Connection #0 to host 157.230.170.226 left intact
$ curl -s -x socks5h://[::1]:9050 -v 157.230.170.226
* Rebuilt URL to: 157.230.170.226/
* Trying ::1...
* TCP_NODELAY set
* SOCKS5 communication to 157.230.170.226:80
* SOCKS5 request granted.
* Connected to (nil) (::1) port 9050 (#0)
> GET / HTTP/1.1
> Host: 157.230.170.226
> User-Agent: curl/7.52.1
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Server: nginx
< Date: Tue, 27 Aug 2019 20:55:03 GMT
< Content-Type: text/html
< Content-Length: 178
< Connection: keep-alive
< Location: https://157.230.170.226/
<
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
* Curl_http_done: called premature == 0
* Connection #0 to host 157.230.170.226 left intact
}}}
IPv6 direct addresses do not work:
{{{
$ curl -s -x socks5h://[::1]:9050 -v [2604:a880:cad:d0::684e:f001]
* Rebuilt URL to: [2604:a880:cad:d0::684e:f001]/
* Trying ::1...
* TCP_NODELAY set
* SOCKS5 communication to 2604:a880:cad:d0::684e:f001:80
* Can't complete SOCKS5 connection to
0000:0000:0000:0000:0000:0000:0000:0000:0. (1)
* Closing connection 0
$ curl -s -x socks5h://127.0.0.1:9050 -v [2604:a880:cad:d0::684e:f001]
* Rebuilt URL to: [2604:a880:cad:d0::684e:f001]/
* Trying 127.0.0.1...
* TCP_NODELAY set
* SOCKS5 communication to 2604:a880:cad:d0::684e:f001:80
* Can't complete SOCKS5 connection to 0.0.0.0:0. (1)
* Closing connection 0
}}}
What should I test from here?
Thanks!
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/31542>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs