Fortinet's proprietary Linux client didn't work well on Debian 9. (I started using OpenFortiGUI through Debian 9, 10 and now 11 -- it has worked quite well)
Transition from Debian 10 to 11: Absolutely no change whatsoever (10 > 11 March 2021)
Debian 9 to 10 (some effort was involved)
These instructions are for Debian 10. For Ubuntu, check the developer's blog.
Add the developer's signing key (old notes; confirm with Hadler's site to ensure nothing has changed.)
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2FAB19E7CCB7F415
Add the developer's repo to apt's sources list
echo "deb https://apt.iteas.at/iteas buster main" > /etc/apt/sources.list.d/iteas.list
That's it.
If you've recently done an in-place upgrade from stretch to buster and the VPN won't connect:
Also Modify your desktop shortcut:
sudo /usr/bin/openfortigui
to: /usr/bin/openfortigui
In ~/.openfortigui/logs/vpn/[connection].log
or ~/.openfortigui/logs/openfortigui.log
you may see:
sudo: sorry, you are not allowed to preserve the environment
or
No protocol specified
OpenFortiGUI sets a sudoers permission, in /etc/sudoers.d/openfortigui
There are two optional approaches to fixing this:
1)
groups angela
visudo
(Run as su
):
bash
#includedir /etc/sudoers.d
If so, uncomment it - as this indicates it's not being processed (or copy its contents to /etc/sudoers.d/openforticustom
or visudo
to customize; as an apt upgrade of OpenFortiGUI may override your changes):
bash
includedir /etc/sudoers.d
2)
Allow a User that's Not in the Sudo Group
No need to add your user to sudo group, just to access 1 application.
As root, run:
visudo
Find:
root ALL=(ALL:ALL) ALL
Add beneath (replace angela for your username):
angela ALL=(ALL) NOPASSWD:SETENV: /usr/bin/openfortigui
If you have other NOPASSWD entries, this does not need to be concatenated to existing entries to append SETENV; you can have multiples with varying options, like so:
angela ALL=(ALL) NOPASSWD: /usr/bin/apt
angela ALL=(ALL) NOPASSWD:SETENV: /usr/bin/openfortigui
Explanation of options:
Find OpenFortiGui in your application menu and click it, it'll auto launch with zero additional steps.
bash
chattr -i /etc/resolv.conf
to unlock it. (Which also gives Network Manager the ability to fiddle with it, again.)No internet after using OpenFortiGUI:
/etc/resolv.conf
and ensure your default DNS servers came back after exiting the OpenFortiGUI application. If they're still there, simply remove the DNS added by your VPN (usually 172.xx.xx.xx or 10.xx.xx.xx)192.168.1.1
9.9.9.9
.sudo /usr/bin/openfortigui --start-vpn --vpn-name NameOfMyConnection --main-config '/home/angela/.openfortigui/main.conf'
I had an issue where I was getting a segfault:
debian kernel: [ 573.164599] traps: openfortigui[30174] general protection ip:558fd01e9ed4 sp:7fff8bd2c658 error:0
Turns out, I had changed my password days before and had forgotten -- OpenFortiGUI had my old password saved in the keyring. I simply updated it via OpenFortiGUI and was able to connect.