This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Sophos Connect Client - DNS Issues on multiple destinations - Service issues (NCL-1383) - Workaround

Hi,

I did seee many posts about DNS server not set correctly (or not reset) in Sophos Connect 2.2 when you connect to multiple destinations via ipsec.

We did create a workaround with the following powershell script that should be executed after disconnecting or before connecting. The scripts is clearing the dns server from the sophos tap network adapter and restarts the sophos connect service, which resolves most problems.

Create this shortcut:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""C:\Scripts\Reset_Sphos_VPN.ps1""' -Verb RunAs}"

Create the below script at: C:\Scripts\Reset_Sphos_VPN_DNS.ps1

#
# Reset DNS to AUTO/DHCP for "Sophos TAP" Network Adapter - Author: F. Seefried - Seefried IT GmbH - Date: 2022-11-13
#
# Shortcut: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""C:\Scripts\Reset_Sphos_VPN_DNS.ps1""' -Verb RunAs}"
#

Get-NetAdapter | where {$_.InterfaceDescription -eq "Sophos TAP Adapter"} | Set-DnsClientServerAddress -ResetServerAddresses
Restart-Service -Name scvpn



This thread was automatically locked due to age.