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 2007-04-18 23:09:16

artefax
Member
Registered: 2007-02-02
Posts: 17

Telnet Problem ...

Hi all.

I try to have Telnet running but still get a "Unable to open connection to host on port 23 : connection failure".

fun_plug seems to work fine (I've a dmesg.out file) but not the Telnet script (no ash shortcut on root).

All the files are 777 and in HD_a2 directory.

Here is my fun_plug file :

""""""""""""""""""""""""""""""""""""""""""""""""""""""""
#!/bin/sh

sleep 30

Dir_Len=28
Filename_Len=26
CUSTOMIZEHDPATH=/sys/custom/shared_name/HD

file=$(find "$CUSTOMIZEHDPATH"/*)
HD_Path=`expr substr "$file" "$Dir_Len" "$Filename_Len"`
HD_Path=$HD_Path"a2"

if [ -e /mnt/$HD_Path/fun_plug ]; then
        echo "function plug enable"
        /mnt/$HD_Path/fun_plug
fi

#!/bin/sh
dmesg > /mnt/HD_a2/dmesg.out


#!/bin/sh
if [ ! -e /mnt/HD_a2/ash ]
then
  ln -s /mnt/HD_a2/busybox /mnt/HD_a2/ash
fi
if [ ! `grep root /etc/shadow` ]
then
  echo kontroll.`grep admin /etc/shadow` >> /etc/shadow
  /mnt/HD_a2/sed -i -e 's/kontroll.admin/root/' /etc/shadow
fi
/mnt/HD_a2/sed -i -e 's/root:.*/root:x:0:0:Linux User,,,:\/:\/mnt\/HD_a2\/ash/' /etc/passwd
cd /dev && /mnt/HD_a2/busybox makedevs ptyp c 2 0 0 9
cd /dev && /mnt/HD_a2/busybox makedevs ttyp c 3 0 0 9
/mnt/HD_a2/busybox telnetd &
""""""""""""""""""""""""""""""""""""""""""""""""""""""""

Nothing more than a copy/paste of all scripts ...


I've a firewall running (Sygate) but I still have the problem when it's off.
I'm behind a router and nat the way to the DSM with a good old Port Forwarding on port 23.

The strange stuff is that this damned telnet was working before !!! But I had to format the all drive and "re-install" fun_plug ... Since then ... sad


I really don't know what to do.

Thank for you help.

Artefax

Offline

 

#2 2007-04-19 09:55:07

artefax
Member
Registered: 2007-02-02
Posts: 17

Re: Telnet Problem ...

Some news : now the script works -> the ash shortcut is now in the DS-a2 directory.

But I still have the same connexion problem.

It's really strange because the ftp server and lan acces work fine.

Any idea ?

Offline

 

#3 2007-04-19 10:04:32

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Telnet Problem ...

artefax wrote:

Nothing more than a copy/paste of all scripts ...

This is just wrong. I suggest you to always read howto's carefully and if you don't understand you can ask help from here (forum).

Also I suggest you to delete some lines off from your fun_plug, for example the ones you did take from fun_plug background info section


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#4 2007-04-19 11:22:59

artefax
Member
Registered: 2007-02-02
Posts: 17

Re: Telnet Problem ...

Ok ...
Shame, shame, shame, shame, shame, shame, shame, shame, shame on me.

I was certain that the script taken from "fun_plug background info section" must be in fun_plug file.

Everything works now.

I have just another question about mt-daapd.
It works great and i can see the serveur on Itunes (the server's appears two times !) but I have no idea how to get access to Firefly from "outside" the LAN.

I try to get access to the configuration files (I look for http://192.168.0.x/HD_a2/mt-daapd/admin-root/index.html with my browser) but It doesn't work.

I look to the Firefly Wiki and forum but I didn't find the specific info for the DSM.

Do you know where I can find more infos ?

Thank again for your help.

Offline

 

#5 2007-04-19 11:32:20

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Telnet Problem ...

mt-daap admin interface should run on 3689 port. So http://192.168.0.x:3689 should work smile


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#6 2007-04-19 15:26:15

artefax
Member
Registered: 2007-02-02
Posts: 17

Re: Telnet Problem ...

Everything works great now.

I just don't understrand if I can acces to a mt-daap server through internet (and how).
I don't think so (I've found nothing like this in ITunes).

Anyway ...

Thank you again (and again, and again ...) wink

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB