IPv6 not disabled in mpd.conf w/ IPv6 GUI option set to 'disabled'



  • It seems like my ISP (Fairpoint) added IPv6 support last night at 1AM.  This broke my connectivity, even though IPv6 was proactively disabled in my PPPoE config.

    I commented out:

    set bundle enable ipv6cp

    in my mpd_wan.conf file and ran mpd5 by hand, and the link came back up just fine.  Attaching logs snippets for now; when I get a few spare cycles I can look at a patch if somebody else doesn't first.

    This problem appears to have been initially reported here.
    https://forum.pfsense.org/index.php?topic=109008.0

    
    Mar 8 11:05:04	ppp		process 81859 terminated
    Mar 8 11:05:04	ppp		[wan_link0] Link: Shutdown
    Mar 8 11:05:04	ppp		[wan] Bundle: Shutdown
    Mar 8 11:05:03	ppp		[wan_link0] LCP: LayerDown
    Mar 8 11:05:03	ppp		[wan_link0] LCP: SendTerminateReq #3
    Mar 8 11:05:03	ppp		[wan] IPV6CP: state change Closed --> Initial
    Mar 8 11:05:03	ppp		[wan] IPV6CP: Down event
    Mar 8 11:05:03	ppp		[wan] IPCP: state change Closed --> Initial
    Mar 8 11:05:03	ppp		[wan] IPCP: Down event
    Mar 8 11:05:03	ppp		[wan] IPV6CP: Close event
    Mar 8 11:05:03	ppp		[wan] IPCP: Close event
    Mar 8 11:05:03	ppp		[wan] Bundle: Status update: up 0 links, total bandwidth 9600 bps
    Mar 8 11:05:02	ppp		[wan_link0] Link: Leave bundle "wan"
    Mar 8 11:05:02	ppp		[wan_link0] LCP: state change Opened --> Closing
    Mar 8 11:05:02	ppp		[wan_link0] LCP: Close event
    Mar 8 11:05:02	ppp		[wan_link0] Link: CLOSE event
    Mar 8 11:05:02	ppp		[wan] Bundle: closing link "wan_link0"...
    Mar 8 11:05:02	ppp		[wan] Bundle: No NCPs left. Closing links...
    Mar 8 11:05:02	ppp		[wan] IPCP: LayerFinish
    Mar 8 11:05:02	ppp		[wan] IPCP: state change Closing --> Closed
    Mar 8 11:05:02	ppp		[wan] IPCP: rec'd Terminate Ack #5 (Closing)
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan] IPCP: SendTerminateReq #5
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:02	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:05:01	ppp		[wan] IPV6CP: state change Stopped --> Closed
    Mar 8 11:05:01	ppp		[wan] IPV6CP: Close event
    Mar 8 11:05:01	ppp		[wan] IFACE: Rename interface pppoe1 to pppoe1
    Mar 8 11:05:01	ppp		[wan] IFACE: Down event
    Mar 8 11:05:00	ppp		[wan] IPCP: LayerDown
    Mar 8 11:05:00	ppp		[wan] IPCP: SendTerminateReq #4
    Mar 8 11:05:00	ppp		[wan] IPCP: state change Opened --> Closing
    Mar 8 11:05:00	ppp		[wan] IPCP: Close event
    Mar 8 11:05:00	ppp		[wan] IFACE: Close event
    Mar 8 11:05:00	ppp		caught fatal signal TERM
    Mar 8 11:03:17	ppp		[wan] IPV6CP: LayerFinish
    Mar 8 11:03:17	ppp		[wan] IPV6CP: state change Req-Sent --> Stopped
    Mar 8 11:03:17	ppp		[wan] IPV6CP: parameter negotiation failed
    Mar 8 11:03:15	ppp		[wan] IPV6CP: SendConfigReq #10
    Mar 8 11:03:13	ppp		[wan] IPV6CP: SendConfigReq #9
    Mar 8 11:03:11	ppp		[wan] IPV6CP: SendConfigReq #8
    Mar 8 11:03:09	ppp		[wan] IPV6CP: SendConfigReq #7
    Mar 8 11:03:07	ppp		[wan] IPV6CP: SendConfigReq #6
    Mar 8 11:03:05	ppp		[wan] IPV6CP: SendConfigReq #5
    Mar 8 11:03:03	ppp		[wan] IPV6CP: SendConfigReq #4
    Mar 8 11:03:01	ppp		[wan] IPV6CP: SendConfigReq #3
    Mar 8 11:02:59	ppp		[wan] IPV6CP: SendConfigReq #2
    Mar 8 11:02:57	ppp		[wan_link0] rec'd unexpected protocol IP
    Mar 8 11:02:57	ppp		[wan] IFACE: Rename interface ng0 to pppoe1
    
    


  • Well, this solves my problem.  Not sure it's exactly right for IPv6 use cases.

    
    --- /etc/inc/interfaces.inc-dist        2017-03-09 02:08:06.689241000 -0500
    +++ /etc/inc/interfaces.inc     2017-03-09 02:30:10.816229000 -0500
    @@ -1776,10 +1776,17 @@
     default:
     {$ppp['type']}client:
            create bundle static {$interface}
    -       set bundle enable ipv6cp
            set iface name {$pppif}
    
     EOD;
    +
    +        if (!empty($ifcfg['ipaddrv6'])) {
    +               $mpdconf .= <<<eod<br>+        set bundle enable ipv6cp
    +
    +EOD;
    +
    +        }
            $setdefaultgw = false;
            $founddefaultgw = false;
            if (is_array($config['gateways']['gateway_item'])) {</eod<br>