Skip to content

A python script that generates an .ovpn file after building client keys.

Notifications You must be signed in to change notification settings

benhosmer/ovpn-generate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ovpn-generate

A python script that generates an .ovpn file after building client keys.

You can build client keys with OpenVPN:

. /etc/openvpn/easy-rsa/2.0/vars
. /etc/openvpn/easy-rsa/2.0/build-key client

You can remove client access:

. /etc/openvpn/easy-rsa/2.0/vars
. /etc/openvpn/easy-rsa/2.0/revoke-full client

After generating new client keys, you can read them all at once and populate the .ovpn file:

# cp /etc/openvpn/easy-rsa/keys/client.* keys/
# python ovpn-gen.py client "123.456.78.90 1194" **Use quotes on ip and port**

A client.ovpn file will then be created. Distribute this to your user and they can connect to the VPN server.

Tunnelblick is an OS X client that users can use to connect.

Windows and Linux users also have client programs that they can use too.

Apache 2.0 License

About

A python script that generates an .ovpn file after building client keys.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages