Skip to content

Instantly share code, notes, and snippets.

@SydoxX
Last active January 13, 2026 08:15
Show Gist options
  • Select an option

  • Save SydoxX/f40a9d4d7af414049b6e07092e8bbc2b to your computer and use it in GitHub Desktop.

Select an option

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
@gcharalampous
Copy link
Copy Markdown

Any luck with Fedora 39?

@parth-io
Copy link
Copy Markdown

parth-io commented Nov 9, 2023

Hi all, if you are facing issues with Forti's own client, I can recommend openfortivpn

@gcharalampous
Copy link
Copy Markdown

Hi all, if you are facing issues with Forti's own client, I can recommend openfortivpn

Unfortunately, I need the SAML Login which upon my knowledge is not supported by openfortivpn.

@parth-io
Copy link
Copy Markdown

parth-io commented Nov 9, 2023

You can try openfortivpn-webview. openfortivpn has a link to SAML in their README

@evgzakharov
Copy link
Copy Markdown

Thanks! Ubuntu 23.10 works!

@AdamZajler
Copy link
Copy Markdown

Dosen't work on ubuntu 23.10 / FortiClient VPN 7.2.2.0753 :(

@guboi
Copy link
Copy Markdown

guboi commented Jan 25, 2024

Works on kali 2023.4 . Thank you very much !

@Zonkil9
Copy link
Copy Markdown

Zonkil9 commented Feb 19, 2024

The script worked perfectly with FortiClient VPN 7.0.7.0246 but it does not work with version 7.2.2.0753. My OS is Debian 12.

@jvanoosterom
Copy link
Copy Markdown

jvanoosterom commented Sep 20, 2024

ubuntu 24, forticlient 7.0.0.0018, reboot was needed
thanks!

@jmlipari
Copy link
Copy Markdown

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
Copy Markdown

Reboot was needed. My hero, thanks!

@tanvir-152
Copy link
Copy Markdown

Thanks it worked for me on fedora release 41 version! needed a restart of the network manager though

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