GithubHelp home page GithubHelp logo

mremotengopenvpn's Introduction

mRemoteNG OpenVPN External tool

Synopsis

Connect to OpenVPN via mRemoteNG external tool.

Description

  • Automatically connect to the right OpenVPN configuration before attempting to connect to the RDP.
    • Can detect if OpenVPN is already running with the right configuration.
  • When connecting, the script will try to read the logfile and close when connected. // TODO : Stop if error
    • If not able to access the logfile, then wait 15 sec.
  • Automaticlly disconnect the VPN when the RDP connection is closed.
    • Before disconnecting the VPN, the script can check if there are others connected session in mRemoteNG still needing the VPN.

Configuration

External Tool

The Userfield is used to pass parameters.
Two external tools are needed, one to connect and another to disconnect.
They must have the option 'Wait for exit' enabled :

Connection :

"path\to\file\RDPOpenVPN.ps1" -u %USERNAME% -p %PASSWORD% -config %USERFIELD%

Disconnection :

"path\to\file\RDPOpenVPN.ps1" -deco -config %USERFIELD%

Session Configuration

Userfield should contain the OpenVPN configuration name and -askdeco if needed.

Before external tool = Connection
After external tool = Disconnection


PS: OpenVPN folder should be added in PATH or the folder location must be added in the script. PPS: Enable silent connection in OpenVPN-gui.


PARAMETER
INFO
-deco Used for disconnection.
-askdeco Will prevent the disconnection if there are other connected session in mRemoteNG with the same onfig.
-vpn <string> For future improvement, if more vpn can be added.
-config <string> The name of the OpenVPN config.
-u <string> Used to retrieve the username from mRemoteNG.
-p <string> Used to retrieve the password from mRemoteNG.
/!\ Special Character Escaping /!\. Check doc for more info.
-w <int> Set a wait time in sec if the script was not able to find the VPN log. Default is 15 sec.

I lost the game.

mremotengopenvpn's People

Contributors

t3los avatar

Stargazers

 avatar Dustin Hall avatar Jason Burton avatar  avatar Oscar Hermoso avatar  avatar FSCorrupt avatar Aelfa avatar Bruno Miguel Silva Alves avatar  avatar Savino Basanisi avatar Dimitrij avatar

Watchers

Neustradamus avatar  avatar  avatar

mremotengopenvpn's Issues

Help with path in script

Can You add path to openvpn-gui to script ?
Don't wanna add this to PATH in windows.
And cannot add in script - it show error
"C:\Program : name "C:\Program" not recognized as cmdlet name...."

Exit

after writting words
"Initialization Sequence Completed "
script didnot exit

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.