PPOE does not Reinitialise after failure



  • Hopefully this is the right area for this:-

    I have a PFSENSE (AMD64 2.15) box with two WAN connections vlaned on nic1 and mutiple lans vlaned on nic2. In addition there are two additional dummy wan interfaces (vlanned on nic1) set up purely to access the http interface on the two modems. Both nics are connected to a CISO switch which manages the vlans to the appropriate places.

    Both WANs are set up as ppoe to Tecnicolor TG582n modems

    All works fine except When the modem drops the DSL and then it re-establishes or there is a problem with the modem when the system starts. In these situations the PPOE does not always appear to recover and we see the following in the log:-

    Jan 23 12:16:17 ppp: [wan_link0] Link: reconnection attempt 2169 in 3 seconds
    Jan 23 12:16:20 ppp: [wan_link0] Link: reconnection attempt 2169
    Jan 23 12:16:20 ppp: [wan_link0] PPPoE: can't connect "[1f]:"->"mpd39567-0" and "[a5]:"->"left": No such file or directory
    Jan 23 12:16:20 ppp: [wan_link0] can't remove hook mpd39567-0 from node "[1f]:": No such file or directory
    Jan 23 12:16:20 ppp: [wan_link0] Link: DOWN event
    and so on ad infinitum

    Simply re-saving the PPOE interface without changing anything is enough to get it going again

    when I do that I see the following in the log:-
    Jan 23 12:16:31 ppp: caught fatal signal term
    Jan 23 12:16:31 ppp: [wan] IFACE: Close event
    Jan 23 12:16:31 ppp: [wan] IPCP: Close event
    Jan 23 12:16:31 ppp: [wan] IPV6CP: Close event
    Jan 23 12:16:33 ppp: [wan] Bundle: Shutdown
    Jan 23 12:16:33 ppp: [wan_link0] Link: Shutdown
    Jan 23 12:16:33 ppp: process 39567 terminated
    Jan 23 12:16:34 ppp: Multi-link PPP daemon for FreeBSD
    Jan 23 12:16:34 ppp:
    Jan 23 12:16:34 ppp: process 77764 started, version 5.7 (root@pf2_1_1_amd64.pfsense.org 08:19 15-Aug-2014)
    Jan 23 12:16:34 ppp: web: web is not running
    Jan 23 12:16:34 ppp: [wan] Bundle: Interface ng0 created
    Jan 23 12:16:34 ppp: [wan_link0] Link: OPEN event
    Jan 23 12:16:34 ppp: [wan_link0] LCP: Open event
    Jan 23 12:16:34 ppp: [wan_link0] LCP: state change Initial –> Starting
    Jan 23 12:16:34 ppp: [wan_link0] LCP: LayerStart
    Jan 23 12:16:34 ppp: [wan_link0] PPPoE: Connecting to ''
    Jan 23 12:16:34 ppp: PPPoE: rec'd ACNAME "npe001.mil-B22"
    Jan 23 12:16:34 ppp: [wan_link0] PPPoE: connection successful
    followed by all the normal connecting stuff

    Anyone have any ideas of what the problem is?
    thanks
    Stephen



  • Is upgrading to 2.2 an option, seeing as the 2.2 forum has now been retired in the last 12 hours?

    These threads might be relevant, but the first link caught my eye when googling "pfsense can't remove hook"

    https://forum.pfsense.org/index.php?topic=36043.msg203273#msg203273

    https://forum.pfsense.org/index.php?topic=31409.0
    https://forum.pfsense.org/index.php/topic,31247.0.html

    Although slightly different to your setup, ie mine is just pfsense2.2rc into a single modem with no vlan to access the router/modem, the highest I've seen a ppp attempt is 34 times (reverse order to your layout).

    Jan 19 16:41:55 ppp: [wan_link0] LCP: Open event
    Jan 19 16:41:55 ppp: [wan_link0] Link: OPEN event
    Jan 19 16:41:55 ppp: [wan] Bundle: Interface ng0 created
    Jan 19 16:41:55 ppp: web: web is not running
    Jan 19 16:41:55 ppp: process 5756 started, version 5.7 (root@pfsense-22-amd64-builder 12:58 18-Nov-2014)
    Jan 19 16:41:55 ppp:
    Jan 19 16:41:55 ppp: Multi-link PPP daemon for FreeBSD
    Jan 19 16:40:47 ppp: [wan_link0] Link: reconnection attempt 34 in 4 seconds
    Jan 19 16:40:47 ppp: [wan_link0] LCP: Down event

    a single retry attempt (reverse order to yours)
    Jan 19 20:17:40 ppp: [wan_link0] LCP: SendConfigReq #1
    Jan 19 20:17:40 ppp: [wan_link0] LCP: state change Starting –> Req-Sent
    Jan 19 20:17:40 ppp: [wan_link0] LCP: Up event
    Jan 19 20:17:40 ppp: [wan_link0] Link: UP event
    Jan 19 20:17:40 ppp: [wan_link0] PPPoE: connection successful
    Jan 19 20:17:39 ppp: PPPoE: rec'd ACNAME "npe001.cam-B20"
    Jan 19 20:17:33 ppp: [wan_link0] PPPoE: Connecting to ''
    Jan 19 20:17:33 ppp: [wan_link0] Link: reconnection attempt 1
    Jan 19 20:17:29 ppp: [wan_link0] Link: reconnection attempt 1 in 4 seconds
    Jan 19 20:17:29 ppp: [wan_link0] LCP: Down event
    Jan 19 20:17:29 ppp: [wan_link0] Link: DOWN event
    Jan 19 20:17:29 ppp: [wan_link0] PPPoE connection timeout after 9 seconds
    Jan 19 20:17:20 ppp: [wan_link0] PPPoE: Connecting to ''
    Jan 19 20:17:20 ppp: [wan_link0] LCP: LayerStart
    Jan 19 20:17:20 ppp: [wan_link0] LCP: state change Initial –> Starting
    Jan 19 20:17:20 ppp: [wan_link0] LCP: Open event
    Jan 19 20:17:20 ppp: [wan_link0] Link: OPEN event
    Jan 19 20:17:20 ppp: [wan] Bundle: Interface ng0 created
    Jan 19 20:17:20 ppp: web: web is not running
    Jan 19 20:17:19 ppp: process 65724 terminated

    Dont know the history of your pfsense usage, ie installed from scratch or had some updates/upgrades over time, but some upgrade processes do not always go smoothly, so sometimes its best to install from scratch and config from scratch if problems occur.

    fwiw.


Log in to reply