dancgn Posted November 28, 2020 Posted November 28, 2020 I'm a noob... And paid for cyberghostvpn Account. Now i want to run cgvpn on docker. Now i'm running a virtuell Ubuntu on my WindowsPC. But there's a server with can do it. But how? I tryed to config some openvpn images, but nothing works. How can i add my ca.crt, client.crt, client.key and openvpn.ovpn and run it?!? Thanks in advance and please: Not to complicated. Greetins Daniel
Werner Posted November 28, 2020 Posted November 28, 2020 Do CG have their own client or do they provide native OpenVPN config files? I know from LXC that OpenVPN does not work OOB. Some adjustments are needed to allow the container proper access to the TUN device. Maybe Docker needs something similar. Try a more generic search for docker openvpn client
dancgn Posted November 28, 2020 Author Posted November 28, 2020 There wasn't a client specially for docker. Config how to for GUI Ubuntu.
Werner Posted November 28, 2020 Posted November 28, 2020 This does not answer the question. 8 minutes ago, Werner said: OpenVPN config Try to get such files from them to use native OpenVPN client Those files usually look something like this: client dev tun proto udp ; Cert remote-cert-tls server cipher AES-256-CBC ;Host resolv-retry infinite ;auth auth-user-pass filename auth-nocache keepalive 10 30 auth SHA384 remote some.server.com 1194 remote-random persist-key persist-remote-ip nobind sndbuf 0 rcvbuf 0 verb 2 key-direction 1 .... As this is is not an issue specific to Helios64 I move this to p2p.
Elric Posted August 15, 2021 Posted August 15, 2021 I have no idea how or what docker specific is to do. This worked fine for a cli-based installation: If VPN provider provides .ovpn files, get them, and put them in /etc/openvpn. 1. Create a file (eg. auth.txt) in /etc/openvpn, 1st line containing your username (with an ENTER), 2nd line containig your password (without ENTER). 2. Choose one server's .ovpn and copy it to config.conf in /etc/openvpn. 3. Edit config.conf, find auth-user-pass. Append " auth.txt", and save the modified config.conf. 4. edit /etc/default/openvpn. Change "#AUTOSTART=all" to "AUTOSTART=config" After this, enable and restart openvpn: 5. systemctl enable openvpn@config.service 6. systemctl daemon-reload That's all, you might wanna use a "curl ipinfo.io" to verify your new VPN-IP. Last time I setted up openvpn this way, I recieved such an error message at login after reboot: "Unable to read database "/var/lib/vnstat/tun0" No such file or directory Merge "eth0+tun0" failed" VPN worked, even without vnstat. But you can simply correct by: vnstat --create -i tun0 and a reboot.
Recommended Posts