Categories
GNU/Linux Security Server ubuntu

Fail2Ban Custom filters and Testing Regex’s against existing Logs

Fail2ban is a tool that can automatically ban malicious bots trying to get into your server. Provided you set up filters and the ip address is logged you can use fail2ban with any application. fail2ban is built with python2.7 Create a filter, using a regular expression: In /etc/fail2ban/filter.d/my-custom-filter.conf: [Definition] failregex = ^www.example.com -.* “POST \/user\/register […]

Categories
ansible Continuous Integration git jenkins

Getting Jenkins to deploy with ansible using SSH Agent Forwarding

Your CI/CD tool needs access to code and server, for linting, testing and deploying. Setup up access on the various devices in a secure manner can be very time consuming. It is important to make use of available technology to make our lives easier. Jenkins needs access You will have created credentials for Jenkins – […]