Skip to main content

pyvpnc

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.

Release files for vpnc 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vpnc 0.2.0
File Size Uploaded
vpnc-0.2.0.tar.gz 3.8 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for vpnc 0.2.0
File Interpreter ABI Platform
vpnc-0.2.0-py3-none-any.whl Python 3 none any Details
vpnc-0.2.0-py2-none-any.whl Python 2 none any Details

Total release size: 10.8 kB

Release files / vpnc-0.2.0.tar.gz

Download URL vpnc-0.2.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
18b92cc0f11b46ee751ed0b6cdd8889d24dc5b320c7da7c792f99fa3b404d3ac
BLAKE2b-256 checksum
How to use checksums
8498b03de3a433222474db25046a93555bb21d65939de5ae6bd17a1a26eb53b5
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / vpnc-0.2.0-py3-none-any.whl

Download URL vpnc-0.2.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73cdb1113f926cecd8fbd01fb79c73d883dcb766d64000a552a33fe61481e16e
BLAKE2b-256 checksum
How to use checksums
c08c498a3f5b100e13d947b8eda64410c3b37d8398832d14f6393a6d18aa225d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / vpnc-0.2.0-py2-none-any.whl

Download URL vpnc-0.2.0-py2-none-any.whl
Size 3.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
828f9b6d04efcc7bff79ac108a4f88fbb015bb5ef69c9ddfac8861426a95402f
BLAKE2b-256 checksum
How to use checksums
a65a7d0cb0c2777328fc29857cfecd057faf4cfa29a2b6387aaf8989be54c448
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2.0 This release

3 release files

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page