Unable to stop Acrylic DNS proxy on Connection Toggle
Posted: Tue May 22, 2018 10:07 pm
I use Acrylic DNS proxy to handle DNS requests for my primary VPN connection however for my secondary work VPN connection I need the DNS proxy to be off.
Previously I had this configured using the existing Acrylic batch files (the code is simple and included here):
StopAcrylicServiceSilent.bat
The service doesn't start or stop upon disconnection and connection however resulting in failed DNS requests until I manually stop\start the service.
Normally launching these scripts presents a UAC prompt and successfully terminates\starts the service, however even with Viscosity running as an administrator the scripts fail entirely. The Silent/Non-Silent variants both have the same outcome.
Previously I had this configured using the existing Acrylic batch files (the code is simple and included here):
StopAcrylicServiceSilent.bat
Code: Select all
StartAcrylicService.bat
@Echo Off
AcrylicController.exe StopAcrylicService
Code: Select all
I configure it like so in the viscosity preferences for the connection:@Echo Off
AcrylicController.exe StartAcrylicService
The service doesn't start or stop upon disconnection and connection however resulting in failed DNS requests until I manually stop\start the service.
Normally launching these scripts presents a UAC prompt and successfully terminates\starts the service, however even with Viscosity running as an administrator the scripts fail entirely. The Silent/Non-Silent variants both have the same outcome.