View previous topic :: View next topic |
Author |
Message |
manywele l33t
Joined: 12 Jul 2003 Posts: 743 Location: Inside
|
Posted: Sun Dec 28, 2003 9:50 pm Post subject: pure-ftpd was working... |
|
|
I had pure-ftpd working. It was really easy to set up. Now I tried it again and have the following problems:
1) When trying to start from /etc/init.d it says it's already started but nothing is created in /var/run, ps shows nothing and stopping doesn't do anything.
2) When trying to start from commandline with
Code: | pure-ftpd -S mydomain.com,21 -C 10 -B -l unix -I 60 -A -E -i -X -G -R | the logs say Quote: | [ERROR] Unable to start a standalone server: [Invalid argument] | and no process is started.
The only thing I've done that I can find that would have any effect on this is to upgrade from 2.6.0-test11 to 2.6.0 (that can't be it) and emerge and remove gnome.
Here is my /etc/conf.d/pure-ftpd
Code: | littletimmy /etc # cat conf.d/pure-ftpd | grep -v "#"
IS_CONFIGURED="yes"
SERVER="-S mydomain.com,21"
MAX_CONN="-c 30"
MAX_CONN_IP="-C 10"
DAEMON="-B"
DISK_FULL="-k 90%"
AUTH="-l pam"
TIMEOUT="-I 60"
MISC_OTHER="-A -E -i -X -G -R"
|
Here's my /etc/xinetd.d/pure-ftpd:
Code: | service ftp
{
socket_type = stream
server = /usr/sbin/pure-ftpd
server_args = -s -a 42
protocol = tcp
user = root
wait = no
disable = no
}
|
and my /etc/xinetd.conf
Code: | defaults
{
only_from = 0.0.0.0
instances = 60
log_type = SYSLOG authpriv info
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /etc/xinetd.d
|
I've tried unmerging and reemerging and upgrading to the unstable version (1.0.16c) even though 1.0.16b was working before. No idea what's going on or what I changed to break it. |
|
Back to top |
|
|
khel Tux's lil' helper
Joined: 07 Mar 2003 Posts: 80
|
Posted: Sun Dec 28, 2003 10:31 pm Post subject: |
|
|
Not sure if that'll help (I've been running it for 2 years without changing any settings, so I forgot almost everything about it ), but try running it without any arguments.
/pure-ftpd &
and see if it works
p.s. Why do you need -E and -i switches at the same time btw?? -E should be enough IMHO
khel _________________ If it's stupid but works, it isn't stupid.
Using Gentoo? Help the others! |
|
Back to top |
|
|
manywele l33t
Joined: 12 Jul 2003 Posts: 743 Location: Inside
|
Posted: Sun Dec 28, 2003 10:38 pm Post subject: |
|
|
khel wrote: | try running it without any arguments.
/pure-ftpd &
and see if it works
|
Thanks for the reply.
Running without arguements returns
Code: | Unable to start a standalone server: Address already in use |
khel wrote: |
p.s. Why do you need -E and -i switches at the same time btw?? -E should be enough IMHO
khel |
See your sig .
(Just didn't notice actually.) |
|
Back to top |
|
|
khel Tux's lil' helper
Joined: 07 Mar 2003 Posts: 80
|
Posted: Sun Dec 28, 2003 11:32 pm Post subject: |
|
|
Try commenting
SERVER="-S mydomain.com,21" line and run it again.
Usually, if something doesn't work and I'm not sure what's wrong, then I just apply the "process of elimination" to narrow down the problem
khel _________________ If it's stupid but works, it isn't stupid.
Using Gentoo? Help the others! |
|
Back to top |
|
|
Lews_Therin l33t
Joined: 03 Oct 2003 Posts: 657 Location: Banned
|
Posted: Sun Dec 28, 2003 11:41 pm Post subject: |
|
|
That means that something is already using port 21...fire off an lsof -i, and kill whatever is there. |
|
Back to top |
|
|
manywele l33t
Joined: 12 Jul 2003 Posts: 743 Location: Inside
|
Posted: Mon Dec 29, 2003 12:09 am Post subject: |
|
|
Lews_Therin wrote: | That means that something is already using port 21...fire off an lsof -i, and kill whatever is there. |
Thanks, that did it. xinetd was using it. Now my problem is the firewall. It was working before with the firewall just 2 weeks ago. What the hell did I do? Did I miss a module in the 2.6.0 kernel maybe?I have the following entries in my script:
Code: | #Allow ftp to send data back and forth.
$IPT -A INPUT -p tcp ! --syn --source-port 20 --destination-port 1024:65535 -j ACCEPT
$IPT -A INPUT -p tcp --dport 21 -j ACCEPT
|
Is something wrong here? I'm no iptables expert. |
|
Back to top |
|
|
manywele l33t
Joined: 12 Jul 2003 Posts: 743 Location: Inside
|
Posted: Mon Dec 29, 2003 3:41 am Post subject: |
|
|
For some reason pure-ftpd is sending from some port > 1024 to some port > 1024. Why? I added this to my iptables
Code: | $IPT -A INPUT -p tcp --sport 1024:65535 --dport 1024:65535 -j ACCEPT
|
and that seemed to do the trick. Is this right?
So many questions.
What does xinetd do and why is it running by default at boot?
Do I need it for anything?
Why is pure-ftpd talking on these high ports?
What changed in the last 2 weeks?
I see some time with google in my future...
Thanks for the help peeps. |
|
Back to top |
|
|
monotux l33t
Joined: 09 Sep 2003 Posts: 751 Location: Stockholm, Sweden
|
Posted: Mon Dec 29, 2003 10:36 am Post subject: |
|
|
tried to start your server like this?
Code: | /etc/init.d/pure-ftpd start |
pure-ftpd works like a charm for me, with a minimum of configuration, and that was a easy conf-file to understand. _________________ Computer science is no more about computers than astronomy is about telescopes. |
|
Back to top |
|
|
manywele l33t
Joined: 12 Jul 2003 Posts: 743 Location: Inside
|
Posted: Mon Dec 29, 2003 11:01 am Post subject: |
|
|
Yeah, it worked like a charm for me with a minimum of configuration 2 weeks ago. Then it went all to hell. All better now though. Thanks for the input. Any comments on the iptables? |
|
Back to top |
|
|
|