Add fail2ban and firewalld and test out with hedwig.

This commit is contained in:
Jim Hague 2023-02-27 14:44:50 +00:00
parent 9b90676d1f
commit 8c2405c7b7
4 changed files with 21 additions and 0 deletions

View File

@ -13,3 +13,9 @@ ntp:
service.running: service.running:
- require: - require:
- pkg: ntp - pkg: ntp
firewalld:
pkg.installed: []
service.running:
- enable: true
- restart: true

5
states/fail2ban/init.sls Normal file
View File

@ -0,0 +1,5 @@
fail2ban:
pkg.installed: []
service.running:
- enable: True
- reload: True

View File

@ -0,0 +1,8 @@
hedwig_public:
firewalld.present:
- name: public
- default: False
- ports:
- 22/tcp
- require:
- firewalld

View File

@ -4,6 +4,8 @@ base:
'hedwig.lunch.org.uk': 'hedwig.lunch.org.uk':
- debian - debian
- fail2ban
- firewalls/hedwig
'scabbers.lunch.org.uk': 'scabbers.lunch.org.uk':
- debian - debian