


The version of the FortiClient VPN and the stored profile are checked in the detection rule (check.ps1). The folder should then look like this: Customize detection rule We also pack the extracted MSI into the template. Then run the EXE and copy the MSI from the %temp% directory out. You can do that here Download the current EXE of the "FortiClient VPN only". Now all we have to do is extract the current MSI from the installation. $PackageName = "FortiClientVPN" $ConfigPW = "Kateoih785" # insert your password here! Code language: PowerShell ( powershell ) Extracting the MSI of the Forti Client VPN In addition, you must enter the defined password in the "install.ps1" file in the second line ($ConfigPW).

It's best to name the backup file you just created "nf" and put it in the downloaded template. Simply select the cog wheel in the top right, Backup, a storage location and set a password. You can trigger the export in the client itself in the settings. Extracting the MSI of the Forti Client VPNįirst we create and export the desired configuration of the FortiClient.I changed this setting as well for IP version 6. So now the VPN has the lower number (higher priority) and is used first to resolve the DNS names. This number is higher than the value that VPN is using (25). To fix this, I modified the settings (Ethernet adapter > Properties > Internet Protocol Version 4 > Properties > Advanced) and changed from Automatic metric to a hard-coded value of 120. But when on wifi, the VPN had higher priority so it went out over VPN to resolve the DNS successfully. This meant that when on Ethernet, it was trying to resolve DNS locally, which failed. I found that my priority order (specified by the Interface Metric) was Ethernet, VPN, then Wifi. Using PowerShell command: Get-NetIPInterface | Sort-Object Interfacemetric. It says that there's a priority order in which Windows will try to resolve DNS names. But when connected via wifi it was resolving DNS names. I have a resolution! Thanks to each of you that replied and gave me clues of where to look!Īfter running some tracert and nslookup commands I found that while wired, I was not able to resolve DNS names, only IP addresses.
