i-have-a-dreambox.com | Dreambox - Support

Register Calendar Members List Team Members Galerie to Portal Go to the Main Page

Boardrules Frequently Asked Questions Statistik Statistik Search Pinwand Dreambox Blog Ihad/Gemini Fan-Shop
i-have-a-dreambox.com | Dreambox - Support » ...::: Archiv - The Gemini Project (GP3, GP2 und GP) :::... » ...::: The Gemini Project 3.2 :::... » Gemini 3.2 Plugins » DM800HD PVR - geminiopenvpn - TUN/TAP driver module autoload » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Add Thread to Favorites
Post New Thread Post Reply
Go to the bottom of this page DM800HD PVR - geminiopenvpn - TUN/TAP driver module autoload
Author
Post « Previous Thread | Next Thread »
PiGeonCZ
User


Registration Date: 25.12.2006
Posts: 119
Which box: DM920; DM7080HD
External Storage: HDD; CIFS
Which Image: OE 2.5

INFO DM800HD PVR - geminiopenvpn - TUN/TAP driver module autoload Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Hi, I have recently spent quit a lot time to make the OpenVPN working.
One of the things I struggled with was to make the "Universal TUN/TAP device driver" load automatically after reboot.

Not sure if it is the image for the DM800HD PVR self (dreambox-image-dm800-20151205.nfi) or the issue with installing the geminiopenvpn - 0.15-r2 plugin with --force-depends parameter, because otherwise it would never install as there is no kernel-module-bridge package for the mips32el-nf platform available.
I am using the OpenVPN in tunneling mode eg. with "dev tun" parameter in configs. So there is no need for the dependent kernel-module-bridge package in this case.

Here are the steps I had to do to make the box load the tun driver module.
code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
###############################
#TUN/TAP driver module loading
###############################

#make TUN module load automatically
edit the /etc/modules file to contain "tun" module
put it between the "### update-modules: start processing..." and "### update-modules: stop processing..."

run following commands in telnet:
mkdir /dev/net/
mknod /dev/net/tun c 10 200
cat /dev/net/tun
depmod -a
lsmod | grep tun

this is how the output should look like:
root@dm800:~# mkdir /dev/net/
root@dm800:~# mknod /dev/net/tun c 10 200
root@dm800:~# cat /dev/net/tun
cat: read error: File descriptor in bad state
root@dm800:~# depmod -a
root@dm800:~# lsmod | grep tun
tun                     9536  1

then reboot the box:
reboot

after reboot run following command:
cat /var/log/messages | grep tun:

If you see following result, everything works as expected:
root@dm800:~# cat /var/log/messages | grep tun:
Jan  1 01:00:45 dm800 user.info kernel: [4294700.749000] tun: Universal TUN/TAP device driver, 1.6
Jan  1 01:00:45 dm800 user.info kernel: [4294700.750000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>

hope it helps to save somebody some timeAugenzwinkern

have fun

PiGeon

PS: Sorry for writing in English, but in the meantime I am better at it than in German. You don't need to keep this thread in English, I can answer in German if somebody needs an explanation Augenzwinkern

This post has been edited 3 time(s), it was last edited by PiGeonCZ: 18.12.2015 13:45.

18.12.2015 13:42 PiGeonCZ is offline Send an Email to PiGeonCZ Search for Posts by PiGeonCZ Add PiGeonCZ to your Buddy List
Tree Structure | Board Structure
Jump to:
Post New Thread Post Reply
i-have-a-dreambox.com | Dreambox - Support » ...::: Archiv - The Gemini Project (GP3, GP2 und GP) :::... » ...::: The Gemini Project 3.2 :::... » Gemini 3.2 Plugins » DM800HD PVR - geminiopenvpn - TUN/TAP driver module autoload

Privacy policy | Team | Suchen | Hilfe


Powered by Burning Board 2.3.6 © 2001-2003 WoltLab GbR