Cisco VPN connector
Project description
pyvpnc is a Python connector for vpnc, a Cisco VPN concentrator/router client. The vpnc daemon requires elevated permissions to run; you will be prompted for your admin/sudo password if needed.
Installation
First, install vpnc. On Debian/Ubuntu:
apt-get install vpnc
On OSX:
brew install vpnc
Then install pyvpnc using pip:
pip install vpnc
Usage
from vpnc import VPNC
vpn_client = VPNC(config={
"IPSec_ID": "my IPSec ID",
"IPSec_gateway": "my.gateway.com",
"IPSec_secret": "my IPSec secret",
"Xauth_username": "my Xauth username",
"Xauth_password": "my Xauth password",
"IKE_Authmode": "psk"
})
with vpn_client.vpn():
# do stuff on the VPN!
Tests
Unit tests are in the test/ directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vpnc-0.2.0.tar.gz
(3.8 kB
view details)
Built Distributions
vpnc-0.2.0-py3-none-any.whl
(3.5 kB
view details)
vpnc-0.2.0-py2-none-any.whl
(3.5 kB
view details)
File details
Details for the file vpnc-0.2.0.tar.gz
.
File metadata
- Download URL: vpnc-0.2.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/2.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18b92cc0f11b46ee751ed0b6cdd8889d24dc5b320c7da7c792f99fa3b404d3ac |
|
MD5 | 4e9cece5573079c86bceba4bd59aaa57 |
|
BLAKE2b-256 | 8498b03de3a433222474db25046a93555bb21d65939de5ae6bd17a1a26eb53b5 |
File details
Details for the file vpnc-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: vpnc-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/2.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73cdb1113f926cecd8fbd01fb79c73d883dcb766d64000a552a33fe61481e16e |
|
MD5 | fe178be0eb22196e94ca215ce739fa28 |
|
BLAKE2b-256 | c08c498a3f5b100e13d947b8eda64410c3b37d8398832d14f6393a6d18aa225d |
File details
Details for the file vpnc-0.2.0-py2-none-any.whl
.
File metadata
- Download URL: vpnc-0.2.0-py2-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/2.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 828f9b6d04efcc7bff79ac108a4f88fbb015bb5ef69c9ddfac8861426a95402f |
|
MD5 | 93b40d1c51d290c9031f810408c8caa0 |
|
BLAKE2b-256 | a65a7d0cb0c2777328fc29857cfecd057faf4cfa29a2b6387aaf8989be54c448 |