ftpd configuration?
Yesterday my father was trying to ftp to my SuSE 9.0 PC to get some files but couldn't connect. I discoverd that I just got bit by Comcast starting to filter ports 21 and 80. It was easy enough to figure how to tamper with Apache since it is in YaST so I was able to use another port with no trouble. In looking into ftpd, I can't figure out how to change to listen on another port. I tried man ftpd but didn't find any mention of ports or a configuration file. I tried visiting SuSE support and Google search but no luck so far. Is there a configuration file for ftpd? can the port be changed from 21 to something else? If ftpd is too limited, can anyone suggest a favorite alternate? Damon Register
* Damon Register; <damon.w.register@lmco.com> on 26 Jan, 2004 wrote:
Is there a configuration file for ftpd? can the port be changed from 21 to something else? If ftpd is too limited, can anyone suggest a favorite alternate?
vsftp (fast secure) -- Togan Muftuoglu | Unofficial SuSE FAQ Maintainer | Please reply to the list; http://susefaq.sf.net | Please don't put me in TO/CC. Nisi defectum, haud refiecendum
Togan Muftuoglu wrote:
* Damon Register; <damon.w.register@lmco.com> on 26 Jan, 2004 wrote:
Is there a configuration file for ftpd? can the port be changed from 21 to something else? If ftpd is too limited, can anyone suggest a favorite alternate?
vsftp (fast secure) I guess this means that it can't be done with ftpd? Ok, I will install it tonight and try it.
Thanks for your answer Damon Register
* Damon Register; <damon.w.register@lmco.com> on 26 Jan, 2004 wrote:
I guess this means that it can't be done with ftpd? Ok, I will install it tonight and try it.
No it s just a suggestion ( I do not know ftpd in detail as for me security is #1 and ftpd is not so secure else suseftp servers would be running it also not vsftpd) -- Togan Muftuoglu | Unofficial SuSE FAQ Maintainer | Please reply to the list; http://susefaq.sf.net | Please don't put me in TO/CC. Nisi defectum, haud refiecendum
Togan Muftuoglu wrote:
No it s just a suggestion ( I do not know ftpd in detail as for me security is #1 and ftpd is not so secure else suseftp servers would be running it also not vsftpd) Thanks for the suggestion. I installed it last night and found it was very easy. In my original post I was asking about changing the port number. I see in the vsftpd.conf there is one item
# Make sure PORT transfer connections originate from port 20 (ftp-data). connect_from_port_20=YES but other than that, I don't see anything for changing the port(s) that vsftpd uses. Can these be changed without tampering and recompiling? I saw your entry in the SuSE faq at http://susefaq.sourceforge.net/ftpservers.html and you are right: it is "dead easy". Thanks again. Damon Register
* Damon Register; <damon.w.register@lmco.com> on 27 Jan, 2004 wrote:
# Make sure PORT transfer connections originate from port 20 (ftp-data). connect_from_port_20=YES
but other than that, I don't see anything for changing the port(s) that vsftpd uses. Can these be changed without tampering and recompiling?
man vsftpd.conf listen_port If vsftpd is in standalone mode, this is the port it will listen on for incoming FTP connections. Default: 21 -- Togan Muftuoglu | Unofficial SuSE FAQ Maintainer | Please reply to the list; http://susefaq.sf.net | Please don't put me in TO/CC. Nisi defectum, haud refiecendum
Togan Muftuoglu wrote:
man vsftpd.conf I am embarassed for having missed that. I didn't know there was a man page for the conf file. This is very useful information because until now I wasn't even aware that conf files might have a man page
If vsftpd is in standalone mode, this is the port it will listen on for incoming FTP connections. If standalone, does that mean that it is no longer started by xinetd? I tried tampering and using netstat and ps to get an idea of what is going on but I am still confused. I see that when I changed the listen_port to 16 and restarted, I could only make an ftp connection on port 16 and not 21 but with netstat it appears that something is still listening on 21. I also noticed that ps -A didn't show vsftpd until I tried connecting.
It may be I have it all wrong, but am I correct in thinking that even in standalone mode, vsftpd is still started by xinetd but spun off to a separate process when a connection is made? What do I have to do to get port 21 not show as listening? Damon Register
* Damon Register; <damon.w.register@lmco.com> on 27 Jan, 2004 wrote:
Togan Muftuoglu wrote:
man vsftpd.conf It may be I have it all wrong, but am I correct in thinking that even in standalone mode, vsftpd is still started by xinetd but spun off to a separate process when a connection is made? What do I have to do to get port 21 not show as listening?
if started by xinetd then you need to play with /etc/xinetd.d/vsftpd for possible options man xinetd.conf If this ftp server is open to internet, consider using SuSE FTP proxy (proxy-suite.rpm) also -- Togan Muftuoglu | Unofficial SuSE FAQ Maintainer | Please reply to the list; http://susefaq.sf.net | Please don't put me in TO/CC. Nisi defectum, haud refiecendum
participants (2)
-
Damon Register
-
Togan Muftuoglu