Date: Fri, 17 Jul 2015 14:10:08 -0700 (PDT) From: jasonmader@gmail.com To: ml-freebsd-questions@googlegroups.com Subject: IPv6 bind() errno 49 in jail Message-ID: <1f160fed-4d9f-49c7-a27c-d5d0a9b37e93@googlegroups.com>
next in thread | raw e-mail | index | archive | help
In FreeBSD 10.1 I=CA=BCve encountered an error trying to use IPv6 in a jail= .=20 When nginx starts with, listen [2620:10e:6024:f004::141]:443 ssl; and jail.conf is configured, ip6.addr =3D 2620:10e:6024:f004::141; It=E2=80=99s the following error, [emerg] 2124#0: bind() to [2620:10e:6024:f004::141]:443 failed (49: Can't= =20 assign requested address) Output from truss shows, socket(PF_INET6,SOCK_STREAM,0) =3D 8 (0x8) setsockopt(0x8,0xffff,0x4,0x7fffffffe854,0x4,0x0) =3D 0 (0x0) setsockopt(0x8,0x29,0x1b,0x7fffffffe848,0x4,0x0) =3D 0 (0x0) ioctl(8,FIONBIO,0xffffe7fc) =3D 0 (0x0) bind(8,{ AF_INET6 [40be:bd00:800:0:9fe8:ffff:100:0]:36096 },28) ERR#49=20 'Can't assign requested address' write(3,"2015/07/17 16:49:24 [emerg] 4760"...,121) =3D 121 (0x79) nginx: [emerg] bind() to [2620:10e:6024:f004::141]:443 failed (49: Can't=20 assign requested address) So it=E2=80=99s pretty straight forward that bind() will fail. But where is= the=20 address [40be:bd00:800:0:9fe8:ffff:100:0]:36096 coming from?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1f160fed-4d9f-49c7-a27c-d5d0a9b37e93>