Actions
Bug #2833
closedAdd a knob to prefer IPv4 over IPv6 for rare situations that require it
Start date:
02/21/2013
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.1-IPv6
Affected Architecture:
Description
We should have a knob somewhere to let users prefer IPv4 over IPv6 in case they have broken IPv6 routing and need to get out (e.g. to fetch packages, firmware updates, etc.)
We can use ip6addrctl for this, and borrow code from its rc.d script in FreeBSD.
[2.1-BETA1][root@pfsense-amd64.localdomain]/root(20): telnet www.pfsense.org 80 Trying 2605:8000:d:1::167... Connected to www.pfsense.org. Escape character is '^]'. ^] telnet> close Connection closed. [2.1-BETA1][root@pfsense-amd64.localdomain]/root(21): env ip6addrctl_enable="yes" ip6addrctl_policy="prefer_ipv4" /etc/rc.d/ip6addrctl start [2.1-BETA1][root@pfsense-amd64.localdomain]/root(22): telnet www.pfsense.org 80 Trying 69.64.6.21... Connected to www.pfsense.org. Escape character is '^]'. ^] telnet> close Connection closed.
Related FreeBSD Code: https://github.com/freebsd/freebsd/blob/master/etc/rc.d/ip6addrctl#L27
Actions