Change VPN node without having to edit client?

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Locked
gurudog
OpenVpn Newbie
Posts: 7
Joined: Sun Mar 20, 2011 8:03 pm

Change VPN node without having to edit client?

Post by gurudog » Sun Mar 20, 2011 8:10 pm

I've seen a couple VPN providers create their own custom Windows interfaces so that users only need to click a dropdown menu to select the node that they want to connect to (i.e. newyork, london, etc.)

I want to do something similar so users don't have to edit the client file each time they want to switch IPs.

Does anyone know how to this with a hack or simple script?

I'm not good with Win scripting, but was thinking this could be done with a custom browser toolbar that overwrites the client file with the VPN url.

Any thoughts?

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Change VPN node without having to edit client?

Post by maikcat » Mon Mar 21, 2011 10:03 am

hi there,

you can always use the openvpn gui with preconfigured multiple
openvpn configuration files.


cheers,

michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

gurudog
OpenVpn Newbie
Posts: 7
Joined: Sun Mar 20, 2011 8:03 pm

Re: Change VPN node without having to edit client?

Post by gurudog » Mon Mar 21, 2011 4:59 pm

I know that 2.2+ of OpenVPN client supports multiple configs...

But - once these are properly placed in the configuration folder, do these actually come up as different options to connect within the Windows GUI?

THX!

gurudog
OpenVpn Newbie
Posts: 7
Joined: Sun Mar 20, 2011 8:03 pm

Re: Change VPN node without having to edit client?

Post by gurudog » Mon Mar 21, 2011 5:40 pm

Ok...I figured out that I can have multiple .ovpn files in the config folder and this will allow me to have multiple connections to choose from or select from (in Windows GUI at least).

topic7744.html

Using 2.2RC, If I just drop:

client1.ovpn
client2.ovpn

Into the config folder this doesn't seem to be enough as I don't see additional connections in the GUI.

Do I need to compile the build? Can someone give me a hint as to the steps?

Thx

gurudog
OpenVpn Newbie
Posts: 7
Joined: Sun Mar 20, 2011 8:03 pm

Re: Change VPN node without having to edit client?

Post by gurudog » Mon Mar 21, 2011 6:05 pm

Ok, I got it :)

I changed the location of the VPN for my 2nd .ovpn file and saved it inside the configuration folder.

Bam! I now have a 2nd selection for my users to select and connect to inside the windows GUI.

gurudog
OpenVpn Newbie
Posts: 7
Joined: Sun Mar 20, 2011 8:03 pm

Re: Change VPN node without having to edit client?

Post by gurudog » Mon Mar 21, 2011 6:10 pm

*BTW, I did not have to recompile the OpenVPN client. My only problem was the .ovpn filenames had to be unique and in the same folder.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Change VPN node without having to edit client?

Post by maikcat » Tue Mar 22, 2011 7:17 am

ok then,

SOLVED.


michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

Locked