config error: --push directive parameters

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

anon


Post by anon » Mon Dec 08, 2008 9:47 am
Viscosity fails to connect and reports the following error in the log:
"Options error: the --push directive should have at most 1 parameter. To pass a list of arguments as one of the parameters, try enclosing them in double quotes ("")."

Since the config has not changed since I installed Viscosity, I'm wondering why this error has not occurred until today, but I'd like to see a sample config that would work with the following config options (from Advanced tab in Preferences window):
push dhcp-option DNS 192.168.1.10
push dhcp-option DNS 192.168.1.1

anon


Post by anon » Mon Dec 08, 2008 1:48 pm
So I figured it out. Change the openvpn configuration file to include the following lines
push "dhcp-option DNS 192.168.1.10"
push "dhcp-option DNS 192.168.1.1"

The config file is usually located at
/Users/<userid>/Library/Application Support/Viscosity/OpenVPN/1/config.conf

James

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

Post by James » Mon Dec 08, 2008 4:52 pm
Just in addition:

You only need to use the "push" syntax from the server side. If you're wanting to specify the DNS servers client side (in Viscosity) you can drop the push command altogether and just have:

dhcp-option DNS 192.168.1.10
dhcp-option DNS 192.168.1.1

Cheers
James
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
3 posts Page 1 of 1