Page 1 of 1

Unable to stop Acrylic DNS proxy on Connection Toggle

Posted: Tue May 22, 2018 10:07 pm
by RaymondLC92
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
Code: Select all
@Echo Off
AcrylicController.exe StopAcrylicService
StartAcrylicService.bat
Code: Select all
@Echo Off
AcrylicController.exe StartAcrylicService
I configure it like so in the viscosity preferences for the connection:

Image

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.

Re: Unable to stop Acrylic DNS proxy on Connection Toggle

Posted: Wed May 23, 2018 12:04 pm
by Eric
Hi Raymond,

Try clearing the scripts and then browsing to the scripts again to select them to ensure they haven't become damaged or missing as a first step, remember to Save the connection after you do this.

Regards,
Eric

Re: Unable to stop Acrylic DNS proxy on Connection Toggle

Posted: Thu May 24, 2018 12:57 pm
by RaymondLC92
Thanks for the reply Eric,

Unfortunately clearing them and resetting them doesn't seem to make a difference.

I did so with both the Silent and Non-Silent variants of the script and neither were triggered on connect/disconnect.

Raymond.

Re: Unable to stop Acrylic DNS proxy on Connection Toggle

Posted: Thu May 24, 2018 1:56 pm
by Eric
Hi Raymond,

Are you able to naviage to %appdata%\Viscoisty\OpenVPN, here you can find the directory for this connection (it should be the most recently modified), and then double click the batch file to confirm it's working.

You can also double check Viscosity is correctly executing scripts by creating a new one with the following contents and setting it as your Before Connect script:
Code: Select all
start "" https://www.sparklabs.com
echo ViscosityNoConnect
This will do two things, open a webpage to our homepage, and then cancel the connection attempt.

Regards,
Eric

Re: Unable to stop Acrylic DNS proxy on Connection Toggle

Posted: Sun Jun 03, 2018 7:49 am
by RaymondLC92
Eric wrote:
Hi Raymond,

Are you able to naviage to %appdata%\Viscoisty\OpenVPN, here you can find the directory for this connection (it should be the most recently modified), and then double click the batch file to confirm it's working.

Regards,
Eric
Thank you Eric, this inadvertently fixes my problem! I didn't realize that the Batch files were being copied to a new directory, this prevents them from being able to find the AcrylicController.exe as it is not in the current directory and is no longer part of my path.

Providing a fully qualified path in Viscosity's copy of the file fixes the issue.