OpenFortiGUI


OpenFortiGUI is an open-source VPN-Client to connect to Fortigate VPN-Hardware. It is based on openfortivpn and adds an easy to use and nice GUI on top of it, written in Qt5.

Unlike other VPN-clients it is also possible to connect to multiple VPN-destinations  simultaneously. It is an replacement for the closed-source Forticlient – SSLVPN Client.

Features include:

  • Qt5 GUI
  • openfortivpn library built-in, no separate download required
  • All settings saved in text-files, so easy to share, passwords saved AES-encrypted (key can be defined as needed, GNOME keyring & KWallet support)
  • VPNs divided into local and global sections (readonly, useful for enterprise deployments to many users)
  • VPN-groups can be defined to start defined groups of VPNs at the same time
  • Trayicon with fast access to start/stop VPNs and groups
  • Multiple VPN connections possible simultaneously
  • Certificate and user/password auth supported
  • 2Factor support
  • Autostart VPNs on program startup
  • English, german, catalan (thanks wagafo@github) and japanese (thanks tsundeoku@github) language
  • Optional: KRunner Plugin for KDE5

Source & community development: https://github.com/theinvisible/openfortigui

Prebuild packages are available for following Distros:

Last Update 6.10.2022

Ubuntu 22.04:
OpenFortiGUI 0.9.8 64bit

Ubuntu 20.04:
OpenFortiGUI 0.9.8 64bit

Ubuntu 18.04:
OpenFortiGUI 0.9.8 64bit

Debian 10:
OpenFortiGUI 0.9.8 64bit

Debian 11:
OpenFortiGUI 0.9.8 64bit

You can also use our apt mirror, for instructions see: https://apt.iteas.at/

Available packages on our apt mirror: openfortigui and openfortigui-runner

Quick instruction to build from source:

  1. Install DEV-tools (on Ubuntu: build-essential, qt5-default, libssl-dev, qt5keychain-dev)
  2. git clone https://github.com/theinvisible/openfortigui.git
  3. cd openfortigui && git submodule init && git submodule update
  4. qmake && make -j4
  5. openfortigui binary is ready

Debugging

If you want to help debugging please follow the next steps to produce a debug binary.

  1. Install DEV-tools (on Ubuntu: build-essential, qt5-default, libssl-dev, qt5keychain-dev)
  2. git clone https://github.com/theinvisible/openfortigui.git
  3. cd openfortigui && git submodule init && git submodule update
  4. qmake openfortigui-project.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug && /usr/bin/make -j4
  5. openfortigui debug binary is ready

OpenFortiGUI spawns new processes for every VPN connection profile.

You can also start a VPN connection on terminal and so use gdb. For example: sudo /usr/bin/openfortigui –start-vpn –vpn-name [yourvpnname] –main-config ‘/home/[yourusername]/.openfortigui/main.conf’

Just replace [yourvpnname] with your vpn profile name and [yourusername] with your Linux username.

Used software/libraries/resources:

224 thoughts on “OpenFortiGUI

  1. GIlberto

    Hi.
    It’s a wonderful job.
    However, everytime I connected, I needed to go go konsole and set routes manually.
    Is there any way to do so via GUI?
    Thanks.

    Reply
  2. Alex Wieder

    #### FOR MINT 20 USERS ####

    I just found these steps on the issues forum for the project in github – https://github.com/theinvisible/openfortigui/issues/133

    Here’s a copy of the instructions (from Oct. 27, 2020):

    Currently found a workaround:

    run OpenFortiGUI via sudo (with root permissions)
    configure connection
    connect – now it asks certificate properly and connects
    run OpenFortiGUI again as regular user
    now it connects also here
    then used SUDO -E option from OpenFortiGUI settings and then also certificate as regular user received and now works also as regular user
    then you can delete all configuration, profiles under sudo permissions and use these under regular user only as it should be

    Reply
  3. bmolino

    Hello, hope find you well.
    On Ubuntu 22.04 there is a problem with UI ’cause ‘Connect’ doesn’t work. Also on click for connection in the main window, neither with the double click setting. Obviously the icon ‘Connect’ doesn’t work also in the contextual menu from the vpn list.
    The log is empty (last message is dated April 21st, the day of my Ubuntu update).
    openFortiGUI 0.9.5

    Reply
    1. Serjth

      This helps me after I updated Ubuntu from 18 to 22:
      Open settings file ~/.openfortigui/main.conf
      In section [main] change “sudo_preserve_env” variable from false to true.

      Reply
      1. Raphael

        Hi I’ve been facing the same issue. I have Ubuntu 22.04 when I try to connect VPN from my company does not work. I catch these errors on log:

        jun. 30 17:23:53 openfortiGUI::Debug: tiConfVpnProfile::readVpnProfiles() -> vpnprofile found: “/home//.openfortigui/vpnprofiles/VPN.conf”
        jun. 30 17:23:53 openfortiGUI::Debug: vpnManager::onClientConnected()
        jun. 30 17:23:53 openfortiGUI::Debug: client api helo command:: 0 ::name:: “VPN”
        jun. 30 17:23:54 openfortiGUI::Debug: client disconnected:: “VPN”
        jun. 30 17:23:54 openfortiGUI::Debug: vpnManager::onClientVPNStatusChanged() “VPN-” status 0
        jun. 30 17:23:54 openfortiGUI::Debug: MainWindow::onClientVPNStatusChanged:: “VPN” ::status:: 0
        jun. 30 17:23:54 openfortiGUI::Debug: VPN process “VPN” error occurred!
        jun. 30 17:23:54 openfortiGUI::Debug: VPN process “VPN” finished!

        Reply

Leave a Reply

Your email address will not be published.