Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Awkray-ven
New Contributor II

Forticlient Fortivpn does not work on linux

I'm trying to set up fortivpn and connect, and it doesn't seem to connect.

Installed version is:
forticlient_vpn_7.0.7.0246_amd64

In the GUI, it lists as connecting, and doesn't do anything, a packet capture doesn't show any traffic coming from it.

Running it via CLI gets this error:
Failed to connect to confighandler: connect(127.0.0.1:35499): error Connection refused
Failed to get config. Retry after 1 second.

If I run confighandler via sudo, then I get further, and receive this error:
Failed to connect to confighandler: connect(127.0.0.1:35499): error Connection refused
Failed to get config. Retry after 1 second.

Running an strace on confighandler while running fortivpn in another terminal, shows that confighandler has these messages.
recvmsg(67, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable)
write(58, "\1\0\0\0\0\0\0\0", 8) = 8
read(61, "\1\0\0\0\0\0\0\0", 8) = 8
fcntl(55, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(55, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(55, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/var/lib/forticlient/config.db-journal", 0x7fff54933000) = -1 ENOENT (No such file or directory)
lseek(55, 24, SEEK_SET) = 24
read(55, "\0\0\09\0\0\0\35\0\0\0\0\0\0\0\0", 16) = 16
stat("/var/lib/forticlient/config.db-wal", 0x7fff54933000) = -1 ENOENT (No such file or directory)
fstat(55, {st_mode=S_IFREG|0777, st_size=118784, ...}) = 0

Reviewing /var/lib/forticlient/config.db shows that it does not have any tables matching journal or wal (the file does exist though)

I'm unsure where to go from here, but would love to get this working...

Thanks,
Awkray-ven

5 REPLIES 5
chauhans
Staff
Staff

Hello @Awkray-ven 

As I understand that you are facing issues in connecting VPN on Linux machine.
Kindly provide below details to check further:
+ Linux OS details
+ FortiOS version
+ May I Know the working Linux machine OS version, if any?
+ Also, please provide the SSL VPN debugs

 

diag debug reset 

diagnose vpn ssl debug-filter src-addr4 x.x.x.x>>>user public IP

diag debug appl sslvpn -1

diag debug enable

 

Thanks,

Shaleni

mpeddalla
Staff
Staff

Hello @Awkray-ven 

 

-Did you test with any other Linux machine?

-Was it working fine earlier having issues now?

-Fortios version and debug could help as mentioned by Shaleni.

-On 7.0.7 forticlient there is DNS known issue for ssl vpn https://docs.fortinet.com/document/forticlient/7.0.7/linux-release-notes/254811/known-issues

 

-If you are using single wan can you try adding the wan ip address rather than FQDN of the ssl vpn.

 

Thanks 

Manasa.

 

 

Awkray-ven
New Contributor II

I'm running a Debian based Distro, installed version is 7.0.7.0246, found here https://links.fortinet.com/forticlient/deb/vpnagent (the debian VPN only forticlient)

The diag commands you provided did not run, possibly I was running them in the wrong place, or don't have the packages installed to run them.

uname -a
Linux Cyberdeck 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.38-2 (2023-07-27) x86_64 GNU/Linux


cat /etc/os-release
PRETTY_NAME="PeppermintOS"
NAME="Peppermint"
ID=peppermint
VERSION_CODENAME="bookworm"
HOME_URL="https://peppermintos.com"
SUPPORT_URL="https://sourceforge.net/p/peppermintos/pepos/"
BUG_REPORT_URL="https://sourceforge.net/p/peppermintos/pepos/"

main.log - https://pastebin.com/JTCLzgEa
confighandler.log - https://pastebin.com/46jLTpVW
fctsched.log - https://pastebin.com/fuvm7e22
sslvpn.log - https://pastebin.com/yGBy4hCg
update.log - https://pastebin.com/Hzq5G4Tz

Awkray-ven
New Contributor II

@mpeddalla your post just loaded for me.

 

I had this same version previously running last week on an install of lubuntu 22.04 lts, however I uninstalled that distro as it was providing other errors for me (I'd happily used previous lubuntu lts releases, but this one wasn't working for me)

I did at one point uninstall (using apt-purge) the forticlient software, redownloaded a new file, and reinstalled, and this issue persisted on this linux install. Then I ran a packet capture for any traffic leaving my system (over wifi), and no packets were being sent. This is when I started investigating the software itself, using strace and command line.

Unfortunately I don't have the ability at the moment to test using WAN IP, as I don't manage the VPN server that I'm attempting to connect to.

Labels
Top Kudoed Authors