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



Edited TAGs
[edited by: emmosophos at 7:38 PM (GMT -8) on 24 Nov 2022]
Parents Reply Children
No Data