Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pure-ftpd pasv problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
volospin
Apprentice
Apprentice


Joined: 06 Aug 2002
Posts: 156
Location: Hong Kong

PostPosted: Wed Nov 13, 2002 9:16 am    Post subject: pure-ftpd pasv problem Reply with quote

well... I typed the following command

/usr/sbin/pure-ftpd -N -p 20001:20021 -P xxx.xxx.xxx.xxx &

then the result is can't do passive mode...

any clue?
_________________
PIII-S 1.4G / 512MB / TUSL2-M / 3C920 x 2 / Seagate Barracuda IV 40GB
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Wed Nov 13, 2002 1:05 pm    Post subject: Re: pure-ftpd pasv problem Reply with quote

volospin wrote:
/usr/sbin/pure-ftpd -N -p 20001:20021 -P xxx.xxx.xxx.xxx &

The '-N' option is for nat-mode and forces active mode. So you're essentially telling pure-ftpd not to use passive mode.

Also, why are you starting it that way instead of configuring it via /etc/conf.d/pure-ftpd and starting it with /etc/init.d/pure-ftpd start?

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
volospin
Apprentice
Apprentice


Joined: 06 Aug 2002
Posts: 156
Location: Hong Kong

PostPosted: Thu Nov 14, 2002 2:54 am    Post subject: Reply with quote

Thanks... it is working without the -N
but then, I got another problem.
how do I input a fix IP while I am having dynamic IP.
it doesn't accept dynamic DNS as an input.
_________________
PIII-S 1.4G / 512MB / TUSL2-M / 3C920 x 2 / Seagate Barracuda IV 40GB
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Thu Nov 14, 2002 12:47 pm    Post subject: Reply with quote

volospin wrote:
how do I input a fix IP while I am having dynamic IP.

There's probably more than one way to do this, but you should be able to modify the conf file a bit to grep your IP address from ifconfig. So, where /etc/conf.d/pure-ftpd looks something like this:
Code:
## FTP Server,Port (separated by comma) ##
SERVER="-S 192.168.1.1,21"


You could modify it to: (warning: untested code)
Code:
## FTP Server,Port (separated by comma) ##
IP_ADDR= `ifconfig eth0 |grep inet |cut -f 2 -d : |cut -f 1 -d \ `
SERVER="-S $IP_ADDR,21"


That's just written off the top of my head, so it may not work as a cut'n'paste solution. However, play around with it and you should be able to get something similar working.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum