Skip to main content
Topic: How to setup openvpn client? (Read 2863 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to setup openvpn client?

Hi everyone
I just installed Artix and i want to use openvpn
I have the  .ovpn file, i also noticed that there is an openvpn-runit package in the repositories ?
Ideally i'd like to use ufw as a killswitch and start openvpn on boot
but i just can't seem to figure out how it works ..

Thanks for any help   :'(

Re: How to setup openvpn client?

Reply #1
Hello.

Do you want to connect to Openvpn as a client or are you configuring an Openvpn server?

Have you ever read this?


If you want to connect as a client my recommendation is to use Networkmanager with the plugin networkmanager-openvpn. I normally connect on demand because I don't need to be connected 24/7 but if you do need to connect at boot. You should also read this:

Artix Linux Colombia

Re: How to setup openvpn client?

Reply #2
I use openvpn with dynamic IPs, having followed the Arch wiki. OpenRC here, nothing special was needed.

Re: How to setup openvpn client?

Reply #3
Hello.

Do you want to connect to Openvpn as a client or are you configuring an Openvpn server?

Have you ever read this?

If you want to connect as a client my recommendation is to use Networkmanager with the plugin networkmanager-openvpn. I normally connect on demand because I don't need to be connected 24/7 but if you do need to connect at boot. You should also read this:


Hi
I want to connect as a client and have an ovpn configuration file
I did read the wiki on openvpn , i use connman and not Netwokmanager should i just use that?
I get this error when trying to use openvpn with a configuration file :
Quote
Options error: --up script fails with '/etc/openvpn/update-resolv-conf': No such file or directory (errno=2)
Options error: Please correct this error.
Use --help for more information.


 

Re: How to setup openvpn client?

Reply #4
Hello again.

You should try to connect manually first because you can test if the ovpn file has something wrong.

Code: [Select]
#openvpn yourconffile.ovpn

NOTE: If you use the openvpn command you might need to be sure that module "tun" is up, otherwise is not going to work. If you use Networkmanager this step is not needed.

Code: [Select]
#modprobe tun

If you don't see any error. You can configure Connman to connect with Openvpn following this link. That's mean you should read your .ovpn file and try to adapt in the connman configuration. I normally recommend Networkmanager if you want to connect with Openvpn because I think is easier. If you want to use networkmanager you should read this. By own experience I couldn't make openvpn work with Connman but It doesn't mean that you cannot make it work either, you should try. If you definitely want to use NetworkManager you must uninstall Connman.





Artix Linux Colombia