Viscosity connects but I have no internet

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

gregts

Posts: 3
Joined: Tue Apr 19, 2016 12:01 am

Post by gregts » Tue Apr 19, 2016 12:12 am
Hi!

Sorry that I am posting about a subject that already has a support article but I have tried to to everything in the article and still can't get it to work.

My windows Viscosity client connect perfectly when I run it though Parallels Dekstop on the same Mac...
Here is my log.

Can someone please help with this?
Apr 18 16:56:18: Viscosity Mac 1.6.2 (1342)
Apr 18 16:56:18: Viscosity OpenVPN Engine Started
Apr 18 16:56:18: Running on Mac OS X 10.11.4
Apr 18 16:56:18: ---------
Apr 18 16:56:18: Checking reachability status of connection...
Apr 18 16:56:18: Connection is reachable. Starting connection attempt.
Apr 18 16:56:19: OpenVPN 2.3.10 x86_64-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on Mar 2 2016
Apr 18 16:56:19: library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.09
Apr 18 16:56:26: UDPv4 link local: [undef]
Apr 18 16:56:26: UDPv4 link remote: [AF_INET]XX.XXX.XX.XXX:1194
Apr 18 16:56:27: WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Apr 18 16:56:31: [RT-AC66U] Peer Connection Initiated with [AF_INET]XX.XXX.XX.XXX:1194
Apr 18 16:56:33: TUN/TAP device /dev/tap0 opened
Apr 18 16:56:33: Initialization Sequence Completed
Apr 18 16:56:33: write to TUN/TAP : Input/output error (code=5)
Apr 18 16:56:34: write to TUN/TAP : Input/output error (code=5)
Apr 18 16:56:34: DHCP enabled on tap interface tap0
Apr 18 16:56:40: DNS mode set to: Split
Apr 18 16:56:40: WARNING: Split DNS is being used however no DNS domains are present. The DNS server/s for this connection may not be used. For more information please see: https://www.sparklabs.com/support/kb/ar ... e-present/

James

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

Post by James » Tue Apr 19, 2016 2:19 am
Hi gregts,

Please post a copy of your raw configuration file. 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.

A copy of your OpenVPN server's configuration file would also be helpful if you're in control of the server.

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

gregts

Posts: 3
Joined: Tue Apr 19, 2016 12:01 am

Post by gregts » Tue Apr 19, 2016 7:02 pm
Thanks for the reply James!

Maybe I am doing something wrong but the there is no folder within Your Home Folder/Library/Application Support/Viscosity (pls see screenshot from link below).

http://i.imgur.com/6MteQxf.png

As for the server config, I am running open vpn on my home Asus RT-AC66U router. As I said, with the same settings I connect perfectly from your windows client running on Parallels Desktop (win8) through the same Mac.
client
dev tap
# Windows needs the TAP-Win32 adapter name
# from the Network Connections panel
# if you have more than one. On XP SP2,
# you may need to disable the firewall
# for the TAP adapter.
;dev-node MyTap
proto udp
remote xx.xxx.xxx.xxx 1194
float
comp-lzo adaptive
keepalive 15 60
auth-user-pass
ns-cert-type server
<ca>
-----BEGIN CERTIFICATE-----

-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----

-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----

-----END PRIVATE KEY-----
</key>
resolv-retry infinite
nobind
and for the record below is the connection log from using your client on my win8 setup running through Parallels Desktop on my mac.
Απρ 19 2:02:48 μμ: State changed to Connecting
Απρ 19 2:02:48 μμ: Viscosity Windows 1.6.2 (1434)
Απρ 19 2:02:48 μμ: Running on Microsoft Windows 8.1 Enterprise
Απρ 19 2:02:48 μμ: Bringing up interface...
Απρ 19 2:02:48 μμ: Checking reachability status of connection...
Απρ 19 2:02:50 μμ: Connection is reachable. Starting connection attempt.
Απρ 19 2:02:50 μμ: OpenVPN 2.3.10 Windows-MSVC [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Mar 2 2016
Απρ 19 2:02:50 μμ: library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.09
Απρ 19 2:02:57 μμ: UDPv4 link local: [undef]
Απρ 19 2:02:57 μμ: UDPv4 link remote: [AF_INET]xx.xxx.xxx.xxx:1194
Απρ 19 2:02:57 μμ: WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Απρ 19 2:02:58 μμ: [RT-AC66U] Peer Connection Initiated with [AF_INET]xx.xxx.xxx.xxx:1194
Απρ 19 2:03:00 μμ: open_tun, tt->ipv6=0
Απρ 19 2:03:00 μμ: TAP-WIN32 device [client] opened: \\.\Global\{966B3166-DAA3-42F1-A391-779D83AE43AA}.tap
Απρ 19 2:03:00 μμ: Successful ARP Flush on interface [14] {966B3166-DAA3-42F1-A391-779D83AE43AA}
Απρ 19 2:03:05 μμ: Initialization Sequence Completed
Απρ 19 2:03:05 μμ: DNS set to Full.
Απρ 19 2:03:05 μμ: State changed to Connected

James

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

Post by James » Thu Apr 21, 2016 7:02 am
Hi gregts,
Maybe I am doing something wrong but the there is no folder within Your Home Folder/Library/Application Support/Viscosity (pls see screenshot from link below).
The screenshot appears to be of the wrong Library folder. You need to access the Library folder in your home directory, rather than the global Library folder on your system drive.

I'd recommend exporting the configuration from the Windows version of Viscosity (select it in the Preferences window, click on the button with a cog icon next to the Edit button, and select Export Zipped Connection), and then import this copy into the Mac version of Viscosity. This should ensure that the settings match.

If it still isn't working, try adding a route-delay, as it looks like routes could be getting added before you've been assigned an IP address by a DHCP server. For example, to add a 20 second route delay:

1. Open the Preferences window and Edit your connection
2. Click on the Advanced tab
3. On a new line in the commands box enter "route-delay 20" (without the quotes)
4. Click Save and try reconnecting

You can adjust the 20 second value to a more suited shorter time if it works.

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

gregts

Posts: 3
Joined: Tue Apr 19, 2016 12:01 am

Post by gregts » Thu Apr 21, 2016 11:41 pm
Thanks again James!

You're right. Re-tried using the Library folder in my home directory and found the config file there.
Also, exported my windows config and used in OSX, same result.

Last but not least, I changed the route-delay from 5 to 20 in the commands box and everything worked fine!!!
It now switches to a Full DNS connection. For some reason Steam could not connect, so I added the google DNS in the networking dns settings - also switched route-delay down to 10 and everything works perfectly.

Again many thanks for the assist!!
5 posts Page 1 of 1