This is on Linux (WSL2) using the command lineI have installed the client following the instructions for my OS from this page: https://repo.fortinet.com
Everything seemed to be OK but the client is reporting the below error when I try to edit (create) a new profileFortinet SSLVPN is unavailable:
FortiClient VPN Trial has expired. Please contact your administrator or connect to EMS for license activation.
I am not the admin but a remote user for a business partner network.The windows client is working fine but due to their setup injecting a wrong DNS server in my TCP stack settings I can not use it and I am now trying to connect via WSL in order to avoid this problem
That error means that you installed the EMS-managed version of FortiClient. It must be registered with your company’s EMS server within 30(?) days, otherwise it disables itself. So either your company needs to guide you through the registration, or you need to uninstall this version and download the free, VPN-only, version of FortiClient. I don’t know all of the places where it’s distributed from, but one of them is here - https://www.fortinet.com/support/product-downloads#vpn .
Managed to get it working, here are my notes
My best regards to the Fortinet developers or the people who write their docs -poor work like this makes sure others are well paid . There has to be a sufficiently large number of incompetent people in the industry for others to get very well paid without being stellar.
Enable GUI support for your Linux machine
[https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps](https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps)
you need this step because at some point the client will ask you to provide the password to unlock the keyring
Enable systemctl in WSL2
**Ensuring you are on the right WSL version**
This change is only available in the Microsoft Store version of WSL version 0.67.6 and higher. You can check your version number by running wsl --version. If that command fails then you are running the in-Windows version of WSL and need to upgrade to the Store version.
This version of WSL is now available in the Microsoft Store to users on Windows Insiders build for initial testing, and then after a few weeks we will make it available to all users to ensure quality. You can run wsl --update to check for any WSL updates.
If you are not on Windows Insiders and want to use it immediately, you can download the latest release from the WSL release page.
**Set the systemd flag set in your WSL distro settings**
You will need to edit the wsl.conf file to ensure systemd starts up on boot.
Add these lines to the /etc/wsl.conf (note you will need to run your editor with sudo privileges, e.g: sudo nano /etc/wsl.conf):
\[boot\]
systemd=true
And close out of the nano editor using CTRL+O to save and CTRL+X to exit.
**Final steps**
With the above steps done, close your WSL distro Windows and run wsl.exe --shutdown from PowerShell to restart your WSL instances. Upon launch you should have systemd running. You can check this with the command systemctl list-unit-files --type=service which should show your services’ status.
From <[https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/](https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/)\>
install the Forticlient from their site
There is a managed and unmanaged Forticlient -you need the unmanaged one-free version aka VPN client
sudo dpkg -I forticlient\_vpn\_7.0.7.0246\_amd64.deb
Make sure the service is started
systemctl unmask forticlient.service
systemctl enable forticlient.service
systemctl start forticlient.service
From <https://community.fortinet.com/t5/Support-Forum/Forticlient-on-Linux-Javascript-error/td-p/39317>
Thank you that worked
I am now having issues with using it
When I first try to create a profile, after collecting all the info the client is failing with
Error: Failed to connec with websocket server.
DONE
After that is I try again fortivpn connect <profile-name>
I get a Failed to get config.... and Interna error: get configuration failed.
I can’t find instructions on how to use this client
Are there any?
Thank u so much. i am using arch and installed vpn version from aur. the only thing needed it to work was to start the service
this client is a nightmare … I uninstall it and then install it back and now it is again giving me the same message
might want to create windows vm on openbox for use with this firm…