Skip to main content

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.

Metadata

Release files for fortigate-vpn-login 0.5

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

Source distribution (sdist)

Source distribution for fortigate-vpn-login 0.5
File Size Uploaded Provenance Actions
fortigate-vpn-login-0.5.tar.gz 22.8 kB Without provenance Details for fortigate-vpn-login-0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fortigate-vpn-login 0.5
File Interpreter ABI Platform Actions
fortigate_vpn_login-0.5-py3-none-any.whl Python 3 none any Details for fortigate_vpn_login-0.5-py3-none-any.whl

Total release size: 46.7 kB

Release files / fortigate-vpn-login-0.5.tar.gz

Download URL fortigate-vpn-login-0.5.tar.gz
Size 22.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2773af3ea675faa3f1d72b1bc77161509d59de6374f9c8ba70678b8a7becf58f
BLAKE2b-256 checksum
How to use checksums
a9d33be348b5a9bb3efe953b425b82afba2e0b7d2a5599439c174c5eb615c463
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / fortigate_vpn_login-0.5-py3-none-any.whl

Download URL fortigate_vpn_login-0.5-py3-none-any.whl
Size 24.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2e964e198561ceeccb537f5f6f77ffd38eff0b53d745c8f44327a90eeea441c
BLAKE2b-256 checksum
How to use checksums
bc805ac5be69afd959ae9f547caf9afeb09dba51a92d5bc1163a6859541445dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Security for fortigate-vpn-login 0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5 This release

2 release files No provenance

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