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-09-27 18:27:04

thudo
Member
Registered: 2007-09-27
Posts: 15

DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

Just purchased my DNS-323, formatted drive to EXT2, flashed it to 1.03 and am now using it.

I am attempting to run an FTP server on it with the proper port forwarded to the LAN IP of the DNS-323. Also have DynDns tunneling to my WAN IP as I have before when using ServU this way. However, decided to retire my old workstation that ran ServU fine for these years and get the DNS-323 as it was cheaper on hydro overtime wink

Now the situation..

I can log into the FTP server using INET7 no problems from my main computer hooked to the WRT54GS Router the NAS is hooked on BUT when I use something like CuteFTP or FXP its f**ked up and won't connect.

It basically gives me screwy PASV errors and when I try to connect using PORT I get "500 PORT error". WTF!?!??! It tells me its logging in correctly with username/password but it seems to be an issue with "directory listing" as it tries to list the contents of the main folder. Ughhhhhh.

Anyone have an idea what could be the matter. Feel stupid that it should be easy to work this out.

Thanks everyone!

e.

Offline

 

#2 2007-09-28 05:20:24

blizzard182
Member
Registered: 2007-09-20
Posts: 52

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

Hi

Try to check/uncheck the passive mode connection.

Offline

 

#3 2007-09-28 05:34:28

thudo
Member
Registered: 2007-09-27
Posts: 15

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

Thanks for responding, Blizzard..

You mean uncheck Passive mode in the client connecting to my ftp server? Doesn't work..

If I connect to my DNS-323 ftp server using a client like CuteFTP using Passive mode I get this:

Code:

ERROR:>       [27/09/2007 10:16:36 PM] The remote host actively refused the attempt to connect to it.
 NOTE:>        [27/09/2007 10:16:36 PM] Time zone synchronization failed.
STATUS:>      [27/09/2007 10:16:36 PM] Time zone synchronization
COMMAND:>    [27/09/2007 10:16:36 PM] PASV
        [27/09/2007 10:16:36 PM] 553 gs_tmp_tz.4823.29: Permission denied.
ERROR:>       [27/09/2007 10:16:36 PM] Access denied.
ERROR:>       [27/09/2007 10:16:36 PM] Failed to establish data socket.
 NOTE:>        [27/09/2007 10:16:36 PM] Time zone synchronization failed.
COMMAND:>    [27/09/2007 10:16:36 PM] TYPE A
        [27/09/2007 10:16:36 PM] 227 Entering Passive Mode (192,168,1,105,240,236)
COMMAND:>    [27/09/2007 10:16:36 PM] PASV
        [27/09/2007 10:16:36 PM] 200 Type set to A.
ERROR:>       [27/09/2007 10:16:36 PM] Failed to establish data socket.
        [27/09/2007 10:16:36 PM] 227 Entering Passive Mode (192,168,1,105,240,236)
        [27/09/2007 10:18:36 PM] 421 Timeout (120 seconds): closing control connection.
ERROR:>       [27/09/2007 10:18:36 PM] Trashed response received.

If I try the same from the client using PORT I get:

Code:

STATUS:>      [27/09/2007 10:29:54 PM] Login successful.
COMMAND:>    [27/09/2007 10:29:54 PM] PWD
        [27/09/2007 10:29:54 PM] 257 "/" is current directory.
STATUS:>      [27/09/2007 10:29:54 PM] Home directory: /
COMMAND:>    [27/09/2007 10:29:54 PM] REST 100
        [27/09/2007 10:29:54 PM] 350 Restarting at 100. Send STORE or RETRIEVE to initiate transfer.
STATUS:>      [27/09/2007 10:29:54 PM] This site can resume broken downloads.
COMMAND:>    [27/09/2007 10:29:54 PM] REST 0
        [27/09/2007 10:29:54 PM] 350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer.
COMMAND:>    [27/09/2007 10:29:54 PM] PORT 192,168,1,101,15,210
        [27/09/2007 10:29:54 PM] 500 Illegal PORT Command
ERROR:>       [27/09/2007 10:29:54 PM] Syntax error: command unrecognized.
ERROR:>       [27/09/2007 10:29:54 PM] Failed to establish data socket.

Now, if I set the DNS-323 FTP server to use Port 21 then open that port on the Router/NAT then connect using CuteFTP on the client it works perfectly.

BUT - the whole intention of this setup is to ensure the Port # is high since I have clients using my old site and expecting the same port # I've been using for awhile (ie. Port: 9000).

So while the Router is open to that high port, and the DNS-323 FTP server is set to that as well I get the above errors.

Hope this helps.

Btw, is this what I need to do to get it working? http://dns323.kood.org/howto:open_ports_ftpd

I haven't used Telnet in years.. last thing I want to do is "brick" my DNS-323 knowing how utterly horrific Dlink tech support is. :S

e.

Offline

 

#4 2007-10-01 08:01:34

thudo
Member
Registered: 2007-09-27
Posts: 15

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

Noone?

Offline

 

#5 2007-10-01 08:15:35

fickle
Member
From: Melbourne, Australia
Registered: 2007-09-10
Posts: 249

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

isnt there two ports you need to open? i remember needing to forward 20 & 21 for FTP

config statement from my cisco for FTP

ip nat inside source static tcp 192.168.0.11 20 interface Dialer1 20
ip nat inside source static tcp 192.168.0.11 21 interface Dialer1 21

access-list 101 permit tcp any any eq ftp-data
access-list 101 permit tcp any any eq ftp

hope that helps (somehow)

Offline

 

#6 2007-10-01 15:01:02

thudo
Member
Registered: 2007-09-27
Posts: 15

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

Just tried that. Nope -- same result. Regardless, the point of this is to NOT have the FTP on Port 21 because of attacks associated with that common port.

I've always had the FTP on Port 9855 on my workstation when I ran Serv-U from it. Now for some bloody reason this DNS-323 won't communicate via the FTP Server outside the NAT unless its on anything except Port 21. This is why I need someone who is familiar with the telnet scripts to change it internally as mentioned in the "open_ports" wiki above. This is likely the key.

Offline

 

#7 2007-10-02 01:24:21

fickle
Member
From: Melbourne, Australia
Registered: 2007-09-10
Posts: 249

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

i would have to agree with you on that

anyone?

Offline

 

#8 2007-10-02 01:48:29

blizzard182
Member
Registered: 2007-09-20
Posts: 52

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

Hi, sorry for the delay. Yeah, I meant the connection mode in the FTP client.

Let me check that wiki...

Edit:

Alright it doesnt seem too difficult but did you read the part where you need to put the external router IP? You will need to change that every time your IP changes. I dont think you can add a FQHN there.

I am guessing you are gonna need to have telnet access activated too and change that manually everytime your ip changes.

Last edited by blizzard182 (2007-10-02 01:58:56)

Offline

 

#9 2007-10-02 02:09:32

thudo
Member
Registered: 2007-09-27
Posts: 15

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

Thanks Blizzard.

My IP does NOT change often at all and besides its dynamically binded to a DNS using dyndns anyway.

Problem is this: how the heck do I get that ipaccess file using telnet? I can log into the device no problem using it but none of the commands I am told to do work once in the device.

I tried creating my own ipaccess file and placing it on the root of the DNS-323 drive using the Easy Search Utility (drive is shared) but it never does anything. I believe I have placed it in the correct location. Telnet is another world it seems.

There has to be an easier way to do this via Telnet.

Offline

 

#10 2007-10-02 02:27:52

fickle
Member
From: Melbourne, Australia
Registered: 2007-09-10
Posts: 249

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

curious, you sure your FTP'ing into the right location? maybe you have 2 FTP servers? (did this one by accident)..

Offline

 

#11 2007-10-02 03:49:26

thudo
Member
Registered: 2007-09-27
Posts: 15

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

Nope. In the router I set what port to open and at what IP. The IP is the NAS. There is no way to mistake this. Anyway, how the heck can I have 2 FTP servers when the other older one is turned off? :S

Offline

 

#12 2007-10-02 04:14:40

blizzard182
Member
Registered: 2007-09-20
Posts: 52

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

Ohh I see then it is easier then...

Make this..

telnet 'dns323'

Then use this commands and the equal in windows:

ls = dir
cd = cd
rm = del (watch out for this since linux does not give you a warning before deleting a file and if a filename with the same name exists, it will be overwritten with no warnings)
copy = cp

To rename a file is a bit tricky. Use the mv command. You are actually "moving" the file in the same place. Example, you want test1 yo be test2. Make this 'mv test1 test2'

Havent checked if there is a man command in this linux. If it does, always try a 'man <commandHere>' and if there is a help file, it will show you that. You can leave that pressing q.

Also, what you want is to access the disk. Lets say it is ont bay 1 (most likely) then you will need to do this...

cd /mnt/HD_a2

Edit (Just to add something. It is NOT the same mnt or /mnt. The first / let Linux knows that you want to start looking starting the root of the filesystem while just mnt is starting your current location)


Inside /mnt are the devices which are mounted in the system. The disks are HD_a2 and HD_a4 (Caps count here)

Then if you do a ls command you are going to see the content of your disk as if you mapped the drive there. (sorry my english is not that rich sometimes)

After that, you will need to edit some files. Use the vi command.

'vi example.txt' creates a file in that directory. If it exists, the vi command edits the file. And these are the most common commands for vi...

Press i (yes, the letter i) to insert some text after you are watching the file.
Then, to exit the vi editor you need to press esc key. You wont leave the program but the mouse will go to the bottom line. There you can write these..

:w  (saves the file)
:q (exit the program)
:wq (saves and then exit the program)

If you are having any trouble... use :q! (with the exclamation) and it will force the program to quit.

Does it help? Let me know if you dont understand anything. It was just some brainstorming of thoughts. Dont know if makes any sense to you.

Last edited by blizzard182 (2007-10-02 04:21:59)

Offline

 

#13 2007-10-02 06:50:54

thudo
Member
Registered: 2007-09-27
Posts: 15

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

Do I use the telnet from within START/RUN/CMD ? I can log into the DNS-323 with my admin password but the problem is any command I issue says "command not understood". ie. there is no ls or cd even. Perhaps the problem is I don't have a proper client.

But yes but you are saying Blizzard is VERY helpful. Problem is: once I'm into the device via telnet no commands seem to work.

Offline

 

#14 2007-10-02 17:01:56

blizzard182
Member
Registered: 2007-09-20
Posts: 52

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

Well, I am using the fun_plug telnet and I enter via cmd and then telnet. Port is 23

You should be getting a BusyBox welcome screen.

I assumed you were using the same. My bad.

Offline

 

#15 2007-10-02 17:11:25

thudo
Member
Registered: 2007-09-27
Posts: 15

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

Gather I should install that fun_plug as well to ensure we're talking the same. I assume its not too hard installing the fun_plug? I'm just not up to task to "brick" my DNS-323 knowing Dlink has the worst techsupport on the planet. :s

Offline

 

#16 2007-10-03 01:11:17

fickle
Member
From: Melbourne, Australia
Registered: 2007-09-10
Posts: 249

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

i thought putting in fun_plug would be difficult. however, found that to be the contrary. this is quite simple and very safe. just follow the instructions within the wicki

Offline

 

#17 2007-10-03 01:50:16

thudo
Member
Registered: 2007-09-27
Posts: 15

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

I'll get it installed asap then we can talk apples-apples. wink

Offline

 

#18 2007-10-03 02:34:07

blizzard182
Member
Registered: 2007-09-20
Posts: 52

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

Alright. Do that then. Just to check. I was talking about Fonz fun_plug but if you dont need the extra things I think any telnet client would do the trick. Let us know when you are able to browse and use the commands I gave you or if you have any trouble.

Offline

 

#19 2007-10-03 08:30:56

fickle
Member
From: Melbourne, Australia
Registered: 2007-09-10
Posts: 249

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

i think i installed fonz fun_plug but now i cant remember, how does one tell?

Offline

 

#20 2007-10-05 02:45:29

blizzard182
Member
Registered: 2007-09-20
Posts: 52

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

check your root of Volume_1. If you see a folder called fun_plug.d and if you do a telnet to your DNS and a Busy Box shell answers...then I believe you can say you have fonz fun_plug

Offline

 

#21 2007-10-08 01:20:25

fickle
Member
From: Melbourne, Australia
Registered: 2007-09-10
Posts: 249

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

fonz it is

cheers

Offline

 

#22 2007-10-15 05:53:23

blizzard182
Member
Registered: 2007-09-20
Posts: 52

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

So..did you get it working man?

Offline

 

#23 2007-10-15 06:07:46

thudo
Member
Registered: 2007-09-27
Posts: 15

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

My main comp's mobo died so I still have the DNS-323's FTP server on Port 21 (easily forwarded from my Linksys WRT54GS).

When my main comp is back online I will be installing the fun_plug for the 323. Sorry for the delay 323 owners. Yes this is kinda important although I still ask: WHY THE HELL ARE NATs never supported properly? This is 2007, **NOT** 2000. I should NOT need to hack my 323 to get an FTP Server to work on different ports going through a NAT (which, oh, 80% of the internet users out there own!! Grrrrrrrrrr!).

Offline

 

#24 2007-10-16 01:44:12

blizzard182
Member
Registered: 2007-09-20
Posts: 52

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

Yeah, I guess is how business works.

Sorry about your mobo. And dont worry about the delay. I remembered the post the other day ad did not know if you got it working.

Offline

 

#25 2007-10-17 03:37:21

BanditRider
New member
Registered: 2007-10-17
Posts: 1

Re: DNS-323 (v1.03) + Linksys WRT54GS (latest firmware) + DynDns

Have you tried forwarding your wan port 9855 to your NAS IP port 21?
My Linksys router has a tab for Port Range Forwarding which passes a port to an IP address
and Port Forwarding which forwards a port to a different port.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB