Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Proftpd setup.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
CurtE
Guru
Guru


Joined: 17 Apr 2004
Posts: 364
Location: Minneapolis, MN

PostPosted: Wed Feb 08, 2012 12:57 am    Post subject: Proftpd setup. Reply with quote

Okay, I'm setting up "proftpd" for an internal FTP access. Dreamweaver cannot access the server via "vsftpd" so I have to use something different.

As per the Gentoo/ProFTPd instructions, this is what I have:

Code:
service proftpd
{
...
#Allow access from local network (ie, 192.168.0.0/24)
only from   = 192.168.0.0/24

#And from two remote locations
only from   = 10.1.1.2 sample.config.com

#Allow from anywhere
only from   = 0.0.0.0
...
}


I know this is straight "out of the box" code. What do I really need, to be able to access the server via FTP from the 192.168.... and from nowhere else? How do I set it up for two users?
Back to top
View user's profile Send private message
linuxtechguy
n00b
n00b


Joined: 07 Feb 2012
Posts: 2

PostPosted: Thu Feb 09, 2012 4:20 pm    Post subject: Reply with quote

Your best bet is to just use a firewall.

The guide you are following is only when you run proftpd through xinetd.

If you were to use that guide then the line would be:

Code:

service proftpd
{

only_from   = 192.168.0.0/16

}
Back to top
View user's profile Send private message
CurtE
Guru
Guru


Joined: 17 Apr 2004
Posts: 364
Location: Minneapolis, MN

PostPosted: Thu Feb 09, 2012 5:03 pm    Post subject: Reply with quote

Thanks, that's what I was intending to do, use xinetd.

Any help on how to set it up for only my wife and I, as users?

I'm thinking that it can't be too hard but I'd hate to do this wrong and open a door.
Back to top
View user's profile Send private message
linuxtechguy
n00b
n00b


Joined: 07 Feb 2012
Posts: 2

PostPosted: Thu Feb 09, 2012 7:43 pm    Post subject: Reply with quote

In proftpd.conf you can add:

Code:

<Limit LOGIN>
AllowUser userftp
DenyALL
</Limit>


Replace userftp with the username of the user to allow. I think for multiple users you can seperate with a space. If not try to add a seperate AllowUser line.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum