Unable to stop Acrylic DNS proxy on Connection Toggle

Got a problem with Viscosity or need help? Ask here!

RaymondLC92

Posts: 7
Joined: Tue Oct 31, 2017 5:36 pm

Post by RaymondLC92 » 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
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.

Eric

User avatar
Posts: 1146
Joined: Sun Jan 03, 2010 3:27 am

Post by Eric » Wed May 23, 2018 12:04 pm
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
Eric Thorpe
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs

RaymondLC92

Posts: 7
Joined: Tue Oct 31, 2017 5:36 pm

Post by RaymondLC92 » Thu May 24, 2018 12:57 pm
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.

Eric

User avatar
Posts: 1146
Joined: Sun Jan 03, 2010 3:27 am

Post by Eric » Thu May 24, 2018 1:56 pm
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 Thorpe
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs

RaymondLC92

Posts: 7
Joined: Tue Oct 31, 2017 5:36 pm

Post by RaymondLC92 » Sun Jun 03, 2018 7:49 am
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