Creating Automatic Python Firewall Script in Ubuntu

Publié le: 12 juin 2023
sur la chaîne: theurbanpenguin
3,240
98

In this video you will use a Python script on Ubuntu to manage automatic firewall entries on and AWS hosted Ubuntu system. You standard AWS system group will allow SSH traffic in and really has to, allowing remote management and access. By opening up SSH there will be many scripted attacks on your system . Although we could use products like fail2-ban, automating the protection yourself helps you learn and manage your system better.

Additionally you can find my video courses on Pluralsight: http://pluralsight.com/training/Autho... and take time to see my own site http://www.theurbanpenguin.com

00:00 Introduction
00:30 Demo of the final solution
03:50 View problem on new system
05:01 Start editing python script
08:55 Run first draft of script
10:23 Add regular expression to search for IP addresses
14:30 Run 2nd draft of script
15:12 Enable UFW
16:46 Install pip
17:32 Install pyufw python module
18:20 Add UFW support to script
20:50 Run final script
21:58 Add crontab entry


Sur cette page du site, vous pouvez voir la vidéo en ligne Creating Automatic Python Firewall Script in Ubuntu durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur theurbanpenguin 12 juin 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 3,240 fois et il a aimé 98 téléspectateurs. Bon visionnage!