Skip to content

Instantly share code, notes, and snippets.

@kelverarruda
Last active September 5, 2023 18:10
Show Gist options
  • Save kelverarruda/dbbc8ca0bee8ea5fba9f158a796369bc to your computer and use it in GitHub Desktop.
Save kelverarruda/dbbc8ca0bee8ea5fba9f158a796369bc to your computer and use it in GitHub Desktop.
Forticlient fix error config routing table failed on linux Fedora 38
#!/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

After, restart networkmanager service.

sudo systemctl restart NetworkManager.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment