Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pure-FTPD nightmare?
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
Uranus
Guru
Guru


Joined: 07 May 2002
Posts: 438
Location: Portugal, Braga

PostPosted: Mon May 20, 2002 1:04 pm    Post subject: Pure-FTPD nightmare? Reply with quote

Code:
root@uranus init.d # ./pure-ftpd start
 * Starting Pure-FTPd...                                                  [ ok ]
root@uranus init.d # ftp localhost   
ftp: connect: Connection refused


Code:

# Config file for /etc/init.d/pure-ftpd
##Comment variables out to disable its features, or change the values in it... ##

## This variable must be uncommented in order for the server to start ###
IS_CONFIGURED="yes"

## FTP Server,Port (separated by comma) ##
SERVER="-S 192.168.0.2,21"

## Number of simultaneous connections in total, and per ip ##
MAX_CONN="-c 3"
MAX_CONN_IP="-C 1"

## Start daemonized in background ##
DAEMON="-B"

## Don't allow uploads if the partition is more full then this var ##
DISK_FULL="-k 90%"

## If your FTP server is behind a NAT box, uncomment this ##
USE_NAT="-N"

## Authentication (others are 'pam', ...)##
AUTH="-l unix"

## Misc. Others ##
MISC_OTHER="-A -x -X -j -R -t 15 -K -E -H -I 10 -F /usr/share/fortune/startrek -l puredb:/etc/pureftpd.pdb"




HEEEEELLLP... pure-ftpd doesn't respond for some obscure reason... any ideas?
Back to top
View user's profile Send private message
sena
n00b
n00b


Joined: 13 May 2002
Posts: 38
Location: Lisbon, Portugal

PostPosted: Mon May 20, 2002 1:31 pm    Post subject: Re: Pure-FTPD nightmare? Reply with quote

Uranus wrote:

Code:

# Config file for /etc/init.d/pure-ftpd
##Comment variables out to disable its features, or change the values in it... ##

## This variable must be uncommented in order for the server to start ###
IS_CONFIGURED="yes"

## FTP Server,Port (separated by comma) ##
SERVER="-S 192.168.0.2,21"

...


HEEEEELLLP... pure-ftpd doesn't respond for some obscure reason... any ideas?


You are trying to connect to localhost... Probably (most likely) 127.0.0.1.

Well, the SERVER="-S 192.168.0.2,21" line in your config file is making pure-ftpd binding only to the interface with that address...

Try ftping to 192.168.0.2:21 or try removing that line from the config file (so that pure-ftpd will bind to all interfaces)...

Regards, sena.
_________________
sena@smux.net, http://smux.net/
Back to top
View user's profile Send private message
Uranus
Guru
Guru


Joined: 07 May 2002
Posts: 438
Location: Portugal, Braga

PostPosted: Mon May 20, 2002 8:55 pm    Post subject: my bad Reply with quote

yep you were right... I commented the line and it works perfectly now ... thanks!
Back to top
View user's profile Send private message
sena
n00b
n00b


Joined: 13 May 2002
Posts: 38
Location: Lisbon, Portugal

PostPosted: Tue May 21, 2002 7:09 pm    Post subject: Re: my bad Reply with quote

Uranus wrote:
yep you were right... I commented the line and it works perfectly now ... thanks!


No problem. :D

De nada.. (não tinha reparado que eras português... :) )
_________________
sena@smux.net, http://smux.net/
Back to top
View user's profile Send private message
TheWart
Guru
Guru


Joined: 10 May 2002
Posts: 432
Location: Nashville,TN - USA

PostPosted: Wed May 22, 2002 12:32 am    Post subject: Reply with quote

hmm, this may be a dumb question, but if one removes that, what will be the address to connect to it? your ip?
_________________
Face it, we are all noobs.

On the box it said it was designed for Win XP or better, so why won't it work with Linux?
Back to top
View user's profile Send private message
sena
n00b
n00b


Joined: 13 May 2002
Posts: 38
Location: Lisbon, Portugal

PostPosted: Wed May 22, 2002 3:42 am    Post subject: Reply with quote

TheWart wrote:
hmm, this may be a dumb question, but if one removes that, what will be the address to connect to it? your ip?


After removing that line, the service will be available from every IP address on every interface of the machine...

So, you can choose whichever IP address suits you best... 8)
_________________
sena@smux.net, http://smux.net/
Back to top
View user's profile Send private message
Curious
Bodhisattva
Bodhisattva


Joined: 13 May 2002
Posts: 395
Location: Sydney, Australia

PostPosted: Wed May 22, 2002 3:56 am    Post subject: Reply with quote

sena wrote:
After removing that line, the service will be available from every IP address on every interface of the machine...


The reason the line is there at all is so, for example, if you had two links, one to a local network ( 192.168.1.* ) and the other to the internet at large ( 203.56.8.1, for example ), you could restrict the ftp access so that only local area people could log in and leech your stuff.

A lot of system daemons use this functionality. :-)

Bryn.
_________________
Are you down with the Hawk?
Back to top
View user's profile Send private message
TheWart
Guru
Guru


Joined: 10 May 2002
Posts: 432
Location: Nashville,TN - USA

PostPosted: Wed May 22, 2002 5:13 am    Post subject: Reply with quote

Quote:
The reason the line is there at all is so, for example, if you had two links, one to a local network ( 192.168.1.* ) and the other to the internet at large ( 203.56.8.1, for example ), you could restrict the ftp access so that only local area people could log in and leech your stuff.


Ahhh, that explains it, thanks a lot. That is what I am probably going to do to setup up a small critical-file backup on the linux machine without having to do samba or something like that.
_________________
Face it, we are all noobs.

On the box it said it was designed for Win XP or better, so why won't it work with Linux?
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