Skip to content
Providing a fully qualified path in Viscosity's copy of the file fixes the issue.
Unable to stop Acrylic DNS proxy on Connection Toggle
Got a problem with Viscosity or need help? Ask here!
- Posts: 7
- Joined: Tue Oct 31, 2017 5:36 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.
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
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
Viscosity Developer
Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs
- Posts: 7
- Joined: Tue Oct 31, 2017 5:36 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.
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:
Regards,
Eric
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
This will do two things, open a webpage to our homepage, and then cancel the connection attempt.start "" https://www.sparklabs.com
echo ViscosityNoConnect
Regards,
Eric
Eric Thorpe
Viscosity Developer
Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs
Viscosity Developer
Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs
- Posts: 7
- Joined: Tue Oct 31, 2017 5:36 pm
Eric wrote:Hi Raymond,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.
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
Providing a fully qualified path in Viscosity's copy of the file fixes the issue.
5 posts
Page 1 of 1