adrienverge / openfortivpn

Client for PPP+TLS VPN tunnel services
GNU General Public License v3.0
2.75k stars 323 forks source link

Can not exec in Ubuntu which is created in Docker #895

Closed idis573 closed 1 year ago

idis573 commented 3 years ago

Logs: Couldn't open the /dev/ppp device: No such file or directory /usr/sbin/pppd: You need to create the /dev/ppp device node by executing the following command as root: mknod /dev/ppp c 108 0

ERROR: read: Input/output error INFO: Cancelling threads... ERROR: pppd: The kernel does not support PPP, for example, the PPP kernel driver is not included or cannot be loaded. INFO: Terminated pppd. INFO: Closed connection to gateway. INFO: Logged out.

idis573 commented 3 years ago

root@236ebda8d3e3:/# pppd --version pppd version 2.4.7

DimitriPapadopoulos commented 3 years ago

You have to investigate this, looks like a Docker issue: ERROR: pppd: The kernel does not support PPP

For example see:

DimitriPapadopoulos commented 3 years ago

You might try openconnect which implements PPP instead of running pppd. It shouldn't need kernel PPP support.

niggowai commented 1 year ago

You can checkout my Repository which can be used to forward ports which are only accessible via a SSL-VPN. Its a docker container combined with an Iptables file to setup the necessary port forwarding. On time writing this i changed my Setup from a Raspberry Pi 4 to a M2 mac mini with Asahi linux but now the compose file does only work with the iptables disabled in contrast to a docker command where the forwarding still works...