Unix Technical Forum

Re: Setting vsftpd to only allow local connections...

This is a discussion on Re: Setting vsftpd to only allow local connections... within the Linux Operating System forums, part of the Unix Operating Systems category; --> "Sam Nichols" <sizam@inerd.net> wrote in message news:sizam-6C5DF4.10414926062003@news.stanford.edu... > In article <_llKa.22031$pH3.3939@news2.east.cox.net>, > "Kenneth A Kauffman" <kkauffman@nospam.headfog.com> wrote: > > ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 07:04 AM
Kenneth A Kauffman
 
Posts: n/a
Default Re: Setting vsftpd to only allow local connections...


"Sam Nichols" <sizam@inerd.net> wrote in message
news:sizam-6C5DF4.10414926062003@news.stanford.edu...
> In article <_llKa.22031$pH3.3939@news2.east.cox.net>,
> "Kenneth A Kauffman" <kkauffman@nospam.headfog.com> wrote:
>
> > "Sam Nichols" <sizam@inerd.net> wrote in message
> > news:sizam-B7BB46.10305725062003@news.stanford.edu...
> > > Hello,
> > > I'd like to setup vsftpd to only allow connections from local

processes
> > > such that I could create a ssh tunnel to my server and connected to

the
> > > ftp daemon through the tunnel, but it wouldn't listen to any remotely
> > > accessable port? I see in the docs how to allow access to local

users,
> > > thats not quite what I'm looking for though.
> > >
> > > Thanks

> >
> > Hmm.. what is the ultimate goal? If it is to transfer files securely;

you
> > can use SFTP, which is installed by default as a subsystem to SSH. Are

you
> > trying to do FTP over SSL using VSFTP?
> >
> > ken k

>
> What I want to do is use the FTP protocol securely. The software I use
> to edit files (BBEdit) doesn't support sftp, only ftp (port 21) so I
> want to tunnel through my local computer to my server at home's FTP port
> BUT I don't want any computers to be able to connect to the FTP port
> without going through a tunnel.


use the native SSH port forwarding. you will need to forward ports 20 and
21. this will allow you SSH into your remote machine, then use LOCALHOST
from your client. the SSH port forwarding will then send the requests
through the tunnel. The lock down ports 20-21 on your box using IPTABLES or
your firewall/router. Then the connection can only be made from a valid
user with SSH access and port forwarding enabled.

I can't quite remember, but I think if you wanted to wrap FTP with SSL then
you would need a client that suports that also.
ken k


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:32 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com