View previous topic :: View next topic |
Author |
Message |
volospin Apprentice
Joined: 06 Aug 2002 Posts: 156 Location: Hong Kong
|
Posted: Wed Nov 13, 2002 9:16 am Post subject: pure-ftpd pasv problem |
|
|
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 |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Wed Nov 13, 2002 1:05 pm Post subject: Re: pure-ftpd pasv problem |
|
|
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 |
|
|
volospin Apprentice
Joined: 06 Aug 2002 Posts: 156 Location: Hong Kong
|
Posted: Thu Nov 14, 2002 2:54 am Post subject: |
|
|
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 |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Thu Nov 14, 2002 12:47 pm Post subject: |
|
|
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 |
|
|
|