diff options
| author | boom2 <blizzack@blizzack.com> | 2023-12-21 23:17:53 -0500 |
|---|---|---|
| committer | boom2 <blizzack@blizzack.com> | 2023-12-21 23:17:53 -0500 |
| commit | e546f2ba800a55663ae04f18f8b01e86e1deac90 (patch) | |
| tree | 0179f56d978ca3f3896a49b7b8cdda6305161c99 /ansible_stuff.org | |
| parent | 200680e7c8cbd6b4426c3ce232568b1e06446bde (diff) | |
- initial commit for fail2ban playbook
Diffstat (limited to 'ansible_stuff.org')
| -rw-r--r-- | ansible_stuff.org | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/ansible_stuff.org b/ansible_stuff.org index ea0f832..3ffdb3d 100644 --- a/ansible_stuff.org +++ b/ansible_stuff.org @@ -1060,6 +1060,55 @@ will bite me in the ass someday. - sed command https://unix.stackexchange.com/questions/144298/delete-the-last-character-of-a-string-using-string-manipulation-in-shell-script +* <2023-12-21 Thu> --------------------------------------------------------- + +** fail2ban playbook + +http://slackbuilds.org/repository/15.0/network/fail2ban + +this seems like an easier slackbuild to begin ansible automation since +there are no dependencies. + +- make sure we have sbopkg installed on system + +- rsync sbopkg repo + +- install fail2ban slackbuild + + sbopkg + +- confirm that the service is installed + + fail2ban-client version + +- make /etc/rc.d/rc.fail2ban executable + + chmod +x /etc/rc.d/rc.fail2ban + +- add to /etc/rc.local + + if [ -x /etc/rc.d/rc.fail2ban ]; then + /etc/rc.d/rc.fail2ban start + fi + +- add to /etc/rc.local_shutdown + + if [ -x /etc/rc.d/rc.fail2ban ]; then + /etc/rc.d/rc.fail2ban stop + fi + +- start up service like so: + + /etc/rc.d/rc.fail2ban start + +- bring system DB up-to-date after new installation + + updatedb + +- sync all writes to file system + + sync + * references 2023-12-16 -- the following is a lists of ansible related URLs compiled so far. |
