Jump to content


Photo

OPENVPN

DM600

  • Please log in to reply
16 replies to this topic

#1 evagelos

  • Member
  • 45 posts

+1
Neutral

Posted 1 April 2009 - 20:16

hi to all
I have tryed to install openvpn but i can't
i was in yellow panel=> pli packege managment=>feed:official=>
There are 3 files
"openvpn_2.0.2-r0_powerpc"
"openvpn-dbg_2.0.2-r0_powerpc"
"openvpn-doc_2.0.2-r0_powerpc"
i have checked them , install them but there are not appearing in installed packages.
Do i am missing something?
thanks in advance

Re: OPENVPN #2 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 1 April 2009 - 20:53

see what happens when you try to install from the commandline:

ipkg update && ipkg install openvpn

you should end up with the openvpn binary installed (it is a commandline tool)

check
ipkg files openvpn

to see what it installed. Possibly an initscript as well, I'm not sure.

Re: OPENVPN #3 evagelos

  • Member
  • 45 posts

+1
Neutral

Posted 1 April 2009 - 21:03

It shows me that:
Package openvpn (2.0.2-r0) is installed on root and has the following files:
/usr/sbin/openvpn
/etc/init.d/openvpn

Where can i find the config files so to setup vpn connection with another dm600?

thanks

Re: OPENVPN #4 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 1 April 2009 - 21:33

see what's inside /etc/init.d/openvpn, might give you clues were to put your configuration

Re: OPENVPN #5 evagelos

  • Member
  • 45 posts

+1
Neutral

Posted 3 April 2009 - 23:04

Hi again
I have made some progress since last 2 days
i have setup the config files but an error keep me from finishing my job

The message:
Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)

my config file is this:
local 192.168.1.103
proto udp
dev tap
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 192.168.2.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
cipher BF-CBC # Blowfish (default) encryption
comp-lzo
max-clients 100
persist-key
persist-tun
status openvpn-status.log
verb 6


What can i do?
Thanks


Re: OPENVPN #6 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 3 April 2009 - 23:09

you have to install tap/tun drivers
try:
ipkg update
ipkg list *tap*
ipkg list *tun*

to find out what they might be called
(probably kernel-module-tun and perhaps kernel-module-tap is also available. You need only one type, tap or tun)

Re: OPENVPN #7 evagelos

  • Member
  • 45 posts

+1
Neutral

Posted 3 April 2009 - 23:43

I am very sorry but i do not know very much about linux.
In windows i would put the name of my Network Adapter ex: vpn
How can i find the name of adapter?
thanks

Re: OPENVPN #8 dAF2000

  • PLi® Ex-Leden
  • 14,151 posts

+52
Good

Posted 4 April 2009 - 09:04

Just execute the commands on your Dreambox as pieterg suggested. Anyway, I tried it for you and you need this command:

ipkg update
ipkg install kernel-module-tun

to install the TUN kernel drivers.
Many answers to your question can be found in our wiki: http://openpli.org/wiki

Re: OPENVPN #9 evagelos

  • Member
  • 45 posts

+1
Neutral

Posted 4 April 2009 - 12:32

Thanks.
Now it seams to work just fine

THANKS

Re: OPENVPN #10 Basiliss

  • Member
  • 4 posts

0
Neutral

Posted 20 April 2009 - 09:06

I got a similar problem:

root@dm600pvr / # ipkg files kernel-module-tun
Package kernel-module-tun (2.6.12-r9) is installed on root and has the following files:
/lib/modules/2.6.12/kernel/drivers/net/tun.ko

root@dm600pvr / # ipkg files openvpn
Package openvpn (2.0.2-r0) is installed on root and has the following files:
/usr/sbin/openvpn
/etc/init.d/openvpn


client conf:

client
dev tun
proto udp
remote 192.168.0.6 11000
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client7.crt
key client7.key
#comp-lzo
verb 3

root@dm600pvr /etc/openvpn # openvpn client.conf
.....
.....
Sun Apr 5 21:58:22 2009 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Sun Apr 5 21:58:22 2009 PUSH: Received control message: 'PUSH_REPLY,route 10.8.0.1,ping 10,ping-restart 120,ifconfig 10.8.0.14 10.8.0.13'
Sun Apr 5 21:58:22 2009 OPTIONS IMPORT: timers and/or timeouts modified
Sun Apr 5 21:58:22 2009 OPTIONS IMPORT: --ifconfig/up options modified
Sun Apr 5 21:58:22 2009 OPTIONS IMPORT: route options modified
Sun Apr 5 21:58:22 2009 Note: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)
Sun Apr 5 21:58:22 2009 Note: Attempting fallback to kernel 2.2 TUN/TAP interface
Sun Apr 5 21:58:22 2009 Cannot allocate TUN/TAP dev dynamically
Sun Apr 5 21:58:22 2009 Exiting

root@dm600pvr /etc/openvpn # ipkg install kernel-module-tun
Package kernel-module-tun (2.6.12-r9) installed in root is up to date.
Nothing to be done

root@dm600pvr /etc/openvpn # ipkg install openvpn
Package openvpn (2.0.2-r0) installed in root is up to date.
Nothing to be done

Any suggestions?

Re: OPENVPN #11 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 20 April 2009 - 09:25

is the tun driver loaded?
(check with lsmod)

if not, modprobe tun

Re: OPENVPN #12 Basiliss

  • Member
  • 4 posts

0
Neutral

Posted 20 April 2009 - 09:28

Thanks for the quick reply,that worked perfectly! :D

Re: OPENVPN #13 Basiliss

  • Member
  • 4 posts

0
Neutral

Posted 20 April 2009 - 10:24

How can i make it perm?Should i include this in an init script?

Re: OPENVPN #14 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 20 April 2009 - 10:29

yes, I think /etc/init.d/openvpn would be the sensible place to load the driver
(assumed that you start your connections from this script, at bootup)

Re: OPENVPN #15 Basiliss

  • Member
  • 4 posts

0
Neutral

Posted 20 April 2009 - 17:08

Thanks again! :)

Re: OPENVPN #16 atma

  • Member
  • 12 posts

0
Neutral

Posted 21 September 2009 - 16:07

Well apparently openvpn init script does not handle tun device. There should a file called /etc/modules.d/kernel-2.4 there which handles the modules... Instead the man page writes about a file /etc/modeutils which does not exist on my current install PLi-Jade 3.

I put the the line "modprobe tun" on the "start stop" script in order to make it work...
Dreambox PVR-S 600

Re: OPENVPN #17 lincsat

  • Member
  • 23 posts

0
Neutral

Posted 9 July 2010 - 23:38

root@dm600pvr /etc/openvpn # openvpn client.conf


Don't know if this is significant but you start with this command:

root@dm600pvr # /etc/openvpn/openvpn start



Also tagged with one or more of these keywords: DM600

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users