Skip to main content

Uses openconnect to connect to Fortinet VPNs, with extra features

Project description

fortigate-vpn-login

Uses openconnect to connect to Fortinet VPNs, with extra features. This was created because sometimes we don't want to use the Forticlient program, or just want a background daemon working for us.

So why not use only openconnect? Because there's no proper SAML / OAuth2 support on it, so I decided to do a python wrapper to extract the SVPNCOOKIE from the browser workflow and use it on openconnect.

Usage

To configure this utility on an interactive mode, run:

fortigate-vpn-login --configure

To initiate the SAML workflow on a fortigate ssl vpn server:

fortigate-vpn-login -s https://vpn-server.example.com

To get help and more options:

fortigate-vpn-login -h

Contents

Setup and usage for local development

Make a virtual environment:

python3 -m venv venv
source venv/bin/activate
pip install -e .

Note that this will also install the local dependencies, which might change after some time. If needed, you can run pip install -e . again to reinstall the updated dependencies anytime.

Project details


Release history Release notifications | RSS feed

This version

0.5

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fortigate-vpn-login-0.5.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fortigate_vpn_login-0.5-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

Details for the file fortigate-vpn-login-0.5.tar.gz.

File metadata

  • Download URL: fortigate-vpn-login-0.5.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for fortigate-vpn-login-0.5.tar.gz
Algorithm Hash digest
SHA256 2773af3ea675faa3f1d72b1bc77161509d59de6374f9c8ba70678b8a7becf58f
MD5 f11bb0c69d5fa48e975522894102c41f
BLAKE2b-256 a9d33be348b5a9bb3efe953b425b82afba2e0b7d2a5599439c174c5eb615c463

See more details on using hashes here.

File details

Details for the file fortigate_vpn_login-0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for fortigate_vpn_login-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b2e964e198561ceeccb537f5f6f77ffd38eff0b53d745c8f44327a90eeea441c
MD5 94846207ea8dfee9ec16f9621771dec3
BLAKE2b-256 bc805ac5be69afd959ae9f547caf9afeb09dba51a92d5bc1163a6859541445dd

See more details on using hashes here.

Supported by

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