Proxy Settings

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

lid

Posts: 2
Joined: Sun Apr 17, 2016 5:10 pm

Post by lid » Sun Apr 17, 2016 5:20 pm
ianiv wrote:
The last suggestions didn't help.
I have the same problem in 1.6.2. Actually, I have two problems in 1.6.2:
1. When I try to add the
Code: Select all
#viscosity proxy-http address port
stanza to the "Extra OpenVPN configuration commands" box in Preferences->Advanced, and click Save, the config doesn't actually save. After saving and closing, and reopening the config, the line doesn't appear.

2. When I manually edit the relevant config.conf and start the connection, I get the same issue as ianiv; namely: [/list]
Code: Select all
$ scutil --proxy
<dictionary> {
}
I also verified in my log:
Code: Select all
Apr 17 14:06:05: DNS mode set to: Full
Context: like ianiv, I'm trying to set a systemwide proxy setting after connecting to a VPN. For some reason, the system proxy settings entered in System Preferences->Network->Advanced->Proxies are not respected while connected to a Viscosity VPN.

James

User avatar
Posts: 2313
Joined: Thu Sep 04, 2008 9:27 pm

Post by James » Tue Apr 19, 2016 3:25 am
Hi lid,

I've split this post off into its own topic as it's a little different to the original topic. A few comments:

1. Please try using the "dhcp-option HTTPPROXY address:port" instead. This is the approach we recommend using, and it can also be pushed from the OpenVPN server if needed. More information can be found at:
https://www.sparklabs.com/forum/viewtop ... 5711#p5700

2. The option will be saved to the configuration, however it won't appear again in the Advanced section. The reasoning behind this is largely historical, and we'll probably be adding a GUI for the options in the future. You may need to re-add the command when making additional changes. You can confirm your proxy command was added by viewing the raw configuration file in a text editor. Your connection’s raw configuration file can be found at: Your Home Folder/Library/Application Support/Viscosity/OpenVPN/#/config.conf

The Library folder is hidden under OS X. To get to it you'll need to open the "Go" menu in the Finder while holding down the Option key on your keyboard and click the Library item. Your Library folder will open.

3. Please note that if you opt to directly edit your connection's config.conf file you'll need to restart Viscosity to force the file to be re-read in and parsed. Viscosity will maintain a cache of the configuration and so making direct changes may not be reflected in subsequent connection attempts until the changes are read in.

4. Adding proxy settings to your computer's normal network interface will not impact the VPN connection (as it is a different hidden virtual interface).

Cheers,
James
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs

lid

Posts: 2
Joined: Sun Apr 17, 2016 5:10 pm

Post by lid » Tue Apr 19, 2016 3:48 am
Thanks, the dhcp-option stanzas worked for me. Perhaps this could be documented somewhere, like at https://www.sparklabs.com/support/kb/ar ... -commands/
3 posts Page 1 of 1