SparkLabs Forum.

Community Help.


Unable to stop Acrylic DNS proxy on Connection Toggle

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.
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
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.
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
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.
5 posts Page 1 of 1

Copyright © 2016 SparkLabs Pty Ltd. All Rights Reserved. Privacy Policy