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.

#1 2008-03-19 15:41:21

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Radius Server

Has anyone out there attempted to get the Debian version of FreeRadius running on their DNS-323? 

I tried a search of the forum but turned up nothing.  I'm going to begin my attempts at making it work tonight.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#2 2008-03-19 23:49:56

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: Radius Server

Does anyone happen to have an install package for gcc that has all its dependencies with it?  I'm pulling my hair out trying to get all the dependencies rounded up and installed so I can compile OpenSSL on my DNS323.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#3 2008-03-20 00:00:57

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

Re: Radius Server

bq041 wrote:

...so I can compile OpenSSL on my DNS323.

It's not Debian, but it has openssl and a compiler: http://www.inreto.de/dns323/fun-plug/0.5-experimental/

Offline

 

#4 2008-03-20 04:37:47

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: Radius Server

fonz wrote:

It's not Debian, but it has openssl and a compiler: http://www.inreto.de/dns323/fun-plug/0.5-experimental/

Thanks.  I may try that tomorrow.  I finally found all the dependencies, and got them installed, but OpenSSL does not want to compile correctly.  I may do it on my other linux box, but I will need to redo it.  It's running SUSE from about 8 years ago.  Actually, I think the DNS has more processor in it than my old box.  I only need OpenSSL to write the certificates.  I really want to see if I can get FreeRADIUS running.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#5 2008-03-20 14:36:33

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: Radius Server

Fonz

I got the new funplug installed and hade to make a few modifications.  I enabled the usbdisk.sh script, but it didn't work.  I realized that the usb-storage module was not in your package, so I put it in manually.  I also had to modify the usbdisk.sh script obviously for my own mount points and locations, but there was one thing I was confused.  I'm not know the syntax you are using in this line:

insmod /ffp/lib/modules/$(uname -r)/usb-storage.ko        2>/dev/null

It did not load the module and did not seem to do anything when I ran it manually from the shell (though it didn't return errors, either).

Anyway, I rewrote the line:

insmod /ffp/lib/modules/usb-storage.ko

... and it seems to be working fine now.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#6 2008-03-20 14:48:11

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

Re: Radius Server

bq041 wrote:

I got the new funplug installed

Great.

bq041 wrote:

insmod /ffp/lib/modules/$(uname -r)/usb-storage.ko        2>/dev/null

"uname -r" returns the kernel version, eg.

Code:

$ uname -r
2.6.25-rc1-ffp

In this case, the command above will look for the usb-storage.ko module in /ffp/lib/modules/2.6.25-rc1-ffp/. It is common to store kernel modules in a directory that contains the kernel version, because you need different modules for different kernel versions. Your simplification is perfectly fine, though.

Offline

 

#7 2008-03-20 14:51:58

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: Radius Server

Thanks for the explaination.  (3 days ago was my first time back on a linux box in about 7 years.  I feel like a noob all over again.) 

I will set it back and move the module around.  Any reason the usb-module was not included in your tarball?


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#8 2008-03-20 14:59:24

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

Re: Radius Server

bq041 wrote:

Any reason the usb-module was not included in your tarball?

Nothing particuar. I didn't make them and I can't test them, so I rather only give a hint where you can get them.

Offline

 

#9 2008-03-21 18:23:27

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: Radius Server

Just an update.  Taking a little longer than I hoped for.  Everytime I get to where I think I'm close, I get hung up.  I had been hung up for a while trying to compile rtl_eap_tls, but I think I got through that.  Right now I seem to have managed to corrupt the libpthread.so.0 or something. 

--Wait, just got that fixed (Was reinstalling as I was typing this.).  Now I've got a failure of the mmap of a spare page....


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#10 2008-03-21 18:55:17

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: Radius Server

Bad things happen.

I just made an awful noob mistake.  I decided to start from scratch and went to delete my debiam share, but forgot to unmount the binds I had to my hard drives.  Of course it started deleting all the information on them and it forced me to run downstairs and do a hard shutdown of the unit.  Not is is back to square one installing telnet, because my funplug and half my data got erased before I got to the unit.

Oh, well.  Live and learn...


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#11 2008-03-21 20:23:16

bzhou
Member
Registered: 2008-02-15
Posts: 171

Re: Radius Server

It's not Debian, but optware dns323 unstable feed has freeradius 1.1.7 and all the dependencies packaged as ipk's.

See http://www.nslu2-linux.org/wiki/Optware/Dns323 and http://dns323.kood.org/forum/t1797-%5Ba … k%27s.html

for setup.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB