Date: Thu, 05 Dec 2013 19:30:34 +0000 From: Jase Thew <jase@FreeBSD.org> To: freebsd-stable@FreeBSD.org Subject: stable/9 -> stable/10 upgrade: No longer able to use loopback alias addresses as source addresses Message-ID: <52A0D45A.7040309@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ig5x7OiNDSbJb3pKAjjjJQ5or6hboAN0d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi folks, I've recently upgraded one of my test machines from stable/9 to stable/10 and have found that I'm no longer able to use loopback alias addresses as source addresses. When attempting to do so, I'm receiving "Can't assign requested address" errors. I've also confirmed this in an up-to-date HEAD VM. =E2=94=94[~]> ifconfig lo0 lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=3D600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6> inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 inet 127.0.0.1 netmask 0xff000000 inet 127.0.1.1 netmask 0xffffffff inet 127.0.1.2 netmask 0xffffffff inet 127.0.1.3 netmask 0xffffffff inet 127.0.1.4 netmask 0xffffffff inet 127.0.1.5 netmask 0xffffffff inet 127.0.1.6 netmask 0xffffffff inet 127.0.1.7 netmask 0xffffffff inet 127.0.1.8 netmask 0xffffffff nd6 options=3D23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> =E2=94=94[~]> netstat -rn -f inet | grep lo0 88.198.54.184 link#1 UHS 0 0 lo0 127.0.0.1 link#2 UH 0 172 lo0 127.0.1.1 link#2 UH 0 0 lo0 127.0.1.2 link#2 UH 0 0 lo0 127.0.1.3 link#2 UH 0 0 lo0 127.0.1.4 link#2 UH 0 0 lo0 127.0.1.5 link#2 UH 0 0 lo0 127.0.1.6 link#2 UH 0 0 lo0 127.0.1.7 link#2 UH 0 0 lo0 127.0.1.8 link#2 UH 0 0 lo0 =46rom a ktrace of telnet -4 -s 127.0.1.2 google.co.uk 80 : 2127 telnet CALL socket(PF_INET,SOCK_STREAM,IPPROTO_TCP) 2127 telnet RET socket 3 2127 telnet CALL getuid 2127 telnet RET getuid 0 2127 telnet CALL setuid(0) 2127 telnet RET setuid 0 2127 telnet CALL setsockopt(0x3,0,0x3,0x61e790,0x4) 2127 telnet RET setsockopt 0 2127 telnet CALL bind(0x3,0x8034160f0,0x10) 2127 telnet STRU struct sockaddr { AF_INET, 127.0.1.2:0 } 2127 telnet RET bind 0 2127 telnet CALL connect(0x3,0x8034161f0,0x10) 2127 telnet STRU struct sockaddr { AF_INET, 173.194.112.88:80 } 2127 telnet RET connect -1 errno 49 Can't assign requested address With pretty much an identical lo0 setup on stable/8 and stable/9, this works correctly. Is this change of behaviour by design (and if so, how is one able to use loopback jails and have them be able to contact the outside world short of using some kind of proxy), or is this a bug? Regards, --=20 Jase Thew jase@FreeBSD.org FreeBSD Ports Committer --ig5x7OiNDSbJb3pKAjjjJQ5or6hboAN0d Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJSoNRgXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGNzY3ODIxQkE1MTQ4MjNFQ0RGNUM3QkRE NEU2NUM4QkZGMUMzODI5AAoJENTmXIv/HDgp66YP/300GyK7hmfqKSNTUvYDiKBe eNRP9lI/MN/jflFRLhTrdLjGWdBD9BKt9W+aeQZJkrifvl055JBr5BfmpUm88JJy sGoqYeJQhJ3rokV3QZFMHbmnbqGQZIGgq/+J8nXHLi9oDMJCGnIeEZygebeZYoXu 965VMelLFQe0UeUmDjjUpQka7O3nj5OpDIqy79qfq+bR7liVaJyKHz5OjHWHlAjB NSFcHuYphGDTAonKl/N5zJaoQ8GKAP0JOhoMgYtnOK9vzfSqcbKM0f6vFYhifj3w PgBcskqW21Tu8A5TqrbEwjBzEdwfzJvBpHGRMYznMn/U9iD3R/tx7O3SctWAkh3R BcWLk4ouxEuGxnO1YszkFJ96Vo+x+7BWeOO2dn9nrHXAQ/ARLtrH63iBcwvQCs20 qi6lUeHSvmIamHHJmFKCtjvNg+4MBH3cnMYmZFpX0iyrPQRbq+XYhWPP0R9o9dM0 wgYMbV3WZ3IBUvR7ISF0Ftx1AtuMkOkdY18C7Dxm0YACJFnefBQ7SgzMJxa+iGYg qUbk5fvaBjOub1/XuJG1xz3AVcrCVUM09d3qbUaz50RBVvVRpnfG1t98ayZJoDxc eiUyw5P7PSSsCEHhGecRIRNp8WgttmBqSRF0gzHUdqFgU0gGkKyNPaRCEcr283zX ZoWKSUzfp2VStQMxSovm =8EAW -----END PGP SIGNATURE----- --ig5x7OiNDSbJb3pKAjjjJQ5or6hboAN0d--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52A0D45A.7040309>