[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] tun device on 2.6?


  • Subject: Re: [Openvpn-users] tun device on 2.6?
  • From: Bradley Alexander <storm@xxxxxxx>
  • Date: Wed, 3 Mar 2004 22:40:09 -0500

On Wed, 3 Mar 2004 15:34:35 +1100
Patrick Lesslie <patricklesslie@xxxxxxxxxxxx> wrote:

> On Tue, Mar 02, 2004 at 11:08:26PM -0500, Bradley Alexander wrote:
> > [root@neghvar net]# ifconfig tun0 up
> > tun0: ERROR while getting interface flags: No such device
> > 
> > When I boot 2.4.24, the device works fine. Am I missing some software that
> > 2.6 requires or is it broken? I searched on google for anything regarding
> > this issue, but the only thing I found was a two-message thread on the
> > kernel list saying "tun is broken on 2.6.3" and "no its not, I'm using it"
> > with very few details. Any suggestions?
> 
> Do you know if the tun device is being created?  You can make it with
> 
> openvpn --mktun --dev tun0

At the command line, it works fine:

[root@neghvar storm]# openvpn --mktun --dev tun0
Wed Mar  3 22:37:17 2004 0[0]: TUN/TAP device tun0 opened
Wed Mar  3 22:37:17 2004 1[0]: Persist state set to: ON

I tried this approach in a couple of ways. First I added it to my openvpn config as 

dev tun
mktun

I then tried adding it to /etc/init.d/openvpn, as 

start_vpn () {
    $DAEMON --mktun --dev tun0 --daemon --writepid /var/run/openvpn.$NAME.pid \
            --config $CONFIG_DIR/$NAME.conf --cd $CONFIG_DIR || echo -n " FAILED
->"
    echo -n " $NAME"
}

Both cases, openvpn gave me 

Mar  3 22:27:03 neghvar openvpn[716]: Options error: options --mktun or
--rmtun should only be used together with --dev

Should I run the openvpn --mktun --dev tun0 before starting the regular openvpn command?

-- 
--Brad
========================================================================
Bradley M. Alexander                |
gTLD SysAdmin, Security Engineer    |   storm [at] tux.org
Debian/GNU Linux Developer          |   storm [at] debian.org
========================================================================
Key fingerprints:
DSA 0x54434E65: 37F6 BCA6 621D 920C E02E  E3C8 73B2 C019 5443 4E65
RSA 0xC3BCBA91: 3F 0E 26 C1 90 14 AD 0A  C8 9C F0 93 75 A0 01 34
========================================================================
Stay out of clouds. The silver lining everyone keeps talking
about might be another airplane going in the opposite direction.
Reliable sources also report that mountains have been known to hide
out in clouds.
					--Rules of the Air, #13

____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users