Error While Getting Interface Flags No Such Device Openvpn
Contents |
Sign in Pricing Blog Support Search GitHub This repository Watch 348 Star 4,767 Fork 626 dnschneid/crouton Code Issues 430 Pull requests 14 Projects 0 Wiki Pulse Graphs New issue Openvpn startup problem error while getting interface flags no such device ubuntu #375 Closed wymby opened this Issue Sep 22, 2013 · 12 comments Projects error while getting interface flags no such device airmon-ng None yet Labels question Milestone No milestone Assignees No one assigned 10 participants wymby commented Sep 22, error while getting interface flags no such device wlan0 2013 I'm able to run an openvpn client from my Debian wheezy chroot, but starting it generally requires two or more attempts. When it fails, its log ends with: Sat Sep 21 17:32:18 2013
Eth0 Error While Getting Interface Flags No Such Device
TUN/TAP device tun0 opened Sat Sep 21 17:32:18 2013 TUN/TAP TX queue length set to 100 Sat Sep 21 17:32:18 2013 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0 Sat Sep 21 17:32:18 2013 /sbin/ifconfig tun0 10.21.83.11 pointopoint 10.21.83.12 mtu 1500 SIOCSIFADDR: No such device tun0: ERROR while getting interface flags: No such device SIOCSIFDSTADDR: No such device tun0: ERROR while getting interface flags: No such device SIOCSIFMTU: No such device Sat Sep note: cannot open tun/tap dev /dev/net/tun: no such device (errno=19) 21 17:32:18 2013 Linux ifconfig failed: external program exited with error status: 1 Sat Sep 21 17:32:18 2013 Exiting When successful: Sat Sep 21 17:33:46 2013 TUN/TAP device tun0 opened Sat Sep 21 17:33:46 2013 TUN/TAP TX queue length set to 100 Sat Sep 21 17:33:46 2013 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0 Sat Sep 21 17:33:46 2013 /sbin/ifconfig tun0 10.21.83.11 pointopoint 10.21.83.12 mtu 1500 Sat Sep 21 17:33:46 2013 /sbin/route add -net 10.21.83.31 netmask 255.255.255.255 gw 10.21.83.12 Sat Sep 21 17:33:46 2013 /sbin/route add -net 10.20.40.83 netmask 255.255.255.255 gw 10.21.83.12 Sat Sep 21 17:33:46 2013 GID set to nogroup Sat Sep 21 17:33:46 2013 UID set to nobody Sat Sep 21 17:33:46 2013 Initialization Sequence Completed Once up it works fine. If killed, it will re-start on the first try. It looks like a problem creating and/or accessing the tun0 device. Suggestions? Owner dnschneid commented Nov 8, 2013 You'll have much better luck using OpenVPN inside Chromium OS itself. dnschneid closed this Nov 8, 2013 wymby commented Nov 9, 2013 I prefer to run Openvpn inside the chroot in order to keep everything compatible with my other systems. So I'm willing to put up with false starts. But I just found a soluti
have one accepted answer. Are you sure you want to replace the current answer with this one? Yes, I'm sure. Changed your mind? You previously marked this answer as accepted. Are you read from tun/tap : file descriptor in bad state (code=77) sure you want to unaccept it? Yes, I'm sure. Sign Up Log In
Openvpn Siocsifmtu No Such Device
submit Tutorials Questions Projects Meetups Main Site logo-horizontal DigitalOcean Community Menu Tutorials Questions Projects Meetups Main Site Sign Up Log In
Chromeos Openvpn
submit View All Results By: Gabberhead Subscribe Subscribed Share 0 openvpn problem since today November 1, 2014 7.8k views i installed today mornig the following update: Start-Date: 2014-11-01 10:32:23 Commandline: apt-get -y upgrade Upgrade: https://github.com/dnschneid/crouton/issues/375 linux-libc-dev:i386 (3.2.63-2, 3.2.63-2+deb7u1), linux-image-3.2.0-4-686-pae:i386 (3.2.63-2, 3.2.63-2+deb7u1) End-Date: 2014-11-01 10:32:40 later i tried to connect to openvpn server installed on the vps. but i get the following error on the client side: Sat Nov 01 16:18:49 2014 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054) i looked on my server and realized that openvpn could not start anymore: root@xxxxxxxxxx:~# service openvpn restart [ ok ] Stopping virtual private network daemon:. https://www.digitalocean.com/community/questions/openvpn-problem-since-today [FAIL] Starting virtual private network daemon: server failed! this is what i get in the log: Sat Nov 1 16:19:29 2014 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Sat Nov 1 16:19:29 2014 PLUGININIT: POST /usr/lib/openvpn/openvpn-auth-pam.so '[/usr/lib/openvpn/openvpn-auth-pam.so] [login]' intercepted=PLUGINAUTHUSERPASSVERIFY Sat Nov 1 16:19:29 2014 Diffie-Hellman initialized with 2048 bit key Sat Nov 1 16:19:29 2014 Control Channel Authentication: tls-auth using INLINE static key file Sat Nov 1 16:19:29 2014 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication Sat Nov 1 16:19:29 2014 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication Sat Nov 1 16:19:29 2014 TLS-Auth MTU parms [ L:1602 D:178 EF:78 EB:0 ET:0 EL:0 ] Sat Nov 1 16:19:29 2014 Socket Buffers: R=[163840->131072] S=[163840->131072] Sat Nov 1 16:19:29 2014 Note: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19) Sat Nov 1 16:19:29 2014 doifconfig, tt->ipv6=0, tt->didifconfigipv6_setup=0 Sat Nov 1 16:19:29 2014 /sbin/ifconfig 192.168.1.1 netmask 255.255.255.0 mtu 1500 broadcast 192.168.1.255 SIOCSIFADDR: No such device : ERROR while getting interface flags: No such device SIOCSIFNETMASK: No such device SIOCSIFMTU: No such device SIOCSIFBRDADDR: No such device : ERROR while getting interface flags: No such device Sat Nov
Author Topic: Openvpn problem (FIXED) (Read 3724 times) wizard3001 Newbie Posts: 4 Karma: +0/-0 Openvpn problem (FIXED) « on: September 04, 2013, 03:39:25 PM » Did somebody tried to https://www.olimex.com/forum/index.php?topic=1819.0 install and successfully run OpenVPN? I get this error : Wed Sep http://askubuntu.com/questions/278238/openvpn-on-ubuntu-openvz 4 11:08:34 2013 us=813827 Note: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)Wed Sep 4 11:08:34 2013 us=814121 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0Wed Sep 4 11:08:34 2013 us=814319 /sbin/ifconfig 10.1X.X.XXX pointopoint 10.1X.X.XXX mtu 1500SIOCSIFADDR: No such device: ERROR while getting interface flags: No such deviceSIOCSIFDSTADDR: No such device: ERROR while getting interface flags: no such No such deviceSIOCSIFMTU: No such deviceWed Sep 4 11:08:34 2013 us=964866 Linux ifconfig failed: external program exited with error status: 1Wed Sep 4 11:08:34 2013 us=965213 ExitingI've googled and tried so many things now.Thanks for your help. « Last Edit: January 08, 2014, 05:40:46 PM by wizard3001 » Logged rzr Newbie Posts: 24 Karma: +0/-0 http://rzr.online.fr/q/armv7 Re: Openvpn problem. « Reply #1 on: January 01, no such device 2014, 04:30:12 PM » it looks TUN/TAP is not built in kernel check in config file Logged http://rzr.online.fr/q/armv7 wizard3001 Newbie Posts: 4 Karma: +0/-0 Re: Openvpn problem. « Reply #2 on: January 08, 2014, 05:40:24 PM » In the new versions of the Debian images everything is ok . Logged olibit Newbie Posts: 2 Karma: +0/-0 Re: Openvpn problem (FIXED) « Reply #3 on: April 09, 2014, 03:27:05 PM » Unfortunately, in the latestest offical microsd card image available for download on the olimex website for the A10 OLinuXino Lime, there is still no tun device support activated in the kernel. Could you please update the A10 OLinuXino Lime kernel / image, too? Logged laskov Newbie Posts: 18 Karma: +1/-0 Re: Openvpn problem (FIXED) « Reply #4 on: April 09, 2014, 04:30:53 PM » Try as rootCode: [Select]modprobe tunbefore starting openvpn. Tun can be compiled as a kernel module. Logged olibit Newbie Posts: 2 Karma: +0/-0 Re: Openvpn problem (FIXED) « Reply #5 on: April 09, 2014, 05:16:54 PM » I've already tried that and searched the module path /lib/modules for a tun module without successImage is a linked in the wik
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top OpenVPN on Ubuntu OpenVZ up vote 2 down vote favorite I finished configuring OpenVPN on my OpenVZ vps. When I run service openvpn restart I get the following error output: * Stopping virtual private network daemon(s)... * No VPN is running. * Starting virtual private network daemon(s)... * Autostarting VPN 'client' * Autostarting VPN 'server' SIOCSIFADDR: No such device : ERROR while getting interface flags: No such device SIOCSIFDSTADDR: No such device : ERROR while getting interface flags: No such device SIOCSIFMTU: No such device I have a gut feeling that it is something to do with the fact that an OpenVZ machine does not have an eth0 device but a venet0:0 interface instead. I looked through all the config files I had to edit and made sure there was no reference to eth0 though. I configured it to this tutorial that I am finishing up (will be finished once I have the solution from here). Please let me know how I need to change my configuration so that OpenVPN can start successfully. 12.04 networking openvpn openvz share|improve this question edited Apr 8 '13 at 11:04 asked Apr 5 '13 at 15:38 Programster 1,493103058 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote It turns out that you have to set up the tun/tap device on the openvz host. To do this you need to make sure the host is running with lsmod | grep tun. If nothing appears then run modprobe tun before running lsmod | grep tun to check it appears. Now that that is done you need to give the container access with the following commands (I suggest putting this in a script and then calling that): CTID=YOUR_CONTAINERS_ID_HERE vzctl set $CTID --devno