PPTP-WAN does not always connect



  • As mentioned in times of 2.1-beta (https://forum.pfsense.org/index.php?topic=60567.msg326121#msg326121) I face problems with PPTP here.

    Whenever pfsense is booted (for example after upgrading) my WAN does not reliably come up by itself.

    I figured out that I can make it work by removing or saving the settings for the Default-WAN-gateway under "Routing" and/or chosing "Connect" in "Interfaces".

    It would be more comfortable if I hadn't to do that  ;)

    I expect you want me to show pptp-logs?



  • It sounds like maybe the default gateway isn't getting added from that description. Post-boot, what does Diagnostics>Routes show (if anything) for destination "default"? What does Status>Interfaces show for your WAN?



  • No "default" destination for ipv4 after boot, yes …
    Status>Interfaces for WAN: "down"

    Removed gateway under Advanced>Routing and applied, then "Connect" in Interfaces>WAN ... comes up again (after a minute or so)

    Diagnostic>Routes shows now:

    default 213.129.xx.yy UGS 290 1492 pptp0

    thanks, Stefan



  • Ok so it's more than just missing a default route. What does the PPP log show (Status>System logs, PPP)?



  • @cmb:

    Ok so it's more than just missing a default route. What does the PPP log show (Status>System logs, PPP)?

    I assume you mean "after a fresh reboot, without manual intervention" … ? This will take some time here ...  ;)



  • Yes, after a fresh boot before you fix it would be best.



  • @cmb:

    Yes, after a fresh boot before you fix it would be best.

    I drop my communication right now to provide these infos  ;) … just some minutes



  • Don't know if that helps … updated the page a few times without much new stuff ...

    213.129.238.225 is my static IP (if things go online ...  ;) )

    86.59.76.1 is a gateway which I only reach after the pptp-connection is up ...

    Nov 5 22:21:39  ppp: [wan] IPV6CP: state change Ack-Sent –> Opened
    Nov 5 22:21:39  ppp: [wan] IPV6CP: LayerUp
    Nov 5 22:21:39  ppp: [wan] 020d:b9ff:fe18:aeed -> 0221:d8ff:fefc:0b18
    Nov 5 22:21:40  ppp: [wan] IFACE: Up event
    Nov 5 22:21:40  ppp: [wan] IFACE: Rename interface ng0 to pptp0
    Nov 5 22:21:40  ppp: [wan] IPCP: rec'd Configure Nak #2 (Ack-Sent)
    Nov 5 22:21:40  ppp: [wan] IPADDR 213.129.238.225
    Nov 5 22:21:40  ppp: [wan] 213.129.238.225 is OK
    Nov 5 22:21:40  ppp: [wan] PRIDNS 213.129.226.2
    Nov 5 22:21:40  ppp: [wan] SECDNS 213.129.232.1
    Nov 5 22:21:40  ppp: [wan] IPCP: SendConfigReq #3
    Nov 5 22:21:40  ppp: [wan] IPADDR 213.129.238.225
    Nov 5 22:21:40  ppp: [wan] PRIDNS 213.129.226.2
    Nov 5 22:21:40  ppp: [wan] SECDNS 213.129.232.1
    Nov 5 22:21:40  ppp: [wan] IPCP: rec'd Configure Ack #3 (Ack-Sent)
    Nov 5 22:21:40  ppp: [wan] IPADDR 213.129.238.225
    Nov 5 22:21:40  ppp: [wan] PRIDNS 213.129.226.2
    Nov 5 22:21:40  ppp: [wan] SECDNS 213.129.232.1
    Nov 5 22:21:40  ppp: [wan] IPCP: state change Ack-Sent –> Opened
    Nov 5 22:21:40  ppp: [wan] IPCP: LayerUp
    Nov 5 22:21:40  ppp: [wan] 213.129.238.225 -> 86.59.76.1
    Nov 5 22:22:11  ppp: [wan_link0] LCP: no reply to 1 echo request(s)
    Nov 5 22:22:21  ppp: [wan_link0] LCP: no reply to 2 echo request(s)
    Nov 5 22:22:31  ppp: [wan_link0] LCP: no reply to 3 echo request(s)
    Nov 5 22:22:36  ppp: [wan_link0] PPTP call terminated
    Nov 5 22:22:36  ppp: [wan_link0] Link: DOWN event
    Nov 5 22:22:36  ppp: [wan_link0] LCP: Down event
    Nov 5 22:22:36  ppp: [wan_link0] LCP: state change Opened –> Starting
    Nov 5 22:22:36  ppp: [wan_link0] Link: Leave bundle "wan"
    Nov 5 22:22:36  ppp: [wan] Bundle: Status update: up 0 links, total bandwidth 9600 bps
    Nov 5 22:22:36  ppp: [wan] IPCP: Close event
    Nov 5 22:22:36  ppp: [wan] IPCP: state change Opened –> Closing
    Nov 5 22:22:36  ppp: [wan] IPCP: SendTerminateReq #4
    Nov 5 22:22:36  ppp: [wan] IPCP: LayerDown
    Nov 5 22:22:37  ppp: [wan] IPV6CP: Close event
    Nov 5 22:22:37  ppp: [wan] IPV6CP: state change Opened –> Closing
    Nov 5 22:22:37  ppp: [wan] IPV6CP: SendTerminateReq #2
    Nov 5 22:22:37  ppp: [wan] IPV6CP: LayerDown
    Nov 5 22:22:39  ppp: [wan] IFACE: Down event
    Nov 5 22:22:39  ppp: [wan] IFACE: Rename interface pptp0 to pptp0
    Nov 5 22:22:39  ppp: [wan] IPCP: Down event
    Nov 5 22:22:39  ppp: [wan] IPCP: LayerFinish
    Nov 5 22:22:39  ppp: [wan] IPCP: state change Closing –> Initial
    Nov 5 22:22:39  ppp: [wan] IPV6CP: Down event
    Nov 5 22:22:39  ppp: [wan] IPV6CP: LayerFinish
    Nov 5 22:22:39  ppp: [wan] Bundle: No NCPs left. Closing links…
    Nov 5 22:22:39  ppp: [wan] IPV6CP: state change Closing –> Initial
    Nov 5 22:22:39  ppp: [wan_link0] LCP: LayerDown
    Nov 5 22:22:39  ppp: [wan_link0] Link: reconnection attempt 1 in 1 seconds
    Nov 5 22:22:40  ppp: [wan_link0] Link: reconnection attempt 1



  • Looks like it connects just fine initially, then you stop getting replies to your echo requests, indicating a dead connection. Are those logs entirely from before you fixed it? If so, what does it look like after fixing?



  • @cmb:

    Looks like it connects just fine initially, then you stop getting replies to your echo requests, indicating a dead connection. Are those logs entirely from before you fixed it? If so, what does it look like after fixing?

    You mean I am too impatient?

    You mean it would take >10 mins … ?

    Nov 5 22:26:59 ppp: [wan] IPV6CP: Open event
    Nov 5 22:26:59 ppp: [wan] IPV6CP: state change Initial –> Starting
    Nov 5 22:26:59 ppp: [wan] IPV6CP: LayerStart
    Nov 5 22:26:59 ppp: [wan] IPCP: Up event
    Nov 5 22:26:59 ppp: [wan] IPCP: state change Starting –> Req-Sent
    Nov 5 22:26:59 ppp: [wan] IPCP: SendConfigReq #1
    Nov 5 22:26:59 ppp: [wan] IPADDR 0.0.0.0
    Nov 5 22:26:59 ppp: [wan] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
    Nov 5 22:26:59 ppp: [wan] PRIDNS 0.0.0.0
    Nov 5 22:26:59 ppp: [wan] SECDNS 0.0.0.0
    Nov 5 22:26:59 ppp: [wan] IPV6CP: Up event
    Nov 5 22:26:59 ppp: [wan] IPV6CP: state change Starting –> Req-Sent
    Nov 5 22:26:59 ppp: [wan] IPV6CP: SendConfigReq #1
    Nov 5 22:26:59 ppp: [wan] IPCP: rec'd Configure Request #1 (Req-Sent)
    Nov 5 22:26:59 ppp: [wan] IPADDR 213.129.228.1
    Nov 5 22:26:59 ppp: [wan] 213.129.228.1 is OK
    Nov 5 22:26:59 ppp: [wan] IPCP: SendConfigAck #1
    Nov 5 22:26:59 ppp: [wan] IPADDR 213.129.228.1
    Nov 5 22:26:59 ppp: [wan] IPCP: state change Req-Sent –> Ack-Sent
    Nov 5 22:26:59 ppp: [wan] IPV6CP: rec'd Configure Request #1 (Req-Sent)
    Nov 5 22:26:59 ppp: [wan] IPV6CP: SendConfigAck #1
    Nov 5 22:26:59 ppp: [wan] IPV6CP: state change Req-Sent –> Ack-Sent
    Nov 5 22:26:59 ppp: [wan] IPCP: rec'd Configure Reject #1 (Ack-Sent)
    Nov 5 22:26:59 ppp: [wan] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
    Nov 5 22:26:59 ppp: [wan] IPCP: SendConfigReq #2
    Nov 5 22:26:59 ppp: [wan] IPADDR 0.0.0.0
    Nov 5 22:26:59 ppp: [wan] PRIDNS 0.0.0.0
    Nov 5 22:26:59 ppp: [wan] SECDNS 0.0.0.0
    Nov 5 22:26:59 ppp: [wan] IPV6CP: rec'd Configure Ack #1 (Ack-Sent)
    Nov 5 22:26:59 ppp: [wan] IPV6CP: state change Ack-Sent –> Opened
    Nov 5 22:26:59 ppp: [wan] IPV6CP: LayerUp
    Nov 5 22:26:59 ppp: [wan] 020d:b9ff:fe18:aeec -> 8a43:e1ff:feba:fe18
    Nov 5 22:27:00 ppp: [wan] IFACE: Up event
    Nov 5 22:27:00 ppp: [wan] IFACE: Rename interface ng0 to pptp0
    Nov 5 22:27:00 ppp: [wan] IPCP: rec'd Configure Nak #2 (Ack-Sent)
    Nov 5 22:27:00 ppp: [wan] IPADDR 213.129.238.225
    Nov 5 22:27:00 ppp: [wan] 213.129.238.225 is OK
    Nov 5 22:27:00 ppp: [wan] PRIDNS 213.129.226.2
    Nov 5 22:27:00 ppp: [wan] SECDNS 213.129.232.1
    Nov 5 22:27:00 ppp: [wan] IPCP: SendConfigReq #3
    Nov 5 22:27:00 ppp: [wan] IPADDR 213.129.238.225
    Nov 5 22:27:00 ppp: [wan] PRIDNS 213.129.226.2
    Nov 5 22:27:00 ppp: [wan] SECDNS 213.129.232.1
    Nov 5 22:27:00 ppp: [wan] IPCP: rec'd Configure Ack #3 (Ack-Sent)
    Nov 5 22:27:00 ppp: [wan] IPADDR 213.129.238.225
    Nov 5 22:27:00 ppp: [wan] PRIDNS 213.129.226.2
    Nov 5 22:27:00 ppp: [wan] SECDNS 213.129.232.1
    Nov 5 22:27:00 ppp: [wan] IPCP: state change Ack-Sent –> Opened
    Nov 5 22:27:00 ppp: [wan] IPCP: LayerUp
    Nov 5 22:27:00 ppp: [wan] 213.129.238.225 -> 213.129.228.1


Log in to reply