Giter Site home page Giter Site logo

ovpn's Introduction

ovpn

Command line interface for OpenVPN-GUI on Windows written in Powershell. At the time of writing, OpenVPN on Windows does not have full support for CLI commands, so I wrote a small script which allows me to connect to desired .ovpn via CLI instead of right-clicking the task-tray.

Preliminary

First, download and install OpenVPN Client for Windows. Then, you need to add the directory in which the OpenVPN-GUI binaries are located on Windows to path. It is usually located at C:\Program Files\OpenVPN\bin. Additionally, download ovpn.ps1 and add it to path as well.

You also need to download the desired .ovpn files and place them in C:\Users\YOURUSERNAME\OpenVPN\config. In my ovpn script example usage below, it only works if the filename of the .ovpn files follows that of in Nordvpn's .ovpn files.

Finally, you need to have the credentials that comes along with your VPN subscription.

Usage

Once the preliminaries are done, you can run the following line in Powershell:

ovpn <country code> <udp/tcp>

and OpenVPN-GUI will select the .ovpn file with the given country code and protocol. If there are more than one file for the same country code and protocol, then ovpn.ps1 will choose one at random.

ovpn's People

Contributors

bernwo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.