Skip to content

Instantly share code, notes, and snippets.

@sahapasci
Created November 6, 2025 12:05
Show Gist options
  • Select an option

  • Save sahapasci/cdb908fc9c0229504ca1468494d39462 to your computer and use it in GitHub Desktop.

Select an option

Save sahapasci/cdb908fc9c0229504ca1468494d39462 to your computer and use it in GitHub Desktop.
FortiClient VPN-only Debian 13 (Trixie) Installation
#!/bin/bash
# This script downloads and installs latest FortiClient VPN-only Debian 13 (Trixie).
# It resolves the redirected download URL, installs required dependencies.
set -e # Stop on error
generic_url='https://links.fortinet.com/forticlient/deb/vpnagent'
tmp_dir=/tmp/forticlient_vpn
# Create temporary directory
mkdir -p "$tmp_dir"
# Resolve the final package URL
echo "Resolving FortiClient VPN download URL..."
url=$(curl -Ls -o /dev/null -w '%{url_effective}' "$generic_url")
# Show resolved URL
echo "Downloading package from: $url"
# Download the .deb package to the temp directory
wget -q -P "$tmp_dir" "$url"
# Install missing dependency and FortiClient VPN package
echo "Installing desktop-file-utils and FortiClient VPN..."
apt install -y desktop-file-utils "$tmp_dir"/forticlient_vpn_*.deb
# Verify installation
echo "Verifying FortiClient installation..."
dpkg -l | grep forticlient || echo "FortiClient installation failed."
echo "Installation complete."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment