A simple wrapper around Windows rasdial.exe
program to help manage a VPN connection
pyrasdialer can be used to establish your VPN connection then monitor that connection (reconnecting if dropped) and disconnect after a specified period of time
If running directly with python:
- Python 2.7
- A VPN provider and a configured VPN connection
If running Windows standalone (pyinstaller) version:
- A VPN provider and a configured VPN connection
Read the pyrasdialer.ini
for details on how to configure pyrasdialer. At a minimum you will need to set the following values:
vpn_connection_name
- with the name of your VPN connectionserver_list
- with VPN server (or servers) you wish to useusername
andpassword
- with the VPN username and password
pyrasdialer also requires access to your RAS phonebook file. It will make a copy of the relevant VPN details into a temporary phonebook file and use that temporary phonebook when calling rasdial.exe
usage: pyrasdialer [-h] [-v] [-c CONFIGFILE]
A wrapper around rasdial.exe to randomize server, connect, and monitor a VPN connection
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-c CONFIGFILE, -config CONFIGFILE
path to configuration file to use (default = ./pyrasdialer.ini)