Cannot reach internet - warning about dev-type and *-mtu

All comments and questions related to the functionality of the OpenVPN web pages and forum should go here.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
Ichika
OpenVpn Newbie
Posts: 4
Joined: Fri Mar 02, 2012 9:44 pm

Cannot reach internet - warning about dev-type and *-mtu

Post by Ichika » Sat Mar 03, 2012 7:39 am

Good morning,

I wanted to edit my post (topic9980.html) but it has been locked. I just rebooted my computer and it doesn't work anymore.

I can connect to my VPN but I can't have access to anything (DNS problem ?).

I used grep for warning in the log file and I got this :
Sat Mar 3 08:28:13 2012 us=302259 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
WRWRWRWRWWRRWRWRWWWWRRRRWRWRSat Mar 3 08:28:13 2012 us=704808 WARNING: 'dev-type' is used inconsistently, local='dev-type tap', remote='dev-type tun'
Sat Mar 3 08:28:13 2012 us=704823 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1574', remote='link-mtu 1542'
Sat Mar 3 08:28:13 2012 us=704832 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500'
Now that's strange because dev-type was tap yesterday and now it's tun. Why has it changed (server side ?) ?
I googled the error about mtu and I found than people had this "tun-mtu-extra 32" to remove from their config file but I don't have it.

Does someone know what is wrong ?

Thanks.

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Cannot reach internet - warning about dev-type and *-mtu

Post by janjust » Sat Mar 03, 2012 10:08 pm

hehe sorry about locking the topic - I figured it was solved, hence the lock/close

the 'dev tap' vs 'dev tun' mismatch also causes the 'tun-mtu'/'link-mtu' mismatches - solve the first and the other two go away as well.

As for the server switching from 'tun' to 'tap' and back : talk to the OpenVPN server admin. Also, make sure you're connecting to the right server/port.

Ichika
OpenVpn Newbie
Posts: 4
Joined: Fri Mar 02, 2012 9:44 pm

Re: Cannot reach internet - warning about dev-type and *-mtu

Post by Ichika » Sun Mar 04, 2012 7:53 am

Hi,

in my config file (the one I took from their website), it's a random choice for the server :
; HOST
remote-random
remote anna.vpntunnel.se 10010
remote anna.vpntunnel.se 10020
remote anna.vpntunnel.se 1194
That means that some of them are tun and others are tap. I will ask them directly then.

Thanks.

Post Reply