You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Kingsley Foreman (JIRA)" <ji...@apache.org> on 2012/07/23 08:08:34 UTC

[jira] [Created] (TS-1378) IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind

Kingsley Foreman created TS-1378:
------------------------------------

             Summary: IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind
                 Key: TS-1378
                 URL: https://issues.apache.org/jira/browse/TS-1378
             Project: Traffic Server
          Issue Type: Bug
          Components: HTTP, Network
    Affects Versions: 3.2.0
         Environment: ubuntu 10.04
            Reporter: Kingsley Foreman


IPv6 addresses always report as an error on proxy.local.incoming_ip_to_bind

an example
LOCAL proxy.local.incoming_ip_to_bind STRING 127.0.0.1 ::1
WARNING: 'proxy.local.incoming_ip_to_bind' has an value '::1' that is not recognized as an IP address, ignored.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TS-1378) IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind

Posted by "Kingsley Foreman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13421046#comment-13421046 ] 

Kingsley Foreman commented on TS-1378:
--------------------------------------

It is there


lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host


I also tried on the other interface with another ipv6 address and that failed also.
                
> IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind
> ----------------------------------------------------------------
>
>                 Key: TS-1378
>                 URL: https://issues.apache.org/jira/browse/TS-1378
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP, Network
>    Affects Versions: 3.2.0
>         Environment: ubuntu 10.04
>            Reporter: Kingsley Foreman
>            Assignee: Alan M. Carroll
>
> IPv6 addresses always report as an error on proxy.local.incoming_ip_to_bind
> an example
> LOCAL proxy.local.incoming_ip_to_bind STRING 127.0.0.1 ::1
> WARNING: 'proxy.local.incoming_ip_to_bind' has an value '::1' that is not recognized as an IP address, ignored.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TS-1378) IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind

Posted by "Kingsley Foreman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13421131#comment-13421131 ] 

Kingsley Foreman commented on TS-1378:
--------------------------------------

zret=0
IPv6 valid

                
> IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind
> ----------------------------------------------------------------
>
>                 Key: TS-1378
>                 URL: https://issues.apache.org/jira/browse/TS-1378
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP, Network
>    Affects Versions: 3.2.0
>         Environment: ubuntu 10.04
>            Reporter: Kingsley Foreman
>            Assignee: Alan M. Carroll
>
> IPv6 addresses always report as an error on proxy.local.incoming_ip_to_bind
> an example
> LOCAL proxy.local.incoming_ip_to_bind STRING 127.0.0.1 ::1
> WARNING: 'proxy.local.incoming_ip_to_bind' has an value '::1' that is not recognized as an IP address, ignored.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TS-1378) IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind

Posted by "Alan M. Carroll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13421165#comment-13421165 ] 

Alan M. Carroll commented on TS-1378:
-------------------------------------

Are you sure you are running 3.2? That code is cloned directly out of the ATS logic that parses the address for incoming_ip_to_bind and this works fine on multiple of my test boxes.

One last thing to try, add to one of your IPv6 server_ports port descriptors the string ":ip-in=[::1]" and see what error message you get. E.g., it should be like "8080:ipv6:ip-in=[::1]".
                
> IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind
> ----------------------------------------------------------------
>
>                 Key: TS-1378
>                 URL: https://issues.apache.org/jira/browse/TS-1378
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP, Network
>    Affects Versions: 3.2.0
>         Environment: ubuntu 10.04
>            Reporter: Kingsley Foreman
>            Assignee: Alan M. Carroll
>
> IPv6 addresses always report as an error on proxy.local.incoming_ip_to_bind
> an example
> LOCAL proxy.local.incoming_ip_to_bind STRING 127.0.0.1 ::1
> WARNING: 'proxy.local.incoming_ip_to_bind' has an value '::1' that is not recognized as an IP address, ignored.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TS-1378) IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind

Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom updated TS-1378:
------------------------------

    Fix Version/s: 3.3.2
    
> IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind
> ----------------------------------------------------------------
>
>                 Key: TS-1378
>                 URL: https://issues.apache.org/jira/browse/TS-1378
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP, Network
>    Affects Versions: 3.2.0
>         Environment: ubuntu 10.04
>            Reporter: Kingsley Foreman
>            Assignee: Alan M. Carroll
>             Fix For: 3.3.2
>
>
> IPv6 addresses always report as an error on proxy.local.incoming_ip_to_bind
> an example
> LOCAL proxy.local.incoming_ip_to_bind STRING 127.0.0.1 ::1
> WARNING: 'proxy.local.incoming_ip_to_bind' has an value '::1' that is not recognized as an IP address, ignored.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TS-1378) IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind

Posted by "Alan M. Carroll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13421733#comment-13421733 ] 

Alan M. Carroll commented on TS-1378:
-------------------------------------

I loaded up Ubuntu 10.04 on a VM and tried this. It turns out the test program does *not* work, unless you omit the AI_ADDRCONFIG line, returning a zret of -9. It seems on Ubuntu the default configured IPv6 addresses do not count as far as the system having any IPv6 addresses. On my test VM if I explicitly added an IPv6 address then both the test program and ATS worked. Trying adding the equivalent of your IPv4 address, such as

{code}
sudo ip addr add fc01:192:168:1::17/64 dev eth0
{code}

See if that fixes the parse problem with ATS.
                
> IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind
> ----------------------------------------------------------------
>
>                 Key: TS-1378
>                 URL: https://issues.apache.org/jira/browse/TS-1378
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP, Network
>    Affects Versions: 3.2.0
>         Environment: ubuntu 10.04
>            Reporter: Kingsley Foreman
>            Assignee: Alan M. Carroll
>
> IPv6 addresses always report as an error on proxy.local.incoming_ip_to_bind
> an example
> LOCAL proxy.local.incoming_ip_to_bind STRING 127.0.0.1 ::1
> WARNING: 'proxy.local.incoming_ip_to_bind' has an value '::1' that is not recognized as an IP address, ignored.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TS-1378) IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind

Posted by "Kingsley Foreman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13421190#comment-13421190 ] 

Kingsley Foreman commented on TS-1378:
--------------------------------------

that worked :)


 netstat -a -n |grep LISTEN |grep 8080
tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN
tcp6       0      0 ::1:8080                :::*                    LISTEN




                
> IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind
> ----------------------------------------------------------------
>
>                 Key: TS-1378
>                 URL: https://issues.apache.org/jira/browse/TS-1378
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP, Network
>    Affects Versions: 3.2.0
>         Environment: ubuntu 10.04
>            Reporter: Kingsley Foreman
>            Assignee: Alan M. Carroll
>
> IPv6 addresses always report as an error on proxy.local.incoming_ip_to_bind
> an example
> LOCAL proxy.local.incoming_ip_to_bind STRING 127.0.0.1 ::1
> WARNING: 'proxy.local.incoming_ip_to_bind' has an value '::1' that is not recognized as an IP address, ignored.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TS-1378) IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind

Posted by "Alan M. Carroll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13421127#comment-13421127 ] 

Alan M. Carroll commented on TS-1378:
-------------------------------------

Can you compile this, run it, and let me know the output?

{code:title=getaddrinfo.c}
# include <memory.h>
# include <sys/types.h>
# include <sys/socket.h>
# include <netdb.h>
# include <stdio.h>

int main() {
  char const* v6 = "::1";
  struct addrinfo ai_hints;
  struct addrinfo* ai_result;
  struct addrinfo* spot;
  int zret;
  memset(&ai_hints, 0, sizeof(ai_hints));
  ai_hints.ai_family = AF_UNSPEC;
  ai_hints.ai_flags = AI_ADDRCONFIG;
  zret = getaddrinfo(v6, 0, &ai_hints, &ai_result);
  printf("zret=%d\n", zret);
  for (spot = ai_result ; spot ; spot = spot->ai_next ) {
    struct sockaddr const* ip = spot->ai_addr;
    if (ip->sa_family == AF_INET6) {
      printf("IPv6 valid\n");
      break;
    }
  }
  return 0;
}
{code}
                
> IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind
> ----------------------------------------------------------------
>
>                 Key: TS-1378
>                 URL: https://issues.apache.org/jira/browse/TS-1378
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP, Network
>    Affects Versions: 3.2.0
>         Environment: ubuntu 10.04
>            Reporter: Kingsley Foreman
>            Assignee: Alan M. Carroll
>
> IPv6 addresses always report as an error on proxy.local.incoming_ip_to_bind
> an example
> LOCAL proxy.local.incoming_ip_to_bind STRING 127.0.0.1 ::1
> WARNING: 'proxy.local.incoming_ip_to_bind' has an value '::1' that is not recognized as an IP address, ignored.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TS-1378) IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind

Posted by "Alan M. Carroll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13420976#comment-13420976 ] 

Alan M. Carroll commented on TS-1378:
-------------------------------------

I can't replicate this. My best guess at this point is it might be caused by having no IPv6 addresses assigned to any interface. In that case, however, the bind isn't going to work anyway.
                
> IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind
> ----------------------------------------------------------------
>
>                 Key: TS-1378
>                 URL: https://issues.apache.org/jira/browse/TS-1378
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP, Network
>    Affects Versions: 3.2.0
>         Environment: ubuntu 10.04
>            Reporter: Kingsley Foreman
>            Assignee: Alan M. Carroll
>
> IPv6 addresses always report as an error on proxy.local.incoming_ip_to_bind
> an example
> LOCAL proxy.local.incoming_ip_to_bind STRING 127.0.0.1 ::1
> WARNING: 'proxy.local.incoming_ip_to_bind' has an value '::1' that is not recognized as an IP address, ignored.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TS-1378) IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind

Posted by "Alan M. Carroll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13421459#comment-13421459 ] 

Alan M. Carroll commented on TS-1378:
-------------------------------------

I am absolutely stumped on this. I can't see anything in the code that would lead to this kind of result. I will have to get an Ubuntu VM up and run the debugger there.
                
> IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind
> ----------------------------------------------------------------
>
>                 Key: TS-1378
>                 URL: https://issues.apache.org/jira/browse/TS-1378
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP, Network
>    Affects Versions: 3.2.0
>         Environment: ubuntu 10.04
>            Reporter: Kingsley Foreman
>            Assignee: Alan M. Carroll
>
> IPv6 addresses always report as an error on proxy.local.incoming_ip_to_bind
> an example
> LOCAL proxy.local.incoming_ip_to_bind STRING 127.0.0.1 ::1
> WARNING: 'proxy.local.incoming_ip_to_bind' has an value '::1' that is not recognized as an IP address, ignored.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (TS-1378) IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind

Posted by "Alan M. Carroll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan M. Carroll reassigned TS-1378:
-----------------------------------

    Assignee: Alan M. Carroll
    
> IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind
> ----------------------------------------------------------------
>
>                 Key: TS-1378
>                 URL: https://issues.apache.org/jira/browse/TS-1378
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP, Network
>    Affects Versions: 3.2.0
>         Environment: ubuntu 10.04
>            Reporter: Kingsley Foreman
>            Assignee: Alan M. Carroll
>
> IPv6 addresses always report as an error on proxy.local.incoming_ip_to_bind
> an example
> LOCAL proxy.local.incoming_ip_to_bind STRING 127.0.0.1 ::1
> WARNING: 'proxy.local.incoming_ip_to_bind' has an value '::1' that is not recognized as an IP address, ignored.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (TS-1378) IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind

Posted by "Alan M. Carroll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13421127#comment-13421127 ] 

Alan M. Carroll edited comment on TS-1378 at 7/25/12 12:56 AM:
---------------------------------------------------------------

Can you compile this, run it, and let me know the output?

{code:title=getaddrinfo.c}
# include <memory.h>
# include <sys/types.h>
# include <sys/socket.h>
# include <netdb.h>
# include <stdio.h>

int main() {
  char const* v6 = "::1";
  struct addrinfo ai_hints;
  struct addrinfo* ai_result;
  struct addrinfo* spot;
  int zret;
  memset(&ai_hints, 0, sizeof(ai_hints));
  ai_hints.ai_family = AF_UNSPEC;
  ai_hints.ai_flags = AI_ADDRCONFIG;
  zret = getaddrinfo(v6, 0, &ai_hints, &ai_result);
  printf("zret=%d\n", zret);
  if (0 == zret) {
    for (spot = ai_result ; spot ; spot = spot->ai_next ) {
      struct sockaddr const* ip = spot->ai_addr;
      if (ip->sa_family == AF_INET6) {
	printf("IPv6 valid\n");
	break;
      }
    }
  }
  return 0;
}
{code}
                
      was (Author: amc):
    Can you compile this, run it, and let me know the output?

{code:title=getaddrinfo.c}
# include <memory.h>
# include <sys/types.h>
# include <sys/socket.h>
# include <netdb.h>
# include <stdio.h>

int main() {
  char const* v6 = "::1";
  struct addrinfo ai_hints;
  struct addrinfo* ai_result;
  struct addrinfo* spot;
  int zret;
  memset(&ai_hints, 0, sizeof(ai_hints));
  ai_hints.ai_family = AF_UNSPEC;
  ai_hints.ai_flags = AI_ADDRCONFIG;
  zret = getaddrinfo(v6, 0, &ai_hints, &ai_result);
  printf("zret=%d\n", zret);
  for (spot = ai_result ; spot ; spot = spot->ai_next ) {
    struct sockaddr const* ip = spot->ai_addr;
    if (ip->sa_family == AF_INET6) {
      printf("IPv6 valid\n");
      break;
    }
  }
  return 0;
}
{code}
                  
> IPV6 Addresses not recognized by proxy.local.incoming_ip_to_bind
> ----------------------------------------------------------------
>
>                 Key: TS-1378
>                 URL: https://issues.apache.org/jira/browse/TS-1378
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP, Network
>    Affects Versions: 3.2.0
>         Environment: ubuntu 10.04
>            Reporter: Kingsley Foreman
>            Assignee: Alan M. Carroll
>
> IPv6 addresses always report as an error on proxy.local.incoming_ip_to_bind
> an example
> LOCAL proxy.local.incoming_ip_to_bind STRING 127.0.0.1 ::1
> WARNING: 'proxy.local.incoming_ip_to_bind' has an value '::1' that is not recognized as an IP address, ignored.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira