Skip to content

LinuxHaus/ansible_lihas_fail2ban

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible_lihas_fail2ban

Configures fail2ban for debian servers

  • installs fail2ban
  • set journald default source
  • set journald logtarget
  • configure ssh
  • set timer for timeout
  • sets ignore ip adresses
  • if apache2 is installed, configuring it

Requirements

To run solo:

ansible-galaxy install -r requirements.yml
ansible-playbook -i localhost, fail2ban.yml

Dependencies

  • lihas_variables

Example Playbook

---
- hosts: '*'
  role: lihas_fail2ban
...

Variables

  • X.config.fail2ban.ignoreip: []
    • X: string, use host or groupname
    • []: list of ips to ignore

License

GNU General Public License v3.0

About

Install and configure fail2ban

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published