Ubuntu/Applications/Fail2Ban
From r00tedvw.com wiki
(Difference between revisions)
Line 11: | Line 11: | ||
sudo fail2can-client status | sudo fail2can-client status | ||
Check the status of fail2ban | Check the status of fail2ban | ||
+ | |||
+ | ==fail2ban fails to install== | ||
+ | Error: Couldn't find package fail2ban | ||
+ | You most likely do not have the right repositories in your repo list. Find out which repository your package is in by visiting: http://packages.ubuntu.com/<br> | ||
+ | Once you've located the repo, in the fail2ban instance it was universe, add them to your list: | ||
+ | /etc/apt/sources.list | ||
+ | deb http://us.archive.ubuntu.com/ubuntu/ karmic main restricted universe | ||
+ | deb-src http://us.archive.ubuntu.com/ubuntu/ karmic main restricted universe | ||
+ | apt-get update | ||
+ | Search again and you should be good |
Revision as of 20:54, 23 April 2014
Applications | Java7 | Conky | Console Browsers | Fail2Ban
Contents |
Installation
sudo apt-get install fail2ban
Modify Jail settings
sudo vi /etc/fail2ban/jail.conf
Here you can change what ports it's configure to watch, what types of services its watching, the number of attempts before ban, and length of ban. A whole lot more too.
Check status
sudo fail2can-client status
Check the status of fail2ban
fail2ban fails to install
Error: Couldn't find package fail2ban
You most likely do not have the right repositories in your repo list. Find out which repository your package is in by visiting: http://packages.ubuntu.com/
Once you've located the repo, in the fail2ban instance it was universe, add them to your list:
/etc/apt/sources.list deb http://us.archive.ubuntu.com/ubuntu/ karmic main restricted universe deb-src http://us.archive.ubuntu.com/ubuntu/ karmic main restricted universe apt-get update
Search again and you should be good