Securing debain with fail2ban or iptables
Posted
by
Jimmy
on Server Fault
See other posts from Server Fault
or by Jimmy
Published on 2014-06-06T08:43:51Z
Indexed on
2014/06/06
9:27 UTC
Read the original article
Hit count: 191
I'm looking to secure my server. Initially my first thought was to use iptables but then I also learnt about Fail2ban. I understand that Fail2ban is based on iptables, but it has the advantages of being able to ban IP's after a number of attempts.
Let's say I want to block FTP completely:
- Should I write a separate IPtable rule to block FTP, and use Fail2ban just for SSH
- Or instead simply put all rules, even the FTP blocking rule within the Fail2Ban config
Any help on this would be appreciated.
James
© Server Fault or respective owner