Skip to content
config error: --push directive parameters
Got a problem with Viscosity or need help? Ask here!
-
anon
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
"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
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
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
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
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
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
3 posts
Page 1 of 1