Using DD-WRT/OpenVPN

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

super_kev

Posts: 18
Joined: Fri Nov 14, 2008 3:05 am

Post by super_kev » Fri Nov 14, 2008 3:19 am
I've successfully created the keys/certs/etc. that are needed for OpenVPN and have configured my router (running DD-WRT) based on this tutorial: http://www.dd-wrt.com/phpBB2/viewtopic. ... on&start=0.

I created a OpenVPN conf file like this:
Code: Select all
remote serveripaddresshere 1194 

client 
remote-cert-tls server 
dev tun0 
proto udp 
resolv-retry infinite 
nobind 
persist-key 
persist-tun 
float 

ca ca.crt 
cert client1.crt 
key client1.key
...and then imported it into Viscosity. When I clicked connect, Viscosity 's CPU skyrocketed, and put all four processors at 100%, making the system sluggish, building a huge VM file, and taking me about one minute to finally get the menu open and disconnect. This is a small portion of the log from the details window.
Code: Select all
Thu Nov 13 08:11:23 2008: SE_WAIT[5
Thu Nov 13 08:11:23 2008:  event_wait returned 1
Thu Nov 13 08:11:23 2008: I/O WAIT status=0x0080
Thu Nov 13 08:11:23 2008: TLS: tls_multi_process: i=0 state=S_PRE_START
Thu Nov 13 08:11:23 2008: TLS: tls_process: chg=0 ks=S_PRE_START lame=S_UNDEF to_link->len=0 wakeup=604800
Thu Nov 13 08:11:23 2008: ACK reliable_can_send active=1 current=0 : [1] 0
Thu Nov 13 08:11:23 2008: ACK reliable_send_timeout 2 [1] 0
Thu Nov 13 08:11:23 2008: TLS: tls_process: timeout set to 1
Thu Nov 13 08:11:23 2008: TLS: tls_multi_process: i=1 state=S_INITIAL
Thu Nov 13 08:11:23 2008: TLS: tls_multi_process: i=2 state=S_UNDEF
Thu Nov 13 08:11:23 2008: SE_RESET
Thu Nov 13 08:11:23 2008: SE_CTL rwflags=0x0001 ev=6 fast=1 cap=1024 maxfd=-1 arg=0x00057ce4
Thu Nov 13 08:11:23 2008: SE_CTL rwflags=0x0002 ev=5 fast=1 cap=1024 maxfd=6 arg=0x00057cd8
Thu Nov 13 08:11:23 2008: I/O WAIT T?|T?|SR|Sw [1/30834]
Thu Nov 13 08:11:23 2008: SE_WAIT_FAST maxfd=6 tv=1/30834
Thu Nov 13 08:11:23 2008: SE_WAIT[5
Thu Nov 13 08:11:23 2008:  event_wait returned 1
Thu Nov 13 08:11:23 2008: I/O WAIT status=0x0080
Thu Nov 13 08:11:23 2008: TLS: tls_multi_process: i=0 state=S_PRE_START
Thu Nov 13 08:11:23 2008: TLS: tls_process: chg=0 ks=S_PRE_START lame=S_UNDEF to_link->len=0 wakeup=604800
Thu Nov 13 08:11:23 2008: ACK reliable_can_send active=1 current=0 : [1] 0
Thu Nov 13 08:11:23 2008: ACK reliable_send_timeout 2 [1] 0
Thu Nov 13 08:11:23 2008: TLS: tls_process: timeout set to 1
Thu Nov 13 08:11:23 2008: TLS: tls_multi_process: i=1 state=S_INITIAL
Thu Nov 13 08:11:23 2008: TLS: tls_multi_process: i=2 state=S_UNDEF
Thu Nov 13 08:11:23 2008: SE_RESET
Thu Nov 13 08:11:23 2008: SE_CTL rwflags=0x0001 ev=6 fast=1 cap=1024 maxfd=-1 arg=0x00057ce4
Thu Nov 13 08:11:23 2008: SE_CTL rwflags=0x0002 ev=5 fast=1 cap=1024 maxfd=6 arg=0x00057cd8
Thu Nov 13 08:11:23 2008: I/O WAIT T?|T?|SR|Sw [1/30834]
Thu Nov 13 08:11:23 2008: SE_WAIT_FAST maxfd=6 tv=1/30834
Thu Nov 13 08:11:23 2008: SE_WAIT[5
I'm at a loss as to what's going on, as I have not used OpenVPN before. Any ideas?

super_kev

Posts: 18
Joined: Fri Nov 14, 2008 3:05 am

Post by super_kev » Mon Nov 17, 2008 3:02 am
Ok just to answer my own question: the config file was wrong for some reason. I decided to modify a OpenVPN client sample file and everything works great.

However, I found a bug in Viscosity: when you have the details window open with a connection, and then you delete that connection (from the prefs), this programming error will pop up:
ViscositySnap.png
ViscositySnap.png (22.58 KiB) Viewed 13120 times

James

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

Post by James » Tue Nov 18, 2008 1:12 am
Glad to hear you got it working.
However, I found a bug in Viscosity
Thanks for the notification - that will certainly be fixed up for the next release!

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