Community Support Forum
 
  OpenVPN.net  •  Forum Index  •  FAQ  

It is currently Fri Apr 25, 2014 12:28 am


Forum rules


If you would like help, here is a few things you will want to do in order to help us help you.

**Post your configs from client and server, without comments. you can strip comments in linux/bsd with something like this:
grep -vE '^#|^;|^$' server.conf
**Tell us your goal.
**If you are having problems connecting, post your logfiles from server and client after using verb 4 in both configs


Also, there are 2 things you should be aware of:

**Sometimes you cannot avoid tunneling over tcp, but if you can avoid it, DO. Why TCP Over TCP Is A Bad Idea: http://sites.inka.de/~bigred/devel/tcp-tcp.html
**You ONLY want to use dev tap if you are tunneling layer2 traffic, if you are using IP traffic you want tun. If you are using tap only for windows file sharing, look into running a WINS server instead.



Post new topic Reply to topic  [ 26 posts ]  Go to page 1, 2  Next
 Route: Waiting for TUN/TAP interface to come up... 
Author Message
 Post subject: Route: Waiting for TUN/TAP interface to come up...
PostPosted: Tue Jan 04, 2011 12:45 pm 
OpenVpn Newbie

Joined: Tue Jan 04, 2011 12:37 pm
Posts: 8
Hey All,

I have been having a problem for quite a while on my OpenVPN setup. OpenVPN is running on a FreeBSD 8.0 Server and my client is running Windows 7 Ultimate. This setup was working fine for me for ages on Windows XP. When I switched to Windows 7, it worked fine for a few months then suddenly started erroring out saying "Route: Waiting for TUN/TAP interface to come up...".

Now this is the really irritating thing. Sometimes, for no apparent reason, it will work! It will work wonderfully for a few connections, then it will just die with the same error message.

Any ideas why this may be happening? I have been searching google for weeks now trying to figure it out. I have disabled UAC, Set OpenVPN to compat mode, disabled the firewall, alot of things. I even tried it on another Windows 7 computer with the same result. I have a vague feeling it may be something to do with Windows 7 but I don't have a Windows XP machine to test with.

Thanks,
Karl


Offline
 Profile  
 
 Post subject: Re: Route: Waiting for TUN/TAP interface to come up...
PostPosted: Wed Jan 05, 2011 11:48 am 
Forum Team
User avatar

Joined: Mon Dec 13, 2010 3:51 pm
Posts: 194
Location: Lawrence, KS
Karl,

What version of openvpn are you using on your client system?

-Stephen

_________________
[..]I used to think it was awful that life was so unfair. [...]Wouldn't it be much worse if life were fair, and all the terrible things that happen to us come because we actually deserve them? -Marcus Cole


Offline
 Profile  
 
 Post subject: Re: Route: Waiting for TUN/TAP interface to come up...
PostPosted: Wed Jan 05, 2011 10:42 pm 
OpenVpn Newbie

Joined: Tue Jan 04, 2011 12:37 pm
Posts: 8
Hey gladiatr72,

Im running: OpenVPN 2.1.3 i686-pc-mingw32 [SSL] [LZO2] [PKCS11] built on Aug 20 2010

Edit:

I just upgraded to 2.1.4 but there was no change, it still errored out.

Thanks,
Karl


Offline
 Profile  
 
 Post subject: Re: Route: Waiting for TUN/TAP interface to come up...
PostPosted: Thu Jan 06, 2011 7:31 pm 
Forum Team
User avatar

Joined: Mon Dec 13, 2010 3:51 pm
Posts: 194
Location: Lawrence, KS
Hrm. Ok. If you can, please post your client configuration.

-S

_________________
[..]I used to think it was awful that life was so unfair. [...]Wouldn't it be much worse if life were fair, and all the terrible things that happen to us come because we actually deserve them? -Marcus Cole


Offline
 Profile  
 
 Post subject: Re: Route: Waiting for TUN/TAP interface to come up...
PostPosted: Fri Jan 07, 2011 2:39 am 
OpenVpn Newbie

Joined: Tue Jan 04, 2011 12:37 pm
Posts: 8
Client.ovpn:
Code:
client
dev tun
proto udp
remote theta 28058
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert karlh.crt
key karlh.key
ns-cert-type server
comp-lzo
verb 3


I should also note I am running 64bit Windows.


Offline
 Profile  
 
 Post subject: Re: Route: Waiting for TUN/TAP interface to come up...
PostPosted: Fri Jan 07, 2011 3:17 am 
Forum Team
User avatar

Joined: Fri Aug 29, 2008 5:42 pm
Posts: 703
try this in the client config
Code:
route-delay


Offline
 Profile  
 
 Post subject: Re: Route: Waiting for TUN/TAP interface to come up...
PostPosted: Fri Jan 07, 2011 3:32 am 
OpenVpn Newbie

Joined: Tue Jan 04, 2011 12:37 pm
Posts: 8
By the great lords of cobol.... I think that may have done it. Put it in, tried it and it connected first go! That's the first time that has happened in ages :D I'll do some more testing but hopefully, that got it :D

Thanks Heaps Guys!


Offline
 Profile  
 
 Post subject: Re: Route: Waiting for TUN/TAP interface to come up...
PostPosted: Fri Jan 07, 2011 10:27 am 
OpenVpn Newbie

Joined: Tue Jan 04, 2011 12:37 pm
Posts: 8
Hey Guys,

Just tested it again... It's stopped working :( Any other ideas?

Thanks,
Karl


Offline
 Profile  
 
 Post subject: Re: Route: Waiting for TUN/TAP interface to come up...
PostPosted: Fri Jan 07, 2011 2:55 pm 
Forum Team
User avatar

Joined: Mon Dec 13, 2010 3:51 pm
Posts: 194
Location: Lawrence, KS
Stopped working: as in

A: "you start the client, it works for a while but then stops working at some point"
or
B: "It doesn't work at all now"?

-S

_________________
[..]I used to think it was awful that life was so unfair. [...]Wouldn't it be much worse if life were fair, and all the terrible things that happen to us come because we actually deserve them? -Marcus Cole


Offline
 Profile  
 
 Post subject: Re: Route: Waiting for TUN/TAP interface to come up...
PostPosted: Fri Jan 07, 2011 11:45 pm 
OpenVpn Newbie

Joined: Tue Jan 04, 2011 12:37 pm
Posts: 8
Sorry, I should have been more clear.

When I go to connect to my OpenVPN server, it will connect 2 times out of 10. The rest of the time it just keeps cycling that same error message.

When it does connect, it works great. But then I may disconnect it for some reason (Like computer reboot) and then it wont connect again. I have to keep trying to connect until it works (As I said, usually around 10 tries).

When I put in the route-delay option, it seemed to work fine. I'd connect every time I tried (I tried 3 times). I turned off my computer, restarted it and it wouldn't connect (Saying the same error message).


Offline
 Profile  
 
 Post subject: Re: Route: Waiting for TUN/TAP interface to come up...
PostPosted: Sun Jan 09, 2011 11:13 am 
OpenVpn Newbie

Joined: Tue Jan 04, 2011 12:37 pm
Posts: 8
I just managed to test on a friend of mines computer which is running Windows XP. I tried to connect using Windows XP and it worked fine. Tried a second later (After disconnecting the Windows XP connection) with my Windows 7 laptop and it didn't work.

I just re-read over my original post, I forgot to add something that may be relevant. The times which it doesn't work is strange because it looks like it's connected (It gets a valid IP, the same IP it gets when it is working) but there is no data flow at all (Can't access anything via the connection like SMB or Proxy whereas when it connects fine, it works perfectly). When it doesnt work it shows this error message at the end:

Code:
un Jan 09 22:24:55 2011 Warning: route gateway is not reachable on any active network adapters: 10.8.0.5
Sun Jan 09 22:24:55 2011 Route addition via IPAPI failed [adaptive]
Sun Jan 09 22:24:55 2011 Route addition fallback to route.exe
 OK!
SYSTEM ROUTING TABLE
0.0.0.0 0.0.0.0 10.0.0.138 p=0 i=13 t=4 pr=3 a=30698 h=0 m=25/0/0/0/0
10.0.0.0 255.255.255.0 10.0.0.6 p=0 i=13 t=3 pr=3 a=30698 h=0 m=281/0/0/0/0
10.0.0.6 255.255.255.255 10.0.0.6 p=0 i=13 t=3 pr=3 a=30698 h=0 m=281/0/0/0/0
10.0.0.255 255.255.255.255 10.0.0.6 p=0 i=13 t=3 pr=3 a=30698 h=0 m=281/0/0/0/0
10.8.0.0 255.255.255.0 10.8.0.5 p=0 i=13 t=4 pr=3 a=0 h=0 m=26/0/0/0/0
10.8.0.1 255.255.255.255 10.8.0.5 p=0 i=13 t=4 pr=3 a=0 h=0 m=26/0/0/0/0
127.0.0.0 255.0.0.0 127.0.0.1 p=0 i=1 t=3 pr=3 a=30800 h=0 m=306/0/0/0/0
127.0.0.1 255.255.255.255 127.0.0.1 p=0 i=1 t=3 pr=3 a=30800 h=0 m=306/0/0/0/0
127.255.255.255 255.255.255.255 127.0.0.1 p=0 i=1 t=3 pr=3 a=30800 h=0 m=306/0/0/0/0
169.254.0.0 255.255.0.0 169.254.181.152 p=0 i=22 t=3 pr=3 a=30772 h=0 m=286/0/0/0/0
169.254.181.152 255.255.255.255 169.254.181.152 p=0 i=22 t=3 pr=3 a=30772 h=0 m=286/0/0/0/0
169.254.255.255 255.255.255.255 169.254.181.152 p=0 i=22 t=3 pr=3 a=30772 h=0 m=286/0/0/0/0
224.0.0.0 240.0.0.0 127.0.0.1 p=0 i=1 t=3 pr=3 a=30800 h=0 m=306/0/0/0/0
224.0.0.0 240.0.0.0 169.254.181.152 p=0 i=22 t=3 pr=3 a=30782 h=0 m=286/0/0/0/0
224.0.0.0 240.0.0.0 10.0.0.6 p=0 i=13 t=3 pr=3 a=30758 h=0 m=281/0/0/0/0
255.255.255.255 255.255.255.255 127.0.0.1 p=0 i=1 t=3 pr=3 a=30800 h=0 m=306/0/0/0/0
255.255.255.255 255.255.255.255 169.254.181.152 p=0 i=22 t=3 pr=3 a=30782 h=0 m=286/0/0/0/0
255.255.255.255 255.255.255.255 10.0.0.6 p=0 i=13 t=3 pr=3 a=30758 h=0 m=281/0/0/0/0
SYSTEM ADAPTER LIST
TAP-Win32 Adapter V9
  Index = 22
  GUID = {239556A4-7E56-4030-A7B6-4D6B3D3F315C}
  IP = 169.254.181.152/255.255.0.0
  MAC = 00:ff:23:95:56:a4
  GATEWAY = 0.0.0.0/255.255.255.255
  DHCP SERV = 0.0.0.0/255.255.255.255
  DHCP LEASE OBTAINED = Sun Jan 09 22:24:55 2011
  DHCP LEASE EXPIRES  = Sun Jan 09 22:24:55 2011
  DNS SERV = 
Intel(R) PRO/Wireless 2915ABG Network Connection
  Index = 13
  GUID = {F7760217-38CF-49D8-AC87-76233893D075}
  IP = 10.0.0.6/255.255.255.0
  MAC = 00:16:6f:09:4e:f4
  GATEWAY = 10.0.0.138/255.255.255.255
  DHCP SERV = 10.0.0.138/255.255.255.255
  DHCP LEASE OBTAINED = Sat Jan 08 10:54:01 2011
  DHCP LEASE EXPIRES  = Sat Jan 15 10:54:01 2011
  DNS SERV = 10.0.0.138/255.255.255.255
Sun Jan 09 22:24:55 2011 Initialization Sequence Completed With Errors ( see http://openvpn.net/faq.html#dhcpclientserv )


When I look at the link, I can't find anything about "dhcpclientserv" and when I search the source code for the anchor "dhcpclientserv" I don't find anything.

I have a copy of my error log. It can be found here: http://www.khakkinen.com/error.txt (I can't find a place to attach it here :()


Offline
 Profile  
 
 Post subject: Re: Route: Waiting for TUN/TAP interface to come up...
PostPosted: Mon Jan 10, 2011 8:38 pm 
Forum Team
User avatar

Joined: Fri Aug 29, 2008 5:42 pm
Posts: 703
are you sure you are starting openvpn as ADMIN?


Offline
 Profile  
 
 Post subject: Re: Route: Waiting for TUN/TAP interface to come up...
PostPosted: Mon Jan 10, 2011 9:06 pm 
Forum Team
User avatar

Joined: Fri Aug 29, 2008 5:42 pm
Posts: 703
http://openvpn.net/index.php/open-sourc ... rorsq.html

that is where the anchor should have taken you, i forwarded this post to someone who should be able to fix the anchors on the faq


Offline
 Profile  
 
 Post subject: Re: Route: Waiting for TUN/TAP interface to come up...
PostPosted: Sun Jan 16, 2011 9:59 am 
OpenVpn Newbie

Joined: Tue Jan 04, 2011 12:37 pm
Posts: 8
I tried those links but nothing worked but my laptop has decided to give up the ghost so I have decided to reinstall Windows XP on it. Thanks for all the help :)


Offline
 Profile  
 
 Post subject: Re: Route: Waiting for TUN/TAP interface to come up...
PostPosted: Mon Apr 11, 2011 6:25 am 
OpenVpn Newbie

Joined: Mon Apr 11, 2011 6:15 am
Posts: 1
Hi guys,

I have the exact same problem wih windows7!
Everytime I'm trying to connect to OPENVPN servers with client on Windows 7, the first time the client keep logging:
Route: Waiting for TUN/TAP interface to come up...
Then it established connection with errors. I can't go anywhere.

After disconnecting, the second time goes well.


Offline
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ]  Go to page 1, 2  Next


 Who is online 

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


phpBB SEO
[ Time : 0.205s | 14 Queries | GZIP : On ]

 
Index  |  FAQ


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group