Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Sep 15, 2011 6:59 am 
Offline
Newbie

Joined: Thu Sep 15, 2011 6:51 am
Posts: 2
Hi there,

I am hoping someone can help me solve a problem I have with data upload to my Linode.

I have to get some log files uploaded from a basic web server which only supports non-S - FTP. I know I can setup vsftp to do this. But everywhere I read about it people say it is very insecure.

Is there some way to create a closed sandbox area of the linode where I can allow the web server to upload via FTP without compromising the security of the whole Linode?

Thanks a bunch!

Best Regards,
Ro


Top
   
 Post subject:
PostPosted: Thu Sep 15, 2011 7:13 am 
Offline
Senior Member
User avatar

Joined: Sat Oct 16, 2004 11:13 am
Posts: 176
What do you mean exactly mean by "secure"? Are you referring to the fact that everything is in plain-text, or do you think the vsftpd service itself is inherently insecure?

If you are concerned with encryption, etc. then transfer the files over SSH. If you just want to have a vsftpd installation that's more "secure" than the default options, look into chrooting users, disabling anonymous access, etc. Its all described in the config file.


Top
   
 Post subject:
PostPosted: Thu Sep 15, 2011 1:45 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
FTP is said to be "insecure" because the login credentials, as well as the files, are transmitted in plain text. So somebody sitting between the two computers could read the passwords and the files.

You might not need to care about password security if it's a one-off account that you're only using for FTP and not for anything else, or if you set up vsftpd for anonymous FTP only. Just don't use your regular administrator account.

Whether you care about the file contents being exposed depends on what the files contain. Credit card numbers? No way. Funny cat pictures? Perfectly OK. Old log files? Probably OK.

As long as you're using the latest version of all programs and not transmitting confidential data, you won't get your server hacked just because you turned FTP on. It's not "insecure" in that sense.


Top
   
 Post subject:
PostPosted: Thu Sep 15, 2011 2:42 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
hybinet wrote:
FTP is said to be "insecure" because the login credentials, as well as the files, are transmitted in plain text. So somebody sitting between the two computers could read the passwords and the files.

You might not need to care about password security if it's a one-off account that you're only using for FTP and not for anything else, or if you set up vsftpd for anonymous FTP only. Just don't use your regular administrator account.

Whether you care about the file contents being exposed depends on what the files contain. Credit card numbers? No way. Funny cat pictures? Perfectly OK. Old log files? Probably OK.

As long as you're using the latest version of all programs and not transmitting confidential data, you won't get your server hacked just because you turned FTP on. It's not "insecure" in that sense.


It should be noted that somebody doesn't need to break into your ISP's datacenter to get your FTP password. A far more likely attack vector is somebody sniffing your password on a wifi network, since anybody can see any data anybody sends over any wifi network. If it's unencrypted (and WEP is pretty much counting as unencrypted these days, even WPA1 is pretty easily cracked), it's trivial for somebody to run a packet sniffer looking for things like FTP authentications.


Top
   
 Post subject:
PostPosted: Fri Sep 16, 2011 12:14 am 
Offline
Newbie

Joined: Thu Sep 15, 2011 6:51 am
Posts: 2
Thanks for the help guys!

I am working with non confidential data, so I basically resolved creating one user with a fixed home directory, solely allowing that user to login to vsftpd (allowed_users). And chroot that user.

That seems to work alright.

Thanks again for your input!

Cheers,
Ro


Top
   
 Post subject:
PostPosted: Fri Sep 16, 2011 12:21 am 
Offline
Senior Member

Joined: Sun Aug 31, 2008 4:29 pm
Posts: 177
vsftpd does support TLS and SSL encryption, though it needs to be configured on the host machine....

_________________
sleddog


Top
   
 Post subject:
PostPosted: Fri Sep 16, 2011 6:10 am 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
Folks, from my understanding he has an embedded-type device that "dials into" his Linode via plaintext FTP, and doesn't support anything more secure than that...

_________________
rsk, providing useless advice on the Internet since 2005.


Top
   
 Post subject:
PostPosted: Fri Sep 16, 2011 6:41 pm 
Offline
Senior Member

Joined: Thu Oct 02, 2008 8:56 am
Posts: 99
rsk wrote:
Folks, from my understanding he has an embedded-type device that "dials into" his Linode via plaintext FTP, and doesn't support anything more secure than that...


chroot virtual ftp accounts w/ jail might contain any breakins but I would find another way. ssh is really what you want (scp, rsync over ssh, etc.) to upload files.


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


Who is online

Users browsing this forum: No registered users and 2 guests


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