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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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