What's new

VU+ Plugins - System OpenVPN Config Changer Plugin

Ten Below

SuperTux
Staff member
Admin
Moderator
Messages
7,935
Joined
Sep 9, 2014
Reaction score
7,765
Points
628
OpenVPN Config Changer Plugin

shot1.jpg

What makes the plugin:
- The VPN configs previously created on the hard drive are changed to the etc / openvpn folder at the push of a button.
- It also shows the IP address assigned now.
- The remaining VPN start and stop functions can also be regulated.

Preparations:

- On your hard drive / usb stick / network disk or whatever you create the folder vpn (path media / hdd / vpn)
- In the folder vpn create your additional folder with the data of your VPN server
- Example folder: VPNSchweiz with the contents ch7.conf and auth.txt
- If you want to have the folder elsewhere, you can also change the path in the plugin with the green button.

The installation should be clear.

thx @ seidy




 

Attachments

Last edited:

chris0200

Vuplus-Images Elite
Messages
95
Joined
Mar 22, 2017
Reaction score
18
Points
8
Giving it a go I'll report back on functionality
 

chris0200

Vuplus-Images Elite
Messages
95
Joined
Mar 22, 2017
Reaction score
18
Points
8
It does not seem to restart the VPN once it goes down I am afraid. OK as a check that VPN is running and the IP checker.
 

ketmp

Vuplus-Images Elite
Significant Contributor
Messages
195
Joined
Feb 21, 2016
Reaction score
269
Points
63
I haven't tried it but I read that if you have multiple remote entries it will try them in the order mentioned and if fails should move on to next one.
Code:
Please, Log in or Register to view codes content!
 

ketmp

Vuplus-Images Elite
Significant Contributor
Messages
195
Joined
Feb 21, 2016
Reaction score
269
Points
63
Please, Log in or Register to view URLs content!


Implementing a load-balancing/failover configuration

Client
The OpenVPN client configuration can refer to multiple servers for load balancing and failover. For example:

remote server1.mydomain
remote server2.mydomain
remote server3.mydomain


will direct the OpenVPN client to attempt a connection with server1, server2, and server3 in that order. If an existing connection is broken, the OpenVPN client will retry the most recently connected server, and if that fails, will move on to the next server in the list. You can also direct the OpenVPN client to randomize its server list on startup, so that the client load will be probabilistically spread across the server pool.

remote-random
If you would also like DNS resolution failures to cause the OpenVPN client to move to the next server in the list, add the following:

resolv-retry 60
The 60 parameter tells the OpenVPN client to try resolving each remote DNS name for 60 seconds before moving on to the next server in the list.
 

chris0200

Vuplus-Images Elite
Messages
95
Joined
Mar 22, 2017
Reaction score
18
Points
8
I may be wrong but if I put 3 different client.conf (1 for each country) in the open openvpn folder, will the changer try each, assuming I name them client1,client2,clinet3? If not I think I am lost?:bangw:
 

ketmp

Vuplus-Images Elite
Significant Contributor
Messages
195
Joined
Feb 21, 2016
Reaction score
269
Points
63
I'm not sure about this plugin changer but if you're looking at method I posted then this allows one conf file with different servers listed in it and it will then go through each server one by one if there is an issue.

I use this method now as a failsafe in case the preferred server I use goes down, it will failover to another server.
 

chris0200

Vuplus-Images Elite
Messages
95
Joined
Mar 22, 2017
Reaction score
18
Points
8
I have copied and pasted three different country 'client.conf' files into one file and copied across to my box. Is that all I have to do? Or should it look like this:

client
dev tun
proto udp
com 119remote
com 119remote
com 119remote
resolv-retry infinite
nobind
persist-key
persist-tun
cipher aes-128-cbc
auth sha1
tls-client
remote-cert-tls server
auth-user-pass password.txt
comp-lzo
verb 1
reneg-sec 0
crl-verify crl.rsa.2048.pem
ca ca.rsa.2048.crt
disable-occ

Thanks for the help.
 
Last edited:

ketmp

Vuplus-Images Elite
Significant Contributor
Messages
195
Joined
Feb 21, 2016
Reaction score
269
Points
63
@chris0200, this is what my conf looks like (remote address purposely renamed but I also do use PIA):
Code:
Please, Log in or Register to view codes content!
 

chris0200

Vuplus-Images Elite
Messages
95
Joined
Mar 22, 2017
Reaction score
18
Points
8
@chris0200, this is what my conf looks like (remote address purposely renamed but I also do use PIA):
Code:
Please, Log in or Register to view codes content!

Interesting are you loosing the com119 bit at the beginning of the line or does it stay?

EDIT: Just checked and you do. Mind just relised that it says VPN is running when its not, weird.
 
Last edited:

chris0200

Vuplus-Images Elite
Messages
95
Joined
Mar 22, 2017
Reaction score
18
Points
8
No you need to set up openvpn first, forget the changer for now and set up one location to route through, eg France, Austria etc.

All the changer does is change the country/location you route through for internet access.
 

next21

Member
Messages
13
Joined
May 2, 2018
Reaction score
5
Points
3
No you need to set up openvpn first, forget the changer for now and set up one location to route through, eg France, Austria etc.

All the changer does is change the country/location you route through for internet access.
How to route through?
In modem router or receiver ?

When the open vpn is start
Shareing mulator lines are disabled?
 

Top Bottom