Automation: Block ssh brute force attacks with iptables

1. create an iptables.rules file in /etc/


2. enable iptables rules
iptables-restore < /etc/iptables.rules

3. load iptables rules on network interface up
vim /etc/networks/interface
add this line to under your public interface block
pre-up iptables-restore < /etc/iptables.rul

4. reload service iptables restart

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

This site uses Akismet to reduce spam. Learn how your comment data is processed.