ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IPv6 forward proxy


  • To: nginx-ru <nginx-ru@xxxxxxxxx>
  • Subject: Re: IPv6 forward proxy
  • From: Alexander Moskalenko <alexander.moskalenko@xxxxxxxxx>
  • Date: Thu, 28 Feb 2013 12:13:51 +0200
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=s6Is/OX7g9RZpt34JcfVZyGRmZj8sBGDoCcxyiYG7zs=; b=AnEV4fBaaGFneZyTGL33LYxNBav/CnVbNQfJNV0KkD0GU/Bf4NlcQd8gjG2Er8JMDk FFQEkyz2jXWXDNTz2h5SDsT6A93UYpwVltl6rns05tQ2xgtDEwxeAZUJIgTg/aNdIt/I fFxrSLm5YhzXlvU4AuUo/FE6WkA4gflprnYm4a8hXi4eNj7Y21ZoesfcDpIFGHD+RFgL 2bj8Bg+607e1ignrvolJOYhNfQh/sKAUggNJm1xyA2W7ICtBjIVlzWiPwp2BeL+F0Q2b VdHljwv0D/02FEKhbFKtb9+oIyX77MR2KuQN18GN9GqF0gX4FN5dd41bfg1RsXaGCSIK d9qg==
  • In-reply-to: <CACVfVFt_ubBwHcHXTNmALeA=UvrrAaUac0OGjbPK=6SDhAvnHg@mail.gmail.com>
  • References: <CACVfVFs+0pKZ1Gv-m6d=-B9P9WKY4p5v3cOrY_qn3xaXdoYCLg@mail.gmail.com> <20130228094509.GA60167@lo0.su> <CACVfVFt_ubBwHcHXTNmALeA=UvrrAaUac0OGjbPK=6SDhAvnHg@mail.gmail.com>

Пропустил IPv6 запросы через Tinyproxy - работает.


2013/2/28 Alexander Moskalenko <alexander.moskalenko@xxxxxxxxx>:
> А обойти как-то можно?
>
> 2013/2/28 Ruslan Ermilov <ru@xxxxxxxxx>:
>> On Thu, Feb 28, 2013 at 11:33:07AM +0200, Alexander Moskalenko wrote:
>>> Пытаюсь сделать forward proxy для IPv4 & IPv6.
>>>
>>> Для 4 все работает отлично, для 6 пытается ходить по 4.
>>> Если указать хост у которого только 6 адрес - не резолвит.
>>>
>>> В логе следующее:
>>> 2013/02/28 12:24:09 [debug] 5397#0: resolver qs:ipv6.l.google.com
>>> 2013/02/28 12:24:09 [error] 5397#0: *15 ipv6.l.google.com could not be
>>> resolved (3: Host not found), client: 2607:f878:3:314::42b3:e975,
>>> server: , request: "GET http://ipv6.google.com/ HTTP/1.0", host:
>>> "ipv6.google.com"
>>>
>>> 2013/02/28 12:23:09 [debug] 5397#0: resolve: "www.google.com"
>>> 2013/02/28 12:23:09 [debug] 5397#0: resolve cached
>>> 2013/02/28 12:23:09 [debug] 5397#0: malloc: 08D883E8:20
>>> 2013/02/28 12:23:09 [debug] 5397#0: *13 name was resolved to 74.125.239.17
>>> 2013/02/28 12:23:09 [debug] 5397#0: *13 name was resolved to 74.125.239.16
>>> 2013/02/28 12:23:09 [debug] 5397#0: *13 name was resolved to 74.125.239.18
>>> 2013/02/28 12:23:09 [debug] 5397#0: *13 name was resolved to 74.125.239.19
>>> 2013/02/28 12:23:09 [debug] 5397#0: *13 name was resolved to 74.125.239.20
>>> 2013/02/28 12:23:09 [debug] 5397#0: resolve name done: 0
>>> 2013/02/28 12:23:09 [debug] 5397#0: resolver expire
>>> 2013/02/28 12:23:09 [debug] 5397#0: *13 get rr peer, try: 5
>>> 2013/02/28 12:23:09 [debug] 5397#0: *13 get rr peer, current: 0 -4
>>> 2013/02/28 12:23:09 [debug] 5397#0: *13 socket 11
>>> 2013/02/28 12:23:09 [debug] 5397#0: *13 epoll add connection: fd:11 
>>> ev:80000005
>>> 2013/02/28 12:23:09 [debug] 5397#0: *13 connect to 74.125.239.17:80, fd:11 
>>> #14
>>> 2013/02/28 12:23:09 [debug] 5397#0: *13 http upstream connect: -2
>>>
>>> В обоих случаях коннект идет на сервер:
>>>
>>> server {
>>>         listen [::]:8080 ipv6only=on default bind;
>>>         resolver [2001:4860:4860::8888];
>>>
>>>         location / {
>>>                 proxy_pass $scheme://$http_host$uri$is_args$args;
>>>                 proxy_bind $server_addr;
>>>         }
>>> }
>>>
>>>
>>> Это баг или фича?
>>
>> В настоящий момент резолвер в nginx не умеет резолвить IPv6-адреса.
>>
>> _______________________________________________
>> nginx-ru mailing list
>> nginx-ru@xxxxxxxxx
>> http://mailman.nginx.org/mailman/listinfo/nginx-ru

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.