Jump to content

OpenVPN (CyberGhostVPN) with Docker on Helios64


dancgn

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines