Skip to content

Instantly share code, notes, and snippets.

@jhelios
Forked from SydoxX/forti-fix.sh
Created August 28, 2023 19:13
Show Gist options
  • Save jhelios/5c8812a7fe80d4b399843a97ee7743ed to your computer and use it in GitHub Desktop.
Save jhelios/5c8812a7fe80d4b399843a97ee7743ed to your computer and use it in GitHub Desktop.
Fixes Forticlient 7.0.7
#!/bin/bash
# version 2 thanks to @dhx-mike-palandra
echo "Creating /etc/NetworkManager/conf.d/99-forticlient.conf..."
sudo cat > /etc/NetworkManager/conf.d/99-forticlient.conf << 'EOF'
[keyfile]
unmanaged-devices=interface-name:~vpn*,type:tun
EOF
if [ $? -eq 0 ]
then
echo "Successfully created config file. VPN connection should work now."
else
echo "Failed to create config file! Try running this script with root permissions."
fi
@jhelios
Copy link
Author

jhelios commented Aug 28, 2023

Works on Kali Linux and Debian-based systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment