Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Mar 07, 2010 5:08 pm 
Offline
Junior Member

Joined: Sun Mar 07, 2010 3:41 am
Posts: 28
Hello
I was install vsftpd but
during vsftpd install instructions; I have to set IPTABLES_MODULES="ip_conntrack_ftp" module to firewall ftp.
but ip_coontrack_ftp module does not load!

I read this topic

http://www.linode.com/forums/viewtopic. ... nntrackftp --thank you Dear Jed--

and I get that - I must load this module manually,
my kernel is (Latest 2.6 Stable (2.6.18.8-linode22) + Centos5.3
please how to get it and how to load it manually and make it startup loading?
thank you very much
best regards


Top
   
 Post subject:
PostPosted: Sun Mar 07, 2010 5:14 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Running FTP is a bad as using TELNET to connect to your servers.

There are sooooooo many better alternatives. SFTP, SCP, Web based File managers, etc.


Top
   
PostPosted: Sun Mar 07, 2010 5:50 pm 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
math wrote:
IPTABLES_MODULES="ip_conntrack_ftp" module to firewall ftp.

To actually address your question, ip_conntrack_ftp is built into Linode kernels and does not have to be loaded to be used. You can probably leave this empty -- since it sounds like configuring this makes it try to insmod it -- and the functionality already exists in the kernel.

If you're familiar with configuring Linux, the entire configuration of a Linode-built kernel is available in /proc/config.gz (which you can read with, say...)

Code:
zgrep CONNTRACK /proc/config.gz

The thread you initially poked dealt specifically with UML, and the "modules cannot be inserted" stance was correct at the time. These days, under Xen, I have inserted several modules into a running Linode kernel just fine. That's why it's important to check a thread's date before replying to it. :)

In this specific case, however, it is unnecessary.

vonskippy wrote:
Web based File managers

Not to pick a fight with you, but I'm not sure I'd call those better than FTP. That falls under my same gripe as with phpMyAdmin.

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
 Post subject:
PostPosted: Sun Mar 07, 2010 6:41 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
FTP is inherently INSECURE.

Web based File Managers come in numerous flavours, some are very secure, some not so much. But across the board, if they use HTTPS they're a factor or two better then FTP.


Top
   
 Post subject:
PostPosted: Mon Mar 08, 2010 6:54 am 
Offline
Senior Member

Joined: Mon Dec 07, 2009 6:46 am
Posts: 331
FTPS or FTPES are no worse than HTTPS because the control channel is encrypted. If you need to encrypt data as well, then you're better off with SFTP (FTP over SSH).

Also consider moving FTP to different port to avoid bots trying to bruteforce.

That said, the only bad thing about FTP is that it uses passwords, so if you really need improved security, use SFTP with pubkey auth.


Top
   
 Post subject:
PostPosted: Mon Mar 08, 2010 11:52 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Azathoth wrote:
FTPS or FTPES are no worse than HTTPS because the control channel is encrypted. If you need to encrypt data as well, then you're better off with SFTP (FTP over SSH).


HTTPS would be encrypting the data too, making FTPS/FTPES worse by your standard.


Top
   
 Post subject:
PostPosted: Mon Mar 08, 2010 12:47 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Also note that if CONFIG_NF_CONNTRACK_FTP is actually needed, it relies on being able to sniff the control channel traffic. Obviously, if the control channel is encrypted, it will not be able to do so and it won't work.

A little background: the default mode of FTP (active mode) opens a connection from the server to the client to transfer files, which fails with NAT. So, you can either have the NAT anticipate that connection and set up the forwarding (which is what conntrack is for), or you can have the client open a connection to the server (sensible). The latter is called "passive mode" and is generally supported by many things.

However, it requires that the server pretty much be wide open for incoming connections on random ports, which tweaks some security-minded people. Also, the server can't be behind a NAT, or you have the same problem and need to use conntrack.

Fortunately, 15 years ago, this problem was solved using SSH, which multiplexes the data channel(s) with the control channel and only requires one TCP stream. Strangely, while telnet is almost unheard-of these days, ftp is still out there.


Top
   
 Post subject:
PostPosted: Mon Mar 08, 2010 4:14 pm 
Offline
Junior Member

Joined: Sun Mar 07, 2010 3:41 am
Posts: 28
Hello,
I plain to use sshguard (http://www.sshguard.net/ ) monitoring my FTP server - hope this make FTP connection more secure
specially I do my best to use conntrack_ftp but dont work for me.
thank you very much
best regards


Top
   
 Post subject:
PostPosted: Mon Mar 08, 2010 5:03 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
math wrote:
hope this make FTP connection more secure

Does nothing to make your FTP connection more secure. FTP sends username and passwords in clear text. Therefore there is no need to hammer on a FTP server to try and "crack" into it (which is what sshguard helps prevent).


Top
   
 Post subject:
PostPosted: Mon Mar 08, 2010 9:50 pm 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
vonskippy wrote:
math wrote:
hope this make FTP connection more secure

Does nothing to make your FTP connection more secure. FTP sends username and passwords in clear text. Therefore there is no need to hammer on a FTP server to try and "crack" into it (which is what sshguard helps prevent).


Just because auth is in clear text doesn't mean there is no reason to attack an FTP server. If an attacker has no way to grab the clear text password, a dictionary attack can still be done, just like against any other server.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group