Hello everyone,
after working for month with an older version of Forticlient with a "fix-dns"-script (mainly using scutil to add new ServerAddresses to name lookup), the newer version of Forticlient keeps on disconnecting me, when executing the very same script which worked before. I tried a little bit back and forth, but could not find a solution on my own.
My Script which worked perfectly before
#!/bin/bash
scutil <<EOF
d.init
d.add ServerAddresses 8.8.8.8 <the vpn dns server ip-address>
set State:/Network/Service/forticlientsslvpn/DNS
quit
EOF
After connecting to my destination vpn, the script was executed with root privileges. I could ping e.g. google.com and it worked. Because of some unfortunate circumstances I had to install the new forticlient 6.2. After that, the script did not work anymore. So I tried to find an older version: After uninstalling 6.2 and re-installing 6.0.6, still my dns-fixing script does not work anymore.
Then I tried doing the steps manually. I could see, that my script did not change the dns settings anymore. In conclusion I did the steps manually and as soon as I use the command "set State:/Network/Service/forticlientsslvpn/DNS" my fortclient drops the connectoin with the message "The VPN connection terminates unexpectedly! (Error Code: -113)"
It would be great if someone can help me. Maybe there is a way to add different configurations.
Many thanks in advance
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1759 | |
1116 | |
766 | |
447 | |
242 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.