Creating Automatic Python Firewall Script in Ubuntu

Veröffentlicht am: 12 Juni 2023
auf dem Kanal: 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


Auf dieser Seite können Sie das Online-Video Creating Automatic Python Firewall Script in Ubuntu mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer theurbanpenguin 12 Juni 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 3,240 Mal angesehen und es wurde von 98 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!