Howto install tap device and driver on linux?

Need help configuring your VPN? Just post here and you'll get that help.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
linkmaze
OpenVpn Newbie
Posts: 6
Joined: Tue Jan 04, 2011 7:15 am

Howto install tap device and driver on linux?

Post by linkmaze » Fri Mar 04, 2011 9:49 pm

Hello please help.
I am install OpenVPN on Linux and install tun device, but tap device or driver is not install.
I am enter following command:

Code: Select all

[root@hhh tun-1.1]# mknod /dev/tap0 c 90 128
[root@hhh tun-1.1]# modprobe tap0
FATAL: Module tap0 not found.

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

Re: Howto install tap device and driver on linux?

Post by janjust » Fri Mar 04, 2011 9:57 pm

you don't need to do the 'mktun' per se.
Use

Code: Select all

modeprobe tap
instead, but OpenVPN will do this for you as well

linkmaze
OpenVpn Newbie
Posts: 6
Joined: Tue Jan 04, 2011 7:15 am

Re: Howto install tap device and driver on linux?

Post by linkmaze » Sat Mar 05, 2011 6:03 am

you don't need to do the 'mktun' per se.
Use

Code: Select all

modeprobe tap
instead, but OpenVPN will do this for you as well
I am reinstall OpenVPN and enter

Code: Select all

modeprobe tap
terminal answer

Code: Select all

[root@hhh openvpn-2.1.4]# modeprobe tap
bash: modeprobe: command not found
[root@hhh openvpn-2.1.4]# modprobe tap
FATAL: Module tap not found.
Linux Mandriva.

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

Re: Howto install tap device and driver on linux?

Post by janjust » Sat Mar 05, 2011 10:12 pm

whoops, my bad on the 'modeprobe', that should have been modprobe.
and on my fc13 box here I can also not do 'modprobe tap' .

Have you tried

Code: Select all

openvpn --mktun --dev tap0
?

linkmaze
OpenVpn Newbie
Posts: 6
Joined: Tue Jan 04, 2011 7:15 am

Re: Howto install tap device and driver on linux?

Post by linkmaze » Sat Mar 05, 2011 11:08 pm

Yes but i am dont see tap in /dev/net only tun

Code: Select all

[root@hhh ff]# openvpn --mktun --dev tap0
Sun Mar  6 00:28:27 2011 TUN/TAP device tap0 opened
Sun Mar  6 00:28:27 2011 Persist state set to: ON

Code: Select all

[root@hhh ff]# ls /dev/net
tun

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Howto install tap device and driver on linux?

Post by maikcat » Sun Mar 06, 2011 5:18 pm

hi there,

which linux are you using?

cheers,

michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

linkmaze
OpenVpn Newbie
Posts: 6
Joined: Tue Jan 04, 2011 7:15 am

Re: Howto install tap device and driver on linux?

Post by linkmaze » Sun Mar 06, 2011 6:12 pm

Linux Mandriva.

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

Re: Howto install tap device and driver on linux?

Post by janjust » Mon Mar 07, 2011 8:05 am

when I do a

Code: Select all

openvpn --mktun --dev tap0
I don't see a /dev/net/tap0 either, but

Code: Select all

/sbin/ifconfig tap0
shows the interface is there.

Post Reply