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-03-15 04:19:41

ben_the_french
Member
Registered: 2008-03-15
Posts: 9

cannot find /etc/ftpaccess with firmware 1.04

Hello

I cannot find the configuration file /etc/ftpaccess (by telnet access). Maybe it's because I'm using the firmware 1.04 !?!
do you have any idea?

Do you know another way to configure the ftp server?

thanks

Offline

 

#2 2008-03-15 06:26:11

ben_the_french
Member
Registered: 2008-03-15
Posts: 9

Re: cannot find /etc/ftpaccess with firmware 1.04

With firmware 1.04, it seems to be a new ftp deamon : pureftpd

I've changed its config file (pure-ftpd.conf) by adding those two lines :

passiveportrange = "65400:65500"
forcepassiveip = "mypublicip"

but nothing happens! each time I start the server, the file is reinitialized...

can someone help me?

Offline

 

#3 2008-03-15 23:17:45

dan.crouthamel
Member
Registered: 2007-08-23
Posts: 43

Re: cannot find /etc/ftpaccess with firmware 1.04

ben_the_french wrote:

With firmware 1.04, it seems to be a new ftp deamon : pureftpd

I've changed its config file (pure-ftpd.conf) by adding those two lines :

passiveportrange = "65400:65500"
forcepassiveip = "mypublicip"

but nothing happens! each time I start the server, the file is reinitialized...

can someone help me?

This file isn't read by pure-ftpd itself.  It's written to when updating the ftp setup via the web.  Essentially, it's DLink's config file for passing information to pure-ftpd.  Don't use it smile

So instead of starting the ftp server via the web tool, just start it manually from the command line or put it into a config file to load on startup.  For example, I have something like this in my fun_plug

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

Last edited by dan.crouthamel (2008-03-15 23:18:59)

Offline

 

#4 2008-03-15 23:23:49

sjmac
Member
Registered: 2008-01-21
Posts: 222

Re: cannot find /etc/ftpaccess with firmware 1.04

Snip - definately posted to wrong thread!

Last edited by sjmac (2008-03-15 23:29:30)

Offline

 

#5 2008-03-16 23:31:23

ben_the_french
Member
Registered: 2008-03-15
Posts: 9

Re: cannot find /etc/ftpaccess with firmware 1.04

Thank you dan.crouthamel, it works!

But only with my IP adress, not with my host name! I got
421 Illegal Forced IP for passive connectionsi
Do you have an odea of what the problem is?

Offline

 

#6 2008-03-17 02:39:50

ben_the_french
Member
Registered: 2008-03-15
Posts: 9

Re: cannot find /etc/ftpaccess with firmware 1.04

Ok, it works!

I've just forgot to write the DNS server after the firmware update!

thank you

bye

Offline

 

#7 2008-05-25 00:38:11

halfsoul
Member
Registered: 2008-01-28
Posts: 57

Re: cannot find /etc/ftpaccess with firmware 1.04

Is there a way to view the command-line the DNS issues to start the FTP server during startup?

Here's why I ask: I have multiple users & anonymous pointing to different directories with different access levels.  So I would like to start pure-ftpd with all the correct options to match those users' configurations, except I would like to add the logging switch.  Therefore, I think the best way would be to copy the DNS command-line and then put it in the fun_plug with the logging switch.

Any ideas?  Thanks.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB