Re: 9.0-beta3 preferring ipv4 over ipv6 with ipv6_activate_all_interfaces=YES
On 14.10.2011 10:26, Thomas Steen Rasmussen wrote: On 14-10-2011 10:09, Hiroki Sato wrote: Thanks. There is no problem with the source address selection. I don't understand this comment. I would say that I do have problems with the source address selection - otherwise it would be preferring ipv6, right ? I have tried working around this problem by adding: ip6addrctl_policy=ipv6_prefer to /etc/rc.conf but I still get the same behaviour: [tykling@tykburk ~]$ telnet www.freebsd.org 80 /dev/null Trying 69.147.83.34... Connected to red.freebsd.org. Escape character is '^]'. Connection closed by foreign host. [tykling@tykburk ~]$ telnet -6 www.freebsd.org 80 /dev/null Trying 2001:4f8:fff6::22... Connected to red.freebsd.org. Escape character is '^]'. Connection closed by foreign host. [tykling@tykburk ~]$ Does anyone know a usable workaround which I can use to make my machine prefer ipv6 over ipv4, until this problem is fixed ? Thanks! Thomas Steen Rasmussen ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: 9.0-beta3 preferring ipv4 over ipv6 with ipv6_activate_all_interfaces=YES
Thomas Steen Rasmussen tho...@gibfest.dk wrote in 4e9aa874.5070...@gibfest.dk: th On 14.10.2011 10:26, Thomas Steen Rasmussen wrote: th On 14-10-2011 10:09, Hiroki Sato wrote: th Thanks. There is no problem with the source address selection. th th I don't understand this comment. I would say that I do th have problems with the source address selection - th otherwise it would be preferring ipv6, right ? I mean the address selection is working properly. Your problem is because the default ipv6_prefer policy prefers IPv4 addresses when the source IPv6 addr is in 2002::/16, the destination IPv6 address is not in the same prefix, and IPv4 addresses can be used for the both. It is not a bug of the selection mechanism. The ipv6_prefer policy is defined in RFC 3484 2.1 and this policy chooses a src IPv6 addr in 2002::/16 only if the dest addr is also in the same prefix. You can remove the special rule for 2002::/16 by putting the following lines as /etc/ip6addrctl.conf and reboot the system: ::1/128 50 0 ::/0 40 1 #2002::/16 30 2 ::/9620 3 :::0:0/9610 4 By installing the above, IPv6 address will be preferred even if it is in 2002::/16. I am still not sure why there is a difference between 8.X and 9.X on your box because the code is almost the same. I guess no policy was installed when you used an 8-stable system. -- Hiroki pgpdWwDjVjkUo.pgp Description: PGP signature
Re: 9.0-beta3 preferring ipv4 over ipv6 with ipv6_activate_all_interfaces=YES
On 16.10.2011 21:29, Hiroki Sato wrote: Thomas Steen Rasmussen tho...@gibfest.dk wrote in 4e9aa874.5070...@gibfest.dk: th On 14.10.2011 10:26, Thomas Steen Rasmussen wrote: th On 14-10-2011 10:09, Hiroki Sato wrote: th Thanks. There is no problem with the source address selection. th th I don't understand this comment. I would say that I do th have problems with the source address selection - th otherwise it would be preferring ipv6, right ? I mean the address selection is working properly. Your problem is because the default ipv6_prefer policy prefers IPv4 addresses when the source IPv6 addr is in 2002::/16, the destination IPv6 address is not in the same prefix, and IPv4 addresses can be used for the both. It is not a bug of the selection mechanism. The ipv6_prefer policy is defined in RFC 3484 2.1 and this policy chooses a src IPv6 addr in 2002::/16 only if the dest addr is also in the same prefix. You can remove the special rule for 2002::/16 by putting the following lines as /etc/ip6addrctl.conf and reboot the system: ::1/128 50 0 ::/0 40 1 #2002::/16 30 2 ::/9620 3 :::0:0/9610 4 By installing the above, IPv6 address will be preferred even if it is in 2002::/16. Hello, I understand. Thank you for your time, and sorry for the noise. Best regards Thomas Steen Rasmussen ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: 9.0-beta3 preferring ipv4 over ipv6 with ipv6_activate_all_interfaces=YES
On 14.10.2011 02:52, Hiroki Sato wrote: Can you please send me the results of the following commands: Please see the output below each command. I forgot to mention that the ipv6 uplink is a 6to4 tunnel, as you can see below from the 2002: prefix. % ifconfig [tykling@tykburk ~]$ ifconfig re0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=389bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC ether 00:24:8c:02:de:01 inet6 fe80::224:8cff:fe02:de01%re0 prefixlen 64 scopeid 0x5 inet6 2002:d947:452:1:224:8cff:fe02:de01 prefixlen 64 autoconf inet 10.10.1.115 netmask 0xff00 broadcast 10.10.1.255 nd6 options=23PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL media: Ethernet autoselect (100baseTX full-duplex) status: active fwe0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 02:1e:8c:b6:37:7b inet6 fe80::1e:8cff:feb6:377b%fwe0 prefixlen 64 scopeid 0x6 nd6 options=21PERFORMNUD,AUTO_LINKLOCAL ch 1 dma 0 fwip0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 lladdr 0.1e.8c.0.1.b6.37.7b.a.2.ff.fe.0.0.0.0 inet6 fe80::21e:8c00:1b6:377b%fwip0 prefixlen 64 scopeid 0x7 nd6 options=21PERFORMNUD,AUTO_LINKLOCAL em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=209bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC ether 00:1b:21:32:fe:80 inet6 fe80::21b:21ff:fe32:fe80%em0 prefixlen 64 scopeid 0xc nd6 options=21PERFORMNUD,AUTO_LINKLOCAL media: Ethernet autoselect status: no carrier lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 options=3RXCSUM,TXCSUM inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0xd inet 127.0.0.1 netmask 0xff00 nd6 options=21PERFORMNUD,AUTO_LINKLOCAL % grep ^ipv6 /etc/rc.conf [tykling@tykburk ~]$ grep ^ipv6 /etc/rc.conf ipv6_activate_all_interfaces=YES % grep ipv6= /etc/rc.conf [tykling@tykburk ~]$ grep ipv6= /etc/rc.conf ifconfig_re0_ipv6=accept_rtadv % ip6addrctl show [tykling@tykburk ~]$ ip6addrctl show Prefix Prec Label Use ::1/128 50 00 ::/0 40 1 2266 2002::/16 30 2 1164 ::/96 20 30 :::0.0.0.0/96 10 40 # /bin/sh -x /etc/rc.d/ip6addrctl start [tykling@tykburk ~]$ sudo /bin/sh -x /etc/rc.d/ip6addrctl start + . /etc/rc.subr + : 'rc.conf(5)' + : 47981 + export RC_PID + [ -z '' ] + _rc_subr_loaded=YES + SYSCTL=/sbin/sysctl + SYSCTL_N='/sbin/sysctl -n' + SYSCTL_W=/sbin/sysctl + ID=/usr/bin/id + IDCMD='if [ -x /usr/bin/id ]; then /usr/bin/id -un; fi' + PS='/bin/ps -ww' + /bin/ps -ww -p 47981 -o jid= + JID=' 0' + _rc_subr_loaded=: + . /etc/network.subr + name=ip6addrctl + set_rcvar + echo ip6addrctl_enable + rcvar=ip6addrctl_enable + start_cmd=ip6addrctl_start + stop_cmd=ip6addrctl_stop + extra_commands='status prefer_ipv6 prefer_ipv4' + status_cmd=ip6addrctl + prefer_ipv6_cmd=ip6addrctl_prefer_ipv6 + prefer_ipv4_cmd=ip6addrctl_prefer_ipv4 + config_file=/etc/ip6addrctl.conf + set_rcvar_obsolete ipv6_enable ipv6_activate_all_interfaces + local _var + _var=ipv6_enable + debug 'rcvar_obsolete: $ipv6_enable(old) - $ipv6_activate_all_interfaces(new) is defined' + rcvars_obsolete=' ipv6_enable' + eval 'ipv6_enable_newvar=ipv6_activate_all_interfaces' + ipv6_enable_newvar=ipv6_activate_all_interfaces + shift 2 + eval 'ipv6_enable_obsolete_msg=' + ipv6_enable_obsolete_msg='' + set_rcvar_obsolete ipv6_prefer ip6addrctl_policy + local _var + _var=ipv6_prefer + debug 'rcvar_obsolete: $ipv6_prefer(old) - $ip6addrctl_policy(new) is defined' + rcvars_obsolete='ipv6_enable ipv6_prefer' + eval 'ipv6_prefer_newvar=ip6addrctl_policy' + ipv6_prefer_newvar=ip6addrctl_policy + shift 2 + eval 'ipv6_prefer_obsolete_msg=' + ipv6_prefer_obsolete_msg='' + load_rc_config ip6addrctl + local _name _var _defval _v _msg _new + _name=ip6addrctl + [ -z ip6addrctl ] + false + [ -r /etc/defaults/rc.conf ] + debug 'Sourcing /etc/defaults/rc.conf' + . /etc/defaults/rc.conf + rc_debug=NO + rc_info=NO + rc_startmsgs=YES + rcshutdown_timeout=30 + early_late_divider=FILESYSTEMS + swapfile=NO + apm_enable=NO + apmd_enable=NO + apmd_flags='' + ddb_enable=NO + ddb_config=/etc/ddb.conf + devd_enable=YES + devd_flags='' + kldxref_enable=NO + kldxref_clobber=NO + kldxref_module_path='' + powerd_enable=NO + powerd_flags='' + tmpmfs=AUTO + tmpsize=20m + tmpmfs_flags=-S + varmfs=AUTO + varsize=32m + varmfs_flags=-S + populate_var=AUTO + cleanvar_enable=YES + local_startup=/usr/local/etc/rc.d + script_name_sep=' ' + rc_conf_files='/etc/rc.conf /etc/rc.conf.local' + zfs_enable=NO + gptboot_enable=YES + gbde_autoattach_all=NO + gbde_devices=NO + gbde_attach_attempts=3 + gbde_lockdir=/etc + geli_devices='' + geli_tries='' +
Re: 9.0-beta3 preferring ipv4 over ipv6 with ipv6_activate_all_interfaces=YES
Thomas Steen Rasmussen tho...@gibfest.dk wrote in 4e97cffc.5020...@gibfest.dk: th On 14.10.2011 02:52, Hiroki Sato wrote: th Can you please send me the results of the following commands: th th Please see the output below each command. I forgot to th mention that the ipv6 uplink is a 6to4 tunnel, as you can th see below from the 2002: prefix. Okay, what is the result of the following? % telnet www.freebsd.org 80 /dev/null -- Hiroki pgpooG9YS30qO.pgp Description: PGP signature
Re: 9.0-beta3 preferring ipv4 over ipv6 with ipv6_activate_all_interfaces=YES
On 14.10.2011 08:14, Hiroki Sato wrote: telnet www.freebsd.org 80 /dev/null [tykling@tykburk ~]$ telnet www.freebsd.org 80 /dev/null Trying 69.147.83.34... Connected to red.freebsd.org. Escape character is '^]'. Connection closed by foreign host. /Thomas ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: 9.0-beta3 preferring ipv4 over ipv6 with ipv6_activate_all_interfaces=YES
Thomas Steen Rasmussen tho...@gibfest.dk wrote in 4e97d9f3.4020...@gibfest.dk: th On 14.10.2011 08:14, Hiroki Sato wrote: th telnet www.freebsd.org 80 /dev/null th [tykling@tykburk ~]$ telnet www.freebsd.org 80 /dev/null th Trying 69.147.83.34... th Connected to red.freebsd.org. th Escape character is '^]'. th Connection closed by foreign host. Thanks. There is no problem with the source address selection. The last questions are: % route get -inet www.freebsd.org % route get -inet6 www.freebsd.org % netstat -nrf inet6 % ndp -r I guess the second one returns route: writing to routing socket: No such process on your box. Is it correct? -- Hiroki pgpR2d1AI6IIl.pgp Description: PGP signature
Re: 9.0-beta3 preferring ipv4 over ipv6 with ipv6_activate_all_interfaces=YES
On 14-10-2011 10:09, Hiroki Sato wrote: Thanks. There is no problem with the source address selection. The last questions are: % route get -inet www.freebsd.org [tykling@tykburk ~]$ route get -inet www.freebsd.org route to: red.freebsd.org destination: default mask: default gateway: fitfw interface: re0 flags: UP,GATEWAY,DONE,STATIC recvpipe sendpipe ssthresh rtt,msecmtuweightexpire 0 0 0 0 1500 1 0 % route get -inet6 www.freebsd.org [tykling@tykburk ~]$ route get -inet6 www.freebsd.org route to: red.freebsd.org destination: :: mask: default gateway: fe80::20d:f0ff:fe8d:4d23%re0 interface: re0 flags: UP,GATEWAY,DONE recvpipe sendpipe ssthresh rtt,msecmtuweightexpire 0 0 0 0 1500 1 0 % netstat -nrf inet6 [tykling@tykburk ~]$ netstat -nrf inet6 Routing tables Internet6: Destination Gateway Flags Netif Expire ::/96 ::1 UGRSlo0 = default fe80::20d:f0ff:fe8d:4d23%re0 UG re0 ::1 ::1 UH lo0 :::0.0.0.0/96 ::1 UGRSlo0 2002:d947:452:1::/64 link#5 U re0 2002:d947:452:1:224:8cff:fe02:de01 link#5 UHS lo0 fe80::/10 ::1 UGRSlo0 fe80::%re0/64 link#5 U re0 fe80::224:8cff:fe02:de01%re0 link#5 UHS lo0 fe80::%fwe0/64link#6 U fwe0 fe80::1e:8cff:feb6:377b%fwe0 link#6 UHS lo0 fe80::%fwip0/64 link#7 U fwip0 fe80::21e:8c00:1b6:377b%fwip0 link#7 UHS lo0 fe80::%em0/64 link#12 U em0 fe80::21b:21ff:fe32:fe80%em0 link#12 UHS lo0 fe80::%lo0/64 link#13 U lo0 ff01::%re0/32 fe80::224:8cff:fe02:de01%re0 U re0 ff01::%fwe0/32fe80::1e:8cff:feb6:377b%fwe0 U fwe0 ff01::%fwip0/32 fe80::21e:8c00:1b6:377b%fwip0 U fwip0 ff01::%em0/32 fe80::21b:21ff:fe32:fe80%em0 U em0 ff01::%lo0/32 ::1 U lo0 ff02::/16 ::1 UGRSlo0 ff02::%re0/32 fe80::224:8cff:fe02:de01%re0 U re0 ff02::%fwe0/32fe80::1e:8cff:feb6:377b%fwe0 U fwe0 ff02::%fwip0/32 fe80::21e:8c00:1b6:377b%fwip0 U fwip0 ff02::%em0/32 fe80::21b:21ff:fe32:fe80%em0 U em0 ff02::%lo0/32 ::1 U lo0 % ndp -r [tykling@tykburk ~]$ ndp -r fe80::20d:f0ff:fe8d:4d23%re0 if=re0, flags=, pref=medium, expire=28m15s I guess the second one returns route: writing to routing socket: No such process on your box. Is it correct? No, it returns the route to red.freebsd.org / 2001:4f8:fff6::22 (which is the default route of course). Extra info: [tykling@tykburk ~]$ telnet -6 www.freebsd.org 80 /dev/null Trying 2001:4f8:fff6::22... Connected to red.freebsd.org. Escape character is '^]'. Connection closed by foreign host. Thanks, Thomas ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: 9.0-beta3 preferring ipv4 over ipv6 with ipv6_activate_all_interfaces=YES
Hi, On Fri, 14 Oct 2011 17:09:11 +0900 (JST) Hiroki Sato h...@freebsd.org said: hrs Thomas Steen Rasmussen tho...@gibfest.dk wrote hrs in 4e97d9f3.4020...@gibfest.dk: th On 14.10.2011 08:14, Hiroki Sato wrote: hrs th telnet www.freebsd.org 80 /dev/null th [tykling@tykburk ~]$ telnet www.freebsd.org 80 /dev/null th Trying 69.147.83.34... th Connected to red.freebsd.org. th Escape character is '^]'. th Connection closed by foreign host. hrs Thanks. There is no problem with the source address selection. The hrs last questions are: hrs % route get -inet www.freebsd.org hrs % route get -inet6 www.freebsd.org hrs % netstat -nrf inet6 hrs % ndp -r hrs I guess the second one returns route: writing to routing socket: No hrs such process on your box. Is it correct? AFAIK, recent Firefox implements Happy Eyeballs. So, I suspect it doesn't obey RFC 3484, anymore. Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan u...@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: 9.0-beta3 preferring ipv4 over ipv6 with ipv6_activate_all_interfaces=YES
On 10/14/2011 10:38, Hajimu UMEMOTO wrote: AFAIK, recent Firefox implements Happy Eyeballs. So, I suspect it doesn't obey RFC 3484, anymore. My understanding is that they added it, then turned it off because it didn't work as expected. -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/ ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: 9.0-beta3 preferring ipv4 over ipv6 with ipv6_activate_all_interfaces=YES
On 14.10.2011 00:31, Thomas Steen Rasmussen wrote: Hello list, I just upgraded my home workstation to 9.0-beta3 amd64. It seems like my web browsers are preferring ipv4 over ipv6 after the upgrade, My laptop is also running 9.0-beta3 amd64 and I observe the same behaviour there, so this doesn't seem like an issue with a specific machine. On IRC I was advised to include h...@freebsd.org as cc in this thread. Best regards Thomas Steen Rasmussen ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: 9.0-beta3 preferring ipv4 over ipv6 with ipv6_activate_all_interfaces=YES
Thomas Steen Rasmussen tho...@gibfest.dk wrote in 4e9766c0.1020...@gibfest.dk: th Hello list, th th I just upgraded my home workstation to 9.0-beta3 amd64. It seems th like my web browsers are preferring ipv4 over ipv6 after the upgrade, th I tested Firefox and Opera. After digging into rc.conf(5) I found this bit: th th If ``AUTO'' is specified, it attempts to read a file th /etc/ip6addrctl.conf first. If this file is found, th ip6addrctl(8) reads and installs it. If not found, a policy th is automatically set according to th ipv6_activate_all_interfaces variable; if the variable is set th to ``YES'' the IPv6-preferred one is used. Otherwise th IPv4-preferred. th th The default value of ip6addrctl_enable and ip6addrctl_policy th are ``YES'' and ``AUTO'', respectively. th th I already have ipv6_activate_all_interfaces=YES in /etc/rc.conf th so ip6addrctl_policy _should_ be ip6addrctl_policy if I am reading th this correctly. But my browsers still prefer ipv4. Is this a bug, or th do the manpage need updating ? Can you please send me the results of the following commands: % ifconfig % grep ^ipv6 /etc/rc.conf % grep ipv6= /etc/rc.conf % ip6addrctl show # /bin/sh -x /etc/rc.d/ip6addrctl start -- Hiroki pgp9Ararm4uMe.pgp Description: PGP signature