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 2008-04-03 20:23:46

masterg
Member
Registered: 2007-09-26
Posts: 11

Need FTP HELP on Port other than 21.

Hello,

I've read through multiple posts here, and still don't know the rhyme or reason for some of the suggestions - a lot of which didn't work.  So I am starting this thread from scratch now. 

Here is the situation:
- FTP works from internet when on port 21.
- When I try to change the FTP port to any other port, with corresponding changes to port forwarding in router, it does not work.
- I've tried the new port with DMZ on, no success.

I  need to find out what settings to setup so I can run the FTP on any port I want.

I have successfully setup an FTP server on other ports on my desktop.  The way I did it was using Passive IP and settings in router for Gene6 FTP server.  The only way I see this happening now with DNS is by editing the ftpaccess file, based on the discussions here - IS this correct?  Also, where can I find this file in v1.04.

Thank you.

Offline

 

#2 2008-04-03 20:44:55

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: Need FTP HELP on Port other than 21.

Just a suggestion - the problem may be the firewall at the client end.

You mention that you were successful in setting up an ftp server to an alternate port on your desktop, using "passive ip", I suspect you mean passive ftp - what passive ftp does is allow both the control and the data channel to be established by the client, active or standard ftp requires that the control channel be established by the client and the data channel be established by the server, and this can cause a problem when the firewall at the client end does not associate the incoming data channel with the previously established outgoing control channel and drops it.

Put the client in the DMZ and try again.

Offline

 

#3 2008-04-03 21:04:27

masterg
Member
Registered: 2007-09-26
Posts: 11

Re: Need FTP HELP on Port other than 21.

Additionally - Based on http://dns323.kood.org/forum/t1854-cann … -1.04.html
I stopped the FTP server from GUI and run from telnet as:

/usr/bin/pure-ftpd -c 10 -I 2 -P 68.xxx.xxx.xxx -p 14000:14050 -S 4141
What i tried to do is, run it with 10 users, 2 min timeout, IP address of my cable modem, passive range, and port i want to run it on 4141.


(Reference:  /usr/bin/pure-ftpd -c <max users> -I <timeout> -P <IP> -p <low passive range:high passive range> -S <Port>)


It just sits there sad  what gives.

Offline

 

#4 2008-04-03 21:06:09

masterg
Member
Registered: 2007-09-26
Posts: 11

Re: Need FTP HELP on Port other than 21.

fordem wrote:

Just a suggestion - the problem may be the firewall at the client end.

You mention that you were successful in setting up an ftp server to an alternate port on your desktop, using "passive ip", I suspect you mean passive ftp - what passive ftp does is allow both the control and the data channel to be established by the client, active or standard ftp requires that the control channel be established by the client and the data channel be established by the server, and this can cause a problem when the firewall at the client end does not associate the incoming data channel with the previously established outgoing control channel and drops it.

Put the client in the DMZ and try again.

When you say 'put the client in the DMZ'  - I am using DDWRT, and in DMZ, i can only edit the xxx part of the ip - 192.168.1.xxx.  I set this up as the ip of the dns-323, is that what you meant?

Thanks.

Offline

 

#5 2008-04-03 23:07:50

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: Need FTP HELP on Port other than 21.

The DNS-323 is the server, the client would be what ever computer you're trying to connect to the DNS-323 from.

Offline

 

#6 2008-04-04 00:12:08

masterg
Member
Registered: 2007-09-26
Posts: 11

Re: Need FTP HELP on Port other than 21.

fordem wrote:

The DNS-323 is the server, the client would be what ever computer you're trying to connect to the DNS-323 from.

I guess I can't put it in there, cuz all it lets me put in is IP's on my router and only 1 at that..

Offline

 

#7 2008-04-04 01:00:21

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: Need FTP HELP on Port other than 21.

No, you can't - you have to put the client in the DMZ of the router that the client is connected to - not the DMZ of the router that the DNS-323 is connected to.

Perhaps now would be a good time to get a book on basic networking and do some reading - get an understanding of what a server is, what a client is, what a router is, what a DMZ is, what ftp is and how it works.

Offline

 

#8 2008-04-22 17:03:41

masterg
Member
Registered: 2007-09-26
Posts: 11

Re: Need FTP HELP on Port other than 21.

masterg wrote:

Additionally - Based on http://dns323.kood.org/forum/t1854-cann … -1.04.html
I stopped the FTP server from GUI and run from telnet as:

/usr/bin/pure-ftpd -c 10 -I 2 -P 68.xxx.xxx.xxx -p 14000:14050 -S 4141
What i tried to do is, run it with 10 users, 2 min timeout, IP address of my cable modem, passive range, and port i want to run it on 4141.


(Reference:  /usr/bin/pure-ftpd -c <max users> -I <timeout> -P <IP> -p <low passive range:high passive range> -S <Port>)


It just sits there sad  what gives.

Bump - Still no luck with the DMZ suggestions previously posted.  Can some one with a DNS323 and a router running DDWRT post their findings.  Also as quoted above, how can I run the ftp server manually using the command line above - this way I can specify the passive port range and external IP for my router.

Thanks.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB