hwdsl2 / setup-ipsec-vpn

Scripts to build your own IPsec VPN server, with IPsec/L2TP, Cisco IPsec and IKEv2
Other
25.4k stars 6.34k forks source link

Unable to connect to server #1603

Closed felipeavilis closed 2 months ago

felipeavilis commented 2 months ago
Sep 24 20:25:20 vm123 xl2tpd[34436]: control_finish: Peer requested tunnel 24 twice, ignoring second one.
Sep 24 20:25:20 vm123 xl2tpd[34436]: Connection established to x.x.x.x, 1701.  Local: 21424, Remote: 24 (ref=0/0).  LNS session is 'default'
Sep 24 20:25:20 vm123 xl2tpd[34436]: start_pppd: I'm running:
Sep 24 20:25:20 vm123 xl2tpd[34436]: "/usr/sbin/pppd"
Sep 24 20:25:20 vm123 xl2tpd[34436]: "/dev/pts/1"
Sep 24 20:25:20 vm123 xl2tpd[34436]: "passive"
Sep 24 20:25:20 vm123 xl2tpd[34436]: "nodetach"
Sep 24 20:25:20 vm123 xl2tpd[34436]: "192.168.42.1:192.168.42.10"
Sep 24 20:25:20 vm123 xl2tpd[34436]: "refuse-pap"
Sep 24 20:25:20 vm123 xl2tpd[34436]: "auth"
Sep 24 20:25:20 vm123 xl2tpd[34436]: "require-chap"
Sep 24 20:25:20 vm123 xl2tpd[34436]: "name"
Sep 24 20:25:20 vm123 xl2tpd[34436]: "l2tpd"
Sep 24 20:25:20 vm123 xl2tpd[34436]: "file"
Sep 24 20:25:20 vm123 xl2tpd[34436]: "/etc/ppp/options.xl2tpd"
Sep 24 20:25:20 vm123 xl2tpd[34436]: Call established with x.x.x.x, PID: 34673, Local: 48729, Remote: 1, Serial: 0
Sep 24 20:25:20 vm123 pppd[34673]: Couldn't open the /dev/ppp device: No such file or directory
Sep 24 20:25:20 vm123 pppd[34673]: You need to create the /dev/ppp device node by#012executing the following command as root:#012#011mknod /dev/ppp c 108 0
Sep 24 20:25:21 vm123 xl2tpd[34436]: child_handler : pppd exited for call 1 with code 4
Sep 24 20:25:21 vm123 xl2tpd[34436]: call_close: Call 48729 to x.x.x.x disconnected
Sep 24 20:25:21 vm123 xl2tpd[34436]: control_finish: Connection closed to x.x.x.x, port 1701 (), Local: 21424, Remote: 24
Sep 24 20:25:21 vm123 xl2tpd[34436]: Terminating pppd: sending TERM signal to pid 34673

Server (please complete the following information)

hwdsl2 commented 2 months ago

@felipeavilis Hello! Please refer to section Debian kernel in IKEv1 troubleshooting. Some server providers, such as Amazon EC2 and Azure, use the "cloud" versions of Linux kernel for Debian Linux, which lacks ppp support and cannot use IPsec/L2TP mode.

In this case, you may instead use IKEv2 or IPsec/XAuth mode to connect to the VPN. Alternatively, if you want to fix the issue with IPsec/L2TP mode, you may switch to the standard Linux kernel by installing e.g. the linux-image-amd64 package. Then update the default kernel in GRUB and reboot your server.