Skip to content

Instantly share code, notes, and snippets.

@SydoxX
Last active October 17, 2024 07:44
Show Gist options
  • Save SydoxX/f40a9d4d7af414049b6e07092e8bbc2b to your computer and use it in GitHub Desktop.
Save SydoxX/f40a9d4d7af414049b6e07092e8bbc2b 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
@jvanoosterom
Copy link

jvanoosterom commented Sep 20, 2024

ubuntu 24, forticlient 7.0.0.0018, reboot was needed
thanks!

@jmlipari
Copy link

jmlipari commented Oct 1, 2024

ubuntu 24, forticlient 7.0.0.0018, reboot was not needed.
Thank you!! you save my day

@PabloGaudard
Copy link

Reboot was needed. My hero, thanks!

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