Skip to main content

Cisco VPN connector

Project description

https://badge.fury.io/py/vpnc.svg

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


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.1.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page