macbook professional – VPN connection terminates: L2TP didn’t set port-mapping for en0, errorCode: -65564

0
28
macbook professional – VPN connection terminates: L2TP didn’t set port-mapping for en0, errorCode: -65564


The next situation surfaced final week and I’m not certain anymore if this occurred earlier than or after I upgraded to Monterey.

I’m utilizing a VPN connection for work however since final week this connection solely lasts for 60 to 90 seconds. Within the first 60 seconds all the things is working. The machine is linked and has web. After these 60 seconds the web connection stops working and round 30 seconds later the VPN shopper tells me that the VPN connection has been terminated.

Now, after some attempting round it was advised to me to attempt to entry the web from one other connection so I switched from my house router to a cell scorching spot.

And there you go. With the cell scorching spot all the things is working fantastic for hours.

Clearly, this makes the router the primary suspect however I’ve been working with it for months now and since I did not contact it, I discover it onerous to consider that it’s the trigger.

I’ve searched the web for this situation however I could not discover something helpful. Is there something I can do? At the least to get extra details about the place this situation actually originates from?

I took a have a look at the /var/log/ppp.log file and in contrast each instances. The principle distinction, and what catches the attention, are these traces right here:

Thu Jan 20 09:47:09 2022 : L2TP didn't set port-mapping for en0, errorCode: -65564
Thu Jan 20 09:47:09 2022 : L2TP port-mapping for en0 turned invalid. is Linked: 1, Protocol: None, Personal Port: 0, Earlier publicAddress: (0), Earlier publicPort: (0)
Thu Jan 20 09:47:09 2022 : L2TP clearing port-mapping for en0

Under you may have a look at each total periods.

Working (cell scorching spot)

Thu Jan 20 14:51:30 2022 : publish_entry SCDSet() failed: Success!
Thu Jan 20 14:51:30 2022 : publish_entry SCDSet() failed: Success!
Thu Jan 20 14:51:30 2022 : l2tp_get_router_address
Thu Jan 20 14:51:30 2022 : l2tp_get_router_address 192.168.43.1 from dict 1
Thu Jan 20 14:51:30 2022 : L2TP connecting to server '85.237.31.244' (85.237.31.244)...
Thu Jan 20 14:51:30 2022 : IPSec connection began
Thu Jan 20 14:51:30 2022 : IPSec part 1 shopper began
Thu Jan 20 14:51:30 2022 : IPSec part 1 server replied
Thu Jan 20 14:51:31 2022 : IPSec part 2 began
Thu Jan 20 14:51:31 2022 : IPSec part 2 established
Thu Jan 20 14:51:31 2022 : IPSec connection established
Thu Jan 20 14:51:31 2022 : L2TP despatched SCCRQ
Thu Jan 20 14:51:32 2022 : L2TP obtained SCCRP
Thu Jan 20 14:51:32 2022 : L2TP despatched SCCCN
Thu Jan 20 14:51:32 2022 : L2TP despatched ICRQ
Thu Jan 20 14:51:32 2022 : L2TP obtained ICRP
Thu Jan 20 14:51:32 2022 : L2TP despatched ICCN
Thu Jan 20 14:51:32 2022 : L2TP connection established.
Thu Jan 20 14:51:32 2022 : L2TP set port-mapping for en0, interface: 6, protocol: 0, privatePort: 0
Thu Jan 20 14:51:32 2022 : utilizing hyperlink 0
Thu Jan 20 14:51:32 2022 : Utilizing interface ppp0
Thu Jan 20 14:51:32 2022 : Join: ppp0 <--> socket[34:18]
Thu Jan 20 14:51:32 2022 : despatched [LCP ConfReq id=0x1    ]
Thu Jan 20 14:51:32 2022 : rcvd [LCP ConfReq id=0x1   ]
Thu Jan 20 14:51:32 2022 : lcp_reqci: returning CONFNAK.
Thu Jan 20 14:51:32 2022 : despatched [LCP ConfNak id=0x1 ]
Thu Jan 20 14:51:32 2022 : rcvd [LCP ConfReq id=0x2   ]
Thu Jan 20 14:51:32 2022 : lcp_reqci: returning CONFACK.
Thu Jan 20 14:51:32 2022 : despatched [LCP ConfAck id=0x2   ]
Thu Jan 20 14:51:35 2022 : despatched [LCP ConfReq id=0x1    ]
Thu Jan 20 14:51:35 2022 : rcvd [LCP ConfAck id=0x1    ]
Thu Jan 20 14:51:35 2022 : despatched [LCP EchoReq id=0x0 magic=0x57c42b33]
Thu Jan 20 14:51:35 2022 : rcvd [CHAP Challenge id=0xc2 , name = "xl2tpd"]
Thu Jan 20 14:51:35 2022 : despatched [CHAP Response id=0xc2 <6399983a35e92f14499ef668e18b2898000000000000000047db3fdec44452683582e60fd1d8ef17cb0308c7c24d6bff00>, name = "sfalk"]
Thu Jan 20 14:51:35 2022 : rcvd [LCP EchoRep id=0x0 magic=0x5e3d2499]
Thu Jan 20 14:51:35 2022 : rcvd [CHAP Success id=0xc2 "S=E25C4E6D7589D22C958A063AE5018D4349014605"]
Thu Jan 20 14:51:35 2022 : despatched [IPCP ConfReq id=0x1   ]
Thu Jan 20 14:51:35 2022 : despatched [IPV6CP ConfReq id=0x1 ]
Thu Jan 20 14:51:35 2022 : rcvd [IPCP ConfReq id=0x1 ]
Thu Jan 20 14:51:35 2022 : ipcp: returning Configure-ACK
Thu Jan 20 14:51:35 2022 : despatched [IPCP ConfAck id=0x1 ]
Thu Jan 20 14:51:36 2022 : rcvd [IPCP ConfNak id=0x1   ]
Thu Jan 20 14:51:36 2022 : despatched [IPCP ConfReq id=0x2   ]
Thu Jan 20 14:51:36 2022 : rcvd [LCP ProtRej id=0x3 80 57 01 01 00 0e 01 0a f2 18 98 ff fe 5f 11 f2]
Thu Jan 20 14:51:36 2022 : rcvd [IPCP ConfAck id=0x2   ]
Thu Jan 20 14:51:36 2022 : ipcp: up
Thu Jan 20 14:51:36 2022 : native  IP handle 10.10.20.8
Thu Jan 20 14:51:36 2022 : distant IP handle 10.255.255.0
Thu Jan 20 14:51:36 2022 : main   DNS handle 10.10.10.1
Thu Jan 20 14:51:36 2022 : secondary DNS handle 10.10.10.1
Thu Jan 20 14:51:36 2022 : Acquired protocol dictionaries
Thu Jan 20 14:51:36 2022 : l2tp_wait_input: Deal with added. earlier interface setting (title: en0, handle: 192.168.43.145), present interface setting (title: ppp0, household: PPP, handle: 10.10.20.8, subnet: 255.0.0.0, vacation spot: 10.255.255.0).
Thu Jan 20 14:51:36 2022 : Dedicated PPP retailer on set up command
Thu Jan 20 14:51:36 2022 : rcvd [IPV6 data]
   60 00 00 00 00 24 00 01   00 00 00 00 00 00 00 00   '`....$..........'
   00 00 00 00 00 00 00 00   ff 02 00 00 00 00 00 00   '................'
   00 00 00 00 00 00 00 16   3a 00 05 02 00 00 01 00   '........:.......'
   8f 00 6e 8a 00 00 00 01   04 00 00 00 ff 02 00 00   '..n.............'
   00 00 00 00 00 00 00 00   00 00 00 02               '............'
Thu Jan 20 14:51:36 2022 : Unsupported protocol 0x57 obtained
Thu Jan 20 14:51:36 2022 : despatched [LCP ProtRej id=0x2 00 57 60 00 00 00 00 24 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff 02 00 00 00 00 ...]
Thu Jan 20 14:51:37 2022 : rcvd [IPV6 data]
   60 00 00 00 00 24 00 01   00 00 00 00 00 00 00 00   '`....$..........'
   00 00 00 00 00 00 00 00   ff 02 00 00 00 00 00 00   '................'
   00 00 00 00 00 00 00 16   3a 00 05 02 00 00 01 00   '........:.......'
   8f 00 6e 8a 00 00 00 01   04 00 00 00 ff 02 00 00   '..n.............'
   00 00 00 00 00 00 00 00   00 00 00 02               '............'
Thu Jan 20 14:51:37 2022 : Unsupported protocol 0x57 obtained
Thu Jan 20 14:51:37 2022 : despatched [LCP ProtRej id=0x3 00 57 60 00 00 00 00 24 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff 02 00 00 00 00 ...]
Thu Jan 20 14:51:39 2022 : L2TP port-mapping replace for en0 ignored: VPN is the Main interface. Public Deal with: 0, Protocol: None, Personal Port: 0, Public Port: 0
Thu Jan 20 14:51:39 2022 : L2TP clearing port-mapping for en0

Not working (router)

Router occasion log

Establishing the VPN connection, I can see these log entries in my router’s occasion log:

24.01.22  10:19:24  Wi-fi LAN transmission high quality elevated by lowered channel bandwidth (2,4 GHz). [3 messages since 24.01.22 10:19:04]
24.01.22  10:19:01  Forwarding to 192.168.178.69 (sfalk) added for port 1701.
24.01.22  10:19:01  Forwarding to 192.168.178.69 (sfalk) added for port 4500.
24.01.22  10:18:58  Forwarding to 192.168.178.69 (sfalk) added for port 500.
24.01.22  10:18:04  Occasion Log was deleted. This variation was made within the house community from IP handle 192.168.178.69 [sfalk].

/var/log/ppp.log

Thu Jan 20 09:47:07 2022 : publish_entry SCDSet() failed: Success!
Thu Jan 20 09:47:07 2022 : publish_entry SCDSet() failed: Success!
Thu Jan 20 09:47:07 2022 : l2tp_get_router_address
Thu Jan 20 09:47:07 2022 : l2tp_get_router_address 192.168.178.1 from dict 1
Thu Jan 20 09:47:07 2022 : L2TP connecting to server '85.237.31.244' (85.237.31.244)...
Thu Jan 20 09:47:07 2022 : IPSec connection began
Thu Jan 20 09:47:07 2022 : IPSec part 1 shopper began
Thu Jan 20 09:47:07 2022 : IPSec part 1 server replied
Thu Jan 20 09:47:08 2022 : IPSec part 2 began
Thu Jan 20 09:47:08 2022 : IPSec part 2 established
Thu Jan 20 09:47:08 2022 : IPSec connection established
Thu Jan 20 09:47:08 2022 : L2TP despatched SCCRQ
Thu Jan 20 09:47:08 2022 : L2TP obtained SCCRP
Thu Jan 20 09:47:08 2022 : L2TP despatched SCCCN
Thu Jan 20 09:47:08 2022 : L2TP despatched ICRQ
Thu Jan 20 09:47:08 2022 : L2TP obtained ICRP
Thu Jan 20 09:47:08 2022 : L2TP despatched ICCN
Thu Jan 20 09:47:08 2022 : L2TP connection established.
Thu Jan 20 09:47:08 2022 : L2TP set port-mapping for en0, interface: 6, protocol: 0, privatePort: 0
Thu Jan 20 09:47:08 2022 : utilizing hyperlink 0
Thu Jan 20 09:47:08 2022 : Utilizing interface ppp0
Thu Jan 20 09:47:08 2022 : Join: ppp0 <--> socket[34:18]
Thu Jan 20 09:47:08 2022 : despatched [LCP ConfReq id=0x1    ]
Thu Jan 20 09:47:08 2022 : rcvd [LCP ConfReq id=0x1   ]
Thu Jan 20 09:47:08 2022 : lcp_reqci: returning CONFNAK.
Thu Jan 20 09:47:08 2022 : despatched [LCP ConfNak id=0x1 ]
Thu Jan 20 09:47:08 2022 : rcvd [LCP ConfReq id=0x2   ]
Thu Jan 20 09:47:08 2022 : lcp_reqci: returning CONFACK.
Thu Jan 20 09:47:08 2022 : despatched [LCP ConfAck id=0x2   ]
Thu Jan 20 09:47:09 2022 : L2TP didn't set port-mapping for en0, errorCode: -65564
Thu Jan 20 09:47:09 2022 : L2TP port-mapping for en0 turned invalid. is Linked: 1, Protocol: None, Personal Port: 0, Earlier publicAddress: (0), Earlier publicPort: (0)
Thu Jan 20 09:47:09 2022 : L2TP clearing port-mapping for en0
Thu Jan 20 09:47:11 2022 : despatched [LCP ConfReq id=0x1    ]
Thu Jan 20 09:47:11 2022 : rcvd [LCP ConfAck id=0x1    ]
Thu Jan 20 09:47:11 2022 : despatched [LCP EchoReq id=0x0 magic=0x62b2ff57]
Thu Jan 20 09:47:11 2022 : rcvd [CHAP Challenge id=0x82 , name = "xl2tpd"]
Thu Jan 20 09:47:11 2022 : despatched [CHAP Response id=0x82 , name = "sfalk"]
Thu Jan 20 09:47:11 2022 : rcvd [LCP EchoRep id=0x0 magic=0xfb54e2f3]
Thu Jan 20 09:47:11 2022 : rcvd [CHAP Success id=0x82 "S=AF62F9AD454798E796FDA8AF4F151B7204E6C838"]
Thu Jan 20 09:47:11 2022 : despatched [IPCP ConfReq id=0x1   ]
Thu Jan 20 09:47:11 2022 : despatched [IPV6CP ConfReq id=0x1 ]
Thu Jan 20 09:47:11 2022 : rcvd [IPCP ConfReq id=0x1 ]
Thu Jan 20 09:47:11 2022 : ipcp: returning Configure-ACK
Thu Jan 20 09:47:11 2022 : despatched [IPCP ConfAck id=0x1 ]
Thu Jan 20 09:47:11 2022 : rcvd [IPCP ConfNak id=0x1   ]
Thu Jan 20 09:47:11 2022 : despatched [IPCP ConfReq id=0x2   ]
Thu Jan 20 09:47:11 2022 : rcvd [LCP ProtRej id=0x3 80 57 01 01 00 0e 01 0a f2 18 98 ff fe 5f 11 f2]
Thu Jan 20 09:47:11 2022 : rcvd [IPCP ConfAck id=0x2   ]
Thu Jan 20 09:47:11 2022 : ipcp: up
Thu Jan 20 09:47:11 2022 : native  IP handle 10.10.20.12
Thu Jan 20 09:47:11 2022 : distant IP handle 10.255.255.0
Thu Jan 20 09:47:11 2022 : main   DNS handle 10.10.10.1
Thu Jan 20 09:47:11 2022 : secondary DNS handle 10.10.10.1
Thu Jan 20 09:47:11 2022 : Acquired protocol dictionaries
Thu Jan 20 09:47:11 2022 : l2tp_wait_input: Deal with added. earlier interface setting (title: en0, handle: 192.168.178.22), present interface setting (title: ppp0, household: PPP, handle: 10.10.20.12, subnet: 255.0.0.0, vacation spot: 10.255.255.0).
Thu Jan 20 09:47:11 2022 : Dedicated PPP retailer on set up command
Thu Jan 20 09:47:11 2022 : rcvd [IPV6 data]
   60 00 00 00 00 24 00 01   00 00 00 00 00 00 00 00   '`....$..........'
   00 00 00 00 00 00 00 00   ff 02 00 00 00 00 00 00   '................'
   00 00 00 00 00 00 00 16   3a 00 05 02 00 00 01 00   '........:.......'
   8f 00 6e 8a 00 00 00 01   04 00 00 00 ff 02 00 00   '..n.............'
   00 00 00 00 00 00 00 00   00 00 00 02               '............'
Thu Jan 20 09:47:11 2022 : Unsupported protocol 0x57 obtained
Thu Jan 20 09:47:11 2022 : despatched [LCP ProtRej id=0x2 00 57 60 00 00 00 00 24 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff 02 00 00 00 00 ...]
Thu Jan 20 09:47:12 2022 : rcvd [IPV6 data]
   60 00 00 00 00 24 00 01   00 00 00 00 00 00 00 00   '`....$..........'
   00 00 00 00 00 00 00 00   ff 02 00 00 00 00 00 00   '................'
   00 00 00 00 00 00 00 16   3a 00 05 02 00 00 01 00   '........:.......'
   8f 00 6e 8a 00 00 00 01   04 00 00 00 ff 02 00 00   '..n.............'
   00 00 00 00 00 00 00 00   00 00 00 02               '............'
Thu Jan 20 09:47:12 2022 : Unsupported protocol 0x57 obtained
Thu Jan 20 09:47:12 2022 : despatched [LCP ProtRej id=0x3 00 57 60 00 00 00 00 24 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff 02 00 00 00 00 ...]
Thu Jan 20 09:48:39 2022 : L2TP obtained StopCCN
Thu Jan 20 09:48:39 2022 : L2TP hangup
Thu Jan 20 09:48:39 2022 : ipcp: down
Thu Jan 20 09:48:39 2022 : Connection terminated.
Thu Jan 20 09:48:39 2022 : L2TP clearing port-mapping for en0
Thu Jan 20 09:48:39 2022 : Join time 1.6 minutes.
Thu Jan 20 09:48:39 2022 : Despatched 87703 bytes, obtained 50878 bytes.
Thu Jan 20 09:48:39 2022 : L2TP disconnecting...
Thu Jan 20 09:48:39 2022 : L2TP despatched CDN
Thu Jan 20 09:48:39 2022 : L2TP despatched StopCCN
Thu Jan 20 09:48:39 2022 : L2TP disconnected

LEAVE A REPLY

Please enter your comment!
Please enter your name here