How ahmetyasarnet/strongswantoken works
This repository provides a small FortiToken-enabled IPsec connection workflow for Ubuntu: a user enters a one-time code, the connect script stages it for the patched strongSwan plugin, and strongSwan completes XAuth with the FortiGate and establishes the tunnel. The example swanctl configuration supplies connection and credential settings; a separate script closes the connection. The graph follows relationships documented in the README; source excerpts were not available, so implementation details beyond those statements are omitted.
Main entry points: forti-baglan Connect script · forti-kes Disconnect script · forti.conf.example swanctl configuration
Components 9
User commands
- Connect script
bin/forti-baglan - Disconnect script
bin/forti-kes
XAuth integration
- One-time code file
- Patched XAuth plugin
VPN connection
- swanctl configuration
config/forti.conf.example - strongSwan daemon
- Established VPN tunnel
Other components
- Administrator
- FortiGate
Connections 11
- Administrator → Connect script: enters code
README.md - Connect script → One-time code file: writes code
README.md - Connect script → strongSwan daemon: initiates via swanctl
README.md - swanctl configuration → strongSwan daemon: configures
README.md - FortiGate → strongSwan daemon: requests X_CODE
README.md - strongSwan daemon → Patched XAuth plugin: dispatches X_CODE
README.md - Patched XAuth plugin → One-time code file: reads and deletes
README.md - strongSwan daemon → FortiGate: authenticates with code
README.md - strongSwan daemon → Established VPN tunnel: establishes
README.md - Administrator → Disconnect script: requests disconnect
README.md - Disconnect script → strongSwan daemon: closes connection
README.md