Click to See Complete Forum and Search --> : Ban A User From My FTP Server


slacker_x
10-27-2001, 08:29 AM
I want to ban users from my FTP server, or better yet, I would like to be able to temporarily ban them.

I am running ProFTPD in standalone mode.

Thanks

X_console
10-27-2001, 09:04 AM
Add them to /etc/ftpusers and they won't be able to FTP to your server anymore. Strange name for a denial file, I know.

slacker_x
10-27-2001, 02:07 PM
Crap. I didn't state my question very well. What I want to do is prevent users from certain IP adresses from connecting to my FTP server. I would like to be able to modify which IPs are allowed to connect without having to bring the FTP server down and disconnect everyone.
I don't want to recompile a my kernel and use iptables.

MaxWave
10-27-2001, 03:08 PM
I am curious about this also. I know you can deny access from a ip pool to a certain port using ipchains/iptables. How to do it is beyond me. ProFtpd probably has sometime similar to a deny file also.

MaxWave
10-27-2001, 03:11 PM
I found this while looking at some sample proftpd.conf files.

<Directory /web/zsl>
<Limit ALL>
Order Allow,Deny
Allow 195.200.31.220
Allow 212.32.17.0/26
Deny ALL
</Limit>
</Directory>

MaxWave
10-27-2001, 03:13 PM
http://www.proftpd.org/docs/configuration.html#Limit

Man page on the Limit option. :)

slacker_x
10-27-2001, 05:03 PM
Thanks for the help. I should be noted that <Limit ALL> is probably not right. I want <Limit LOGIN>. "ALL" limits read, write and dirs, but I don't believe login.

Finally:
How can I reload the new proftpd configuration without disconnecting users?