Viscosity loses connection after 70 seconds

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

AviD

Posts: 2
Joined: Thu Feb 18, 2016 8:00 pm

Post by AviD » Thu Feb 18, 2016 8:28 pm
Hi,
I've just updated to version 1.6 and got strange error. Viscosity loses connection after 70 (or may be 69) seconds.
I have noticed that after 70 seconds some changes appears in network configuration.
Help me please. There are some details below.

ifconfig after connection:
Code: Select all
tap0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	ether a6:8f:eb:bc:73:8f
	inet 10.222.0.2 netmask 0xffffff00 broadcast 10.222.0.255
	media: autoselect
	status: active
	open (pid 78062)
ifconfig after 70 seconds:
Code: Select all
tap0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	ether a6:8f:eb:bc:73:8f
	inet 10.222.0.2 netmask 0xffffff00 broadcast 10.222.0.255
	inet 169.254.128.223 netmask 0xffff0000 broadcast 169.254.255.255
	media: autoselect
	status: active
	open (pid 78062)
viscosity config:
Code: Select all
#-- Config Auto Generated By Viscosity --#

#viscosity dnssupport true
#viscosity name ap-net
#viscosity startonopen true
#viscosity usepeerdns true
#viscosity dns automatic
#viscosity ipv6 false
#viscosity dhcp true
remote xx.xx.xx.xx 22001 udp
persist-key
persist-remote-ip
comp-lzo yes
pull
fragment 1460
ca ca.crt
dev tap
persist-tun
cert cert.crt
tls-client
key key.key
persist-local-ip
tun-mtu 1500
route 172.20.0.0 255.255.255.0
sndbuf 131072
mssfix
lport 53380
comp-noadapt
cipher AES-256-CBC
keysize 256
route-method exe
rcvbuf 131072
rport 22001
keepalive 5 40
Thanks,
Alex

James

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

Post by James » Fri Feb 19, 2016 2:09 am
Hi Alex,

Either unticking the "Enable DHCP" checkbox for your connection (under the General tab when editing your connection in Viscosity), or updating to the latest beta version, should do the trick.

Instructions for enabling beta updates can be found at:
https://www.sparklabs.com/forum/viewtop ... &t=34#p134

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

AviD

Posts: 2
Joined: Thu Feb 18, 2016 8:00 pm

Post by AviD » Fri Feb 19, 2016 11:39 pm
Hi James
Thank you. Now everything is ok.

analogue

Posts: 1
Joined: Sat Feb 27, 2016 3:10 am

Post by analogue » Sat Feb 27, 2016 3:18 am
I have the same problem, after around 1 minute without any activity, my VPN tunnel is not working anymore.

Not sure if it's related but in the log I have this line:
Feb 26 11:16:32: Options error: option 'keepalive' cannot be used in this context ([PUSH-OPTIONS])
I'm running 1.6.2b1 (1333) (Same with problem since 1.6)

How can I rollback to 1.5?

James

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

Post by James » Mon Feb 29, 2016 10:01 am
Hi analogue,

I'm afraid your drop outs are caused by an incorrect server configuration setup - nothing related to the changes in the update. You'll get the same dropouts with any older version of Viscosity/OpenVPN.

Based off the error message your server is directly attempting to push the "keepalive" command, which is incorrect. It should simply be setting it on the server, which causes the corresponding ping/ping-restart values to be pushed to clients. You should contact your VPN Provider to correct the setup.

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