Add Duo Push, multi-session, kick, reconnect, and custom user-agent#32
Open
boinger wants to merge 3 commits intosamm-git:masterfrom
Open
Add Duo Push, multi-session, kick, reconnect, and custom user-agent#32boinger wants to merge 3 commits intosamm-git:masterfrom
boinger wants to merge 3 commits intosamm-git:masterfrom
Conversation
- Replace plain-text README with README.md (Markdown formatting, expanded feature list including Duo Push and multi-session support) - FAQ: fix grammar, expand FreeBSD/OS X answer, add ifconfig hint - CHANGELOG: add v0.8.0 (multi-session) and v0.8.1 (Pulse Secure/Duo) - jvpn.ini: comprehensive documentation overhaul with parameter types, defaults, and examples; add new config options for mult_session, kick, kick_string, duo, token, reconnect, user_agent, recontimeoutcount, recontimeouttimeout - Shell scripts: update shebangs from /bin/sh to /bin/bash - Add sample-script-tunnel.sh demonstrating SSH tunnel setup
Features added to jvpn.pl: - Duo Push two-factor authentication (duo=push sends push notification, duo=key prompts for Duo authentication key) - Multi-session support (mult_session=1 allows concurrent VPN sessions when the server permits it) - Session kicking (kick=1 with kick_string to forcefully terminate conflicting sessions instead of using the web UI) - Auto-reconnect after disconnect (reconnect=1 with configurable timeout count and window) - Custom user-agent string (defaults to JVPN/$sysname, auto-switches to Firefox UA when hostchecker is enabled) Code changes: - Wrap connection logic in connect_vpn() sub to support reconnection - Add reconnect_vpn() sub with timeout tracking - Reorganize imports alphabetically - Add command-line --kick_string parameter - Add $pulse_nc_dir for Pulse Secure compatibility - Improve debug output with configurable maxlength - Better error messages and "Invalid primary" credential check
… print - Add missing 'use IO::Socket::SSL qw()' import and use the SSL_VERIFY_NONE constant instead of magic string '0x00' (aligns with upstream PR samm-git#33) - Replace shell 'mkdir -p' syntax with Perl mkpath() in Duo push/key paths (2 occurrences) - Extract cont_button from response_body instead of matching against empty string (regex always failed, leaving cont_button empty in subsequent POST requests) - Remove duplicate debug-gated print identical to the unconditional print on the next line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Features
Bug fixes
Documentation