DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-04-30 21:29:59

Electrocut
Member
From: France
Registered: 2009-04-05
Posts: 195

Working: Openvpn 2.0.9

Hi everybody.

I've successfully built OpenVPN on the DNS-313 device. It's working fine with FunPlug 0.5

> How it was built:

(everything was done directly on the DNS-313 device, with Funplug 0.5 and libraries installed on it: no cross-compilation)

OpenVPN program was built from source OpenVpn Source. (tar xzf openvpn-2.0.9.tar.gz && ./configure && ./make)

tun.ko kernel module (for the tun/tap virtual network device), was built from DNS-313 Linux kernel source. It was also necessary to build crc32.ko, because tun.ko module depends on it. Kernel modules are built with the following method:
1- I downloaded kernel source from this topic.
2- I patched kernel source according to naffarin's post on this topic.
3- I built gcc 3.4.6 package, with scripts available at funplug svn server, source from gcc website, and patches taken from openwrt svn trunk
4- I removed gcc 4.1.2 package (funplug -r gcc-4.1-2), and installed gcc 3.4.6 (previously built), because kernel modules needs to be generated with the same gcc version as the DNS-313 Linux kernel was.
5- I enabled crc32 and tun module, on kernel config (make menuconfig)
6- I built kernel modules (make modules)

Final package is generated with makepkg.sh script, still from  funplug svn server. The start and stop scripts, are taken from this topic


> How to use it:

Code:

# You need to install lzo library, to be able to use OpenVPN (because OpenVPN was built with compression feature enabled)

wget http://www.inreto.de/dns323/fun-plug/0.5/extra-packages/All/lzo-2.03-1.tgz
funplug -i lzo-2.03-1.tgz

# Install OpenVPN package:

funplug -i openvpn_dns313-2.0.9-1.tgz

# Make openvpn.sh script executable, so openvpn will be started automaticaly

chmod 755 /ffp/start/openvpn.sh

# Start or Stop OpenVPN deamon, with theses commands:

/ffp/start/openvpn.sh start

/ffp/start/openvpn.sh stop

Follow OpenVPN Howto to know how to use and configure OpenVPN

OpenVPN configuration file is located at /ffp/etc/openvpn/openvpn.conf

Keys and Certificated are located at /ffp/etc/openvpn/keys

Easy-RSA tools (to generate your own keys and certificates) are located at /ffp/share/doc/openvpn/easy-rsa


> Performance:

OpenVPN speed, on my DNS-313:

- 1200 ~ 1400 kBytes/sec without encryption
- 1000 ~ 1030 kBytes/sec with blowfish encryption enabled

(Test with a 700 MBytes file, downloaded from a Windows PC with OpenVPN client installled. File transferred with Samba, over an OpenVPN tunnel)

Enjoy !

-------------------
Edit 2012-08-03: New download Link
http://www.multiupload.nl/USP7EIPS10

Last edited by Electrocut (2012-08-03 13:36:31)


DNS-313

Offline

 

#2 2009-08-05 01:45:13

unnameable
New member
Registered: 2009-08-05
Posts: 1

Re: Working: Openvpn 2.0.9

HI
I'm just trying to start this openvpn release, but I've a problem.

the openvpn log report me this:

###############

/mnt/HD_a2 # cat openvpn.log                                                   
Wed Aug  5 00:06:33 2009 OpenVPN 2.0.9 armv4l-unknown-linux [SSL] [LZO] [EPOLL] built on Apr 25 2009                                                           
Wed Aug  5 00:06:34 2009 WARNING: file '/ffp/etc/openvpn/keys/casa-server.key' is group or others accessible                                                   
Wed Aug  5 00:06:34 2009 WARNING: file '/ffp/etc/openvpn/keys/casa-ta.key' is group or others accessible                                                       
Wed Aug  5 00:06:34 2009 Control Channel Authentication: using '/ffp/etc/openvpn/keys/casa-ta.key' as a OpenVPN static key file                                 
Wed Aug  5 00:06:34 2009 Note: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)                                                                 
Wed Aug  5 00:06:34 2009 Note: Attempting fallback to kernel 2.2 TUN/TAP interface                                                                             
Wed Aug  5 00:06:34 2009 Cannot allocate TUN/TAP dev dynamically               
Wed Aug  5 00:06:34 2009 Exiting                                               

############

then I've tried a manual operation.....

/mnt/HD_a2 # insmod /ffp/lib/modules/2.6.15/kernel/lib/crc32.ko
insmod: cannot insert '/ffp/lib/modules/2.6.15/kernel/lib/crc32.ko': invalid module format

/mnt/HD_a2 # insmod /ffp/lib/modules/2.6.15/kernel/drivers/net/tun.ko           
insmod: cannot insert '/ffp/lib/modules/2.6.15/kernel/drivers/net/tun.ko': invalid module format                                                               


the firmware of the DNS-323 is the 1.07

/mnt/HD_a2 # cat /proc/version                                                 
Linux version 2.6.12.6-arm1 (ffna@SWTEST2) (gcc version 3.3.3) #31 Thu Mar 26 18:20:41 CST 2009                                                                 


Can you explain what is the problem?????

Thankyou in advance!

Offline

 

#3 2009-08-05 01:55:36

Electrocut
Member
From: France
Registered: 2009-04-05
Posts: 195

Re: Working: Openvpn 2.0.9

unnameable wrote:

the firmware of the DNS-323 is the 1.07
[...]
Can you explain what is the problem?????

Theses binaries and kernel modules are built for the DNS-313 device wink

You should have a look there, for DNS-323: DNS-323/321 Discussion  » Compiled & Working: OpenVPN
Edit: or here DNS-323/321 Discussion » [REL] OpenVPN for fonz fun_plug 0.5

Last edited by Electrocut (2009-08-05 01:59:20)


DNS-313

Offline

 

#4 2009-08-31 11:12:05

kruzes
Member
Registered: 2007-05-31
Posts: 22

Re: Working: Openvpn 2.0.9

Electrocut wrote:

4- I removed gcc 4.1.2 package (funplug -r gcc-4.1-2), and installed gcc 3.4.6 (previously built), because kernel modules needs to be generated with the same gcc version as the DNS-313 Linux kernel was.

Hi! Any chance you might still have this package?

I'm trying to compile a package that needs gcc-3 (specifically, older versions of qemu require it, newer versions have issues with arm hosts), and that would be most helpful.

Thanks in advance!

Last edited by kruzes (2009-08-31 11:13:42)

Offline

 

#5 2009-09-03 23:51:41

Electrocut
Member
From: France
Registered: 2009-04-05
Posts: 195

Re: Working: Openvpn 2.0.9

Hi !

Sorry for delay.

I uploaded the file here: http://www.multiupload.com/PSE3E4DEDN

Last edited by Electrocut (2011-09-28 20:45:45)


DNS-313

Offline

 

#6 2011-01-29 01:18:00

tejeskifly
Member
Registered: 2011-01-29
Posts: 5

Re: Working: Openvpn 2.0.9

Download link don't work sad

Anyone can upload somewhere?
I realy need vpn to my dns313

Offline

 

#7 2011-01-29 12:32:47

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Working: Openvpn 2.0.9

ffp.wolf-u.li

Offline

 

#8 2011-01-30 18:02:25

tejeskifly
Member
Registered: 2011-01-29
Posts: 5

Re: Working: Openvpn 2.0.9

I try it, but i have problem with it:

Code:

root:webian:# /ffp/start/openvpn.sh debug
Starting OpenVPN
Creating devices...
mknod: /dev/net/tun: File exists
Loading modules ...
insmod: cannot insert '/ffp/lib/modules/kernel/drivers/net/tun.ko': invalid module format
Starting /ffp/sbin/openvpn --config /ffp/etc/openvpn.conf
root:webian:# /ffp/start/openvpn.sh debug
Starting OpenVPN
Creating devices...
mknod: /dev/net/tun: File exists
Loading modules ...
insmod: cannot insert '/ffp/lib/modules/kernel/drivers/net/tun.ko': invalid module format
Starting /ffp/sbin/openvpn --config /ffp/etc/openvpn.conf

I same problem, with anothert tun.ko....

Last edited by tejeskifly (2011-01-30 18:03:49)

Offline

 

#9 2011-03-19 03:18:33

tejeskifly
Member
Registered: 2011-01-29
Posts: 5

Re: Working: Openvpn 2.0.9

Any solution or tutorial for me?

Offline

 

#10 2011-04-19 16:35:29

setifien
New member
Registered: 2011-04-19
Posts: 2

Re: Working: Openvpn 2.0.9

Hi tejeskifly,

i had the same problem, so i had to download kernel source, configure it and make "tun.ko"

This is the tun.ko compiled for the DNS-320.

I'm working on it too to have openvpn work on my DNS-320, now all looks ok, i juste had to configure openvpn and try it.

Good luck from Sétif.

Last edited by setifien (2011-04-19 16:36:04)


Attachments:
Attachment Icon tun.ko, Size: 13,330 bytes, Downloads: 701

Offline

 

#11 2011-04-19 17:51:18

setifien
New member
Registered: 2011-04-19
Posts: 2

Re: Working: Openvpn 2.0.9

RE,

All is ok, i've compiled tun.ko for DNS-320 and configure my DNS-320 openvpn under fun_plug, configure my client under windows and all is working !

I put a file to install with funpkg : funpkg -i openvpn_2_1_2-DNS320_by_setifien.tgz

I hope all will be fine.

Edit: i don't know why, but i can't post my file...

Last edited by setifien (2011-04-19 18:35:22)

Offline

 

#12 2011-04-20 23:20:32

Electrocut
Member
From: France
Registered: 2009-04-05
Posts: 195

Re: Working: Openvpn 2.0.9

Glad to see that this topic is still active smile Sorry, I didn't notice that the link file on my first post is was not valid anymore. Link updated !

setifien > there is a size limitation for files, on the forum.

Last edited by Electrocut (2011-09-28 01:28:19)


DNS-313

Offline

 

#13 2011-09-27 23:08:14

rikiki
New member
Registered: 2010-04-27
Posts: 4

Re: Working: Openvpn 2.0.9

Bonjour electrocut,

j'ai un dns 313 et cela m’arrangerais bien si je pouvais utiliser openvpn, mais le lien rapidshare est mort.

C'est pour cela que je te demande s'il serait possible que tu le réupload.

Si tu souhaites que le lien reste bon à vie , tu peux le mettre sur multiupload par exemple ;-), si ca ne te dérange pas.

Merci d'avance,

A+

Offline

 

#14 2011-09-28 01:30:18

Electrocut
Member
From: France
Registered: 2009-04-05
Posts: 195

Re: Working: Openvpn 2.0.9

Hi !

(rikiki was telling me that the link was dead again, and that I could use multipload so that the link won't expire)

So, new link on the first page wink


DNS-313

Offline

 

#15 2011-09-28 22:07:22

rikiki
New member
Registered: 2010-04-27
Posts: 4

Re: Working: Openvpn 2.0.9

Milles merci electrocut ! Et quelle rapidité smile

(  Thanks ! You're fast !  )

Offline

 

#16 2012-08-03 12:59:42

mathiaspc
New member
Registered: 2012-08-03
Posts: 2

Re: Working: Openvpn 2.0.9

Hi,

the download link is already down.

Can you post a new one ?


Thank you.

Offline

 

#17 2012-08-03 13:37:01

Electrocut
Member
From: France
Registered: 2009-04-05
Posts: 195

Re: Working: Openvpn 2.0.9


DNS-313

Offline

 

#18 2012-08-03 19:56:18

mathiaspc
New member
Registered: 2012-08-03
Posts: 2

Re: Working: Openvpn 2.0.9

Thanks for the link.

Does anyone have a tun.ko for the Zyxel NSA 220 device ?

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB