Skip to content

Instantly share code, notes, and snippets.

View HouIP's full-sized avatar

Hou In HouIP

View GitHub Profile
@HouIP
HouIP / sfuvpn.sh
Last active August 1, 2025 01:16
Script to connect to SFU VPN with MFA OTP autofill using 1Password and OpenFortiVPN
#!/bin/bash
set -e
# Function to check VPN connectivity
check_vpn() {
if ifconfig ppp0 &>/dev/null; then
return 0
fi
if ! pgrep openfortivpn &>/dev/null; then
return 1