Need help with L2TP connection

Hi, sorry if I’m asking in the wrong section.
I have an RB951G-2HnD running on RouterOS 7 which has an l2tp client connection running on. I’ve had no problems with routing all my traffic through this connection until recently. Suddenly the L2TP client connection disconnected and now whenever I try to reconnect I get the error: “terminating … session closed”. I can confirm that the server is working fine because I can connect to it using my phone and iPad. Anyone can help me fix this problem? Thanks

The log should tell you more than this if you set /system/logging/add topics=l2tp. Can you see the log also on the server or is the server not yours?

The server is not mine so I can’t see what’s on the server side. I’ll see what my log says when I add that line and post back

Well, I guess that didn’t add anything to my log as no extra info is being displayed there. It just shows as the attached picture.
IMG_20231202_104546.jpg

Something did not go as expected. When I enable logging of L2TP using /system/logging/add topics=l2tp and set up an L2TP client connecting to a non-existent server address, my log shows the following:
12:39:46 l2tp,ppp,info test: initializing…
12:39:46 l2tp,ppp,info test: connecting…
12:39:46 l2tp,debug tunnel 29179 entering state: wait-ctl-reply
12:39:46 l2tp,debug,packet sent control message to 192.168.113.27:1701 from 192.168.227.21:1701
12:39:46 l2tp,debug,packet proto version 2, tunnel-id=0, session-id=0, ns=0, nr=0
12:39:46 l2tp,debug,packet (M) Message-Type=SCCRQ
12:39:46 l2tp,debug,packet (M) Protocol-Version=0x01:00
12:39:46 l2tp,debug,packet (M) Framing-Capabilities=0x1
12:39:46 l2tp,debug,packet (M) Bearer-Capabilities=0x0
12:39:46 l2tp,debug,packet Firmware-Revision=0x1
12:39:46 l2tp,debug,packet (M) Host-Name=“chr-7-1”
12:39:46 l2tp,debug,packet Vendor-Name=“MikroTik”
12:39:46 l2tp,debug,packet (M) Assigned-Tunnel-ID=0x71:fb

So even if your issue was a misconfigured address of the server, you should still see debug messages in the log. What does /system/logging/print show?

I’m so sorry, I mistyped the command but now I have the log showing everything, I’ll attach a screenshot as I can’t make up anything of it.

You have leaked the public address of the server; if it bothers you, remove the screenshot.

Then, disable the L2TP client, wait 60 seconds, run /log print follow-only file=l2tp-start, enable the L2TP client, wait 60 seconds and stop the /log print… by pressing Ctrl-C. Then download the file l2tp-start.txt, use find&replace to substitute the IP of the server by l2tp.ser.ver.ip if you don’t want it to show it to the world, and paste the text here between [code] and [/code] tags. I need to see the L2TP startup from the very beginning.