Skip to content

You will create your first machine in VirtualBox (or UTM if you can’t use VirtualBox) under specific instructions. Then, at the end of this project, you will be able to set up your own operating system while implementing strict rules.

Notifications You must be signed in to change notification settings

Aboubakree/Born2beRoot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Bonus 3 :

--> Set up a service of your choice that you think is useful (NGINX / Apache2 excluded!). During the defense, you will have to justify your choice.

Fail2Ban tool:

"To enhance the security of SSH and prevent unauthorized access attempts."

I_ Installation :

$ sudo apt-get update
$ sudo apt-get install fail2ban

II_ Configuration:

$ cd /etc/fail2ban/
$ sudo nano jail.local
--> Add or modify the SSH section to define the rules inside jail.local:
[ssh]
enabled = true
port = ssh # Use the actual SSH port if it's different from default
filter = sshd
logpath = /var/log/auth.log
maxretry = 3 # Number of failed login attempts allowed before banning
bantime = 3600 # Ban duration in seconds (adjust as needed)

III_ Restart Fail2Ban:

$ sudo systemctl restart fail2ban

About

You will create your first machine in VirtualBox (or UTM if you can’t use VirtualBox) under specific instructions. Then, at the end of this project, you will be able to set up your own operating system while implementing strict rules.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages