Tag Archive | "iptables"

IPTables and Bashrc Aliases

Sunday, August 30, 2009

0 Comments

We all know IPTables can be difficult. By adding the following lines to your ~/.bashrc you can simplify the tasks of blocking packets from a certian ip. First your going to need to install IPTables: Gentoo: emerge iptables   (Must be  Root to use/install iptables) Ubuntu/Debian: sudo apt-get install iptables Then edit your .bashrc file and [...]

Continue reading...

Stopping SSH brute force attacks using iptables

Thursday, April 9, 2009

0 Comments

If your running a SSH server on the default port(22) you've probably noticed a lot of failed login attempts cause due to brute force attacks Adding the following to your IP tables will only allow 3 connections at once from any IP if it goes above 3 then that IP is locked out for 3minutes. [...]

Continue reading...