View previous topic :: View next topic |
Author |
Message |
madtinkerer Tux's lil' helper
Joined: 14 Nov 2002 Posts: 122 Location: London Ontario Canada
|
Posted: Thu Jul 24, 2003 1:54 pm Post subject: Cannot connect to ftp server |
|
|
Let me preface this with a warning that I am an absolute linux networking noob.
I'm trying to setup a personal ftp server on my computer. (Pure-ftpd) I think I've got the server setup correctly, because I can successfully ftp localhost, but if I try to ftp my ip address, or my noip domain name, I get a connection refused error. I've tried this both with the rp-pppoe firewall able and disabled, thinking that might be the problem but it doesn't seem to be.
Could someone help me figure this problem out. I've got my /etc/hosts file setup like this, but i have no idea whether it's right or not:
127.0.0.1 localhost
127.0.0.1 dscott.no-ip.org
The noip account is working because I can ping myself using the noip domain name, but after that I'm stumped.
I'm not sure exactly what info you need, so just let me know and i'll post whatever is necessary.
Thanks,
madtinkerer |
|
Back to top |
|
|
aridhol Guru
Joined: 20 Jan 2003 Posts: 509 Location: Stockholm, Sweden
|
Posted: Thu Jul 24, 2003 4:05 pm Post subject: |
|
|
Are you sure you started the ftp-server?
Code: | /etc/init.d/proftpd start |
[Edit] And about the no-ip. Can you ping the address from another computer? _________________ 72 of Pitcairn Islands 49 inhabitants use Seti@Home
"If you buy a DVD you have a copy. If you want a backup copy you buy another one."
"Anyone who is capable of getting themselves made President should on no account be allowed to do the job." |
|
Back to top |
|
|
madtinkerer Tux's lil' helper
Joined: 14 Nov 2002 Posts: 122 Location: London Ontario Canada
|
Posted: Thu Jul 24, 2003 5:45 pm Post subject: |
|
|
I'm not at my computer right now, but I'm sure I started the server. I can ftp localhost and connect to the fully working server. As for the other question, i just pinged the no-ip address and it worked fine. (dscott.no-ip.org)
madtinkerer |
|
Back to top |
|
|
aridhol Guru
Joined: 20 Jan 2003 Posts: 509 Location: Stockholm, Sweden
|
Posted: Thu Jul 24, 2003 6:37 pm Post subject: |
|
|
Hm... I have never run into this problem, but you might want to check out this thread
Seams to be tha same problem, but with ssh instead. _________________ 72 of Pitcairn Islands 49 inhabitants use Seti@Home
"If you buy a DVD you have a copy. If you want a backup copy you buy another one."
"Anyone who is capable of getting themselves made President should on no account be allowed to do the job." |
|
Back to top |
|
|
madtinkerer Tux's lil' helper
Joined: 14 Nov 2002 Posts: 122 Location: London Ontario Canada
|
Posted: Thu Jul 24, 2003 7:42 pm Post subject: |
|
|
aridhol,
Thanks for the help so far. Anyway, I read that thread and I nmapped my system, revealing that no ftp port is open isn't open. I don't know enough about firewalls to know how to open port 21. I haven't initiated a firewall, although I searched and iptables is installed. Now what?
madtinkerer |
|
Back to top |
|
|
aridhol Guru
Joined: 20 Jan 2003 Posts: 509 Location: Stockholm, Sweden
|
Posted: Thu Jul 24, 2003 8:06 pm Post subject: |
|
|
Hm, if you havn't done anything to your firewall then no rules should be in it either...
Try
Code: | # iptables -L INPUT
# iptables -L OUTPUT
# iptables -L FORWARD |
And check what the policy is.
It should be set to ACCEPT.
Just out of curiosity, which user do you use to start your ftp, and check the permissions on the ftp-files (the server, not the content)
It could be that for some reson the server starts but lack permission to open a port <1024. I have no idea how to fix this should this be the case. Or if it's even a possibillity.
Also, try:
Code: | # /etc/init.d/proftpd status |
_________________ 72 of Pitcairn Islands 49 inhabitants use Seti@Home
"If you buy a DVD you have a copy. If you want a backup copy you buy another one."
"Anyone who is capable of getting themselves made President should on no account be allowed to do the job." |
|
Back to top |
|
|
madtinkerer Tux's lil' helper
Joined: 14 Nov 2002 Posts: 122 Location: London Ontario Canada
|
Posted: Thu Jul 24, 2003 8:43 pm Post subject: |
|
|
I figured it out. Although I started the pure-ftp daemon through /etc/init.d/pure-ftpd start, I read the man pages for the program and the root user also has to start the server manually with /usr/sbin/pure-ftpd &
Thanks very much for the help though. I really appreciate it.
madtinkerer |
|
Back to top |
|
|
vafarmboy n00b
Joined: 23 Apr 2003 Posts: 18
|
Posted: Sun Sep 14, 2003 5:44 pm Post subject: |
|
|
hello,
I'm having problem with pure-ftp also....I was able to start the daemon through /etc/init.d/pure-ftpd start, but when I issue the command to start the server it says that the address is already in use. I don't know I'm doing wrong.
Code: |
# /usr/sbin/pure-ftpd &
[1] 4497
# Unable to start a standalone server: Address already in use
[1]+ Done /usr/sbin/pure-ftpd
|
Isn't the ftp server address suppose to be the same as my box ip address? |
|
Back to top |
|
|
smutt n00b
Joined: 23 Aug 2003 Posts: 51 Location: Utrecht, Netherlands
|
Posted: Sun Sep 14, 2003 7:15 pm Post subject: |
|
|
vafarmboy,
Check to make sure there isn't something already running on port 21.
Quote: |
netstat -a |grep ftp OR netstat -a |grep 21
|
If anything comes back then there is already something there. Also check your /etc/xinet.d directory to make sure you're not starting an ftp daemon via the metadaemon. There should be a file called something like fpd or something. In that file make sure disabled=yes.
--Smutt |
|
Back to top |
|
|
vafarmboy n00b
Joined: 23 Apr 2003 Posts: 18
|
Posted: Mon Sep 15, 2003 12:57 am Post subject: |
|
|
it seems like somthing is working on port 21 already.
Code: |
# netstat -a | grep 21
unix 3 [ ] STREAM CONNECTED 5210
unix 3 [ ] STREAM CONNECTED 4921
unix 3 [ ] STREAM CONNECTED 4821
unix 2 [ ] DGRAM 212 |
Thanks Smutt, I think I will have to do some more reading to get this thing going
/etc/conf.d/pure-ftpd
thanks
Last edited by vafarmboy on Sun Nov 09, 2003 5:01 am; edited 1 time in total |
|
Back to top |
|
|
sschlueter Guru
Joined: 26 Jul 2002 Posts: 578 Location: Dortmund, Germany
|
Posted: Mon Sep 15, 2003 9:46 am Post subject: |
|
|
madtinkerer wrote: | I figured it out. Although I started the pure-ftp daemon through /etc/init.d/pure-ftpd start, I read the man pages for the program and the root user also has to start the server manually with /usr/sbin/pure-ftpd & |
No, that's not true. /etc/init.d/pure-ftpd start is all you have to do in order to start the server but you have to edit the config file /etc/conf.d/pure-ftpd first, especially the line that contains "IS_CONFIGURED". |
|
Back to top |
|
|
|