readme
This project has been created as part of the 42 curriculum by mleitao.
After installing Debian, login as root and follow the steps below.
# apt install sudo
# dpkg -l | grep sudo
Reboot after this step with:
# reboot
$ sudo addgroup user42
$ sudo adduser <username> user42
$ sudo adduser <username> sudo
To verify group membership:
$ getent group sudo user42
$ sudo apt install ufw
Enable it:
$ sudo ufw enable
Allow ssh port:
$ sudo ufw allow 4242
Check its status:
$ sudo ufw status
$ sudo apt install openssh-server
To verify that it's running:
$ sudo service ssh status
Change default port and disable root login by editing:
$ sudo vi /etc/ssh/sshd_config
Find #Port 22 and change it to Port 4242 (notice the removal of the hash).
Set PermitRootLogin to no.
Restart the SSH service with:
$ sudo service ssh restart
If you want to connect to your virtual machine via SSH, you will need to port forward it in the settings of your VM in VirtualBox.
Port forward host port 4241 to guest port 4242, then connect to it via:
$ ssh <username>@localhost -p 4241
Sudo policies are located at /etc/sudoers.d/sudo_config.
The changes this project requires are:
passwd_tries: total tries for entering the sudo passwordbadpass_message: message that will show when the password failedlogfile: path where the sudo logs will be storedlog_input: logs terminal input for commands run through sudolog_output: logs terminal output from commands run through sudoiolog_dir: dir where log_input and log_output will be storedrequiretty: tty becomes requiredsecure_path: specifies trusted PATH that sudo uses when searching for commands
$ cat /etc/sudoers.d/sudo_config
Defaults passwd_tries=3
Defaults badpass_message="Wrong password."
Defaults logfile="/var/log/sudo/sudo_config"
Defaults log_input
Defaults log_output
Defaults iolog_dir="/var/log/sudo"
Defaults requiretty
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
To change password policies, we need to change two files.
First one is located at /etc/login.defs.
Edit PASS_MAX_DAYS to 30, PASS_MIN_DAYS to 2 and keep PASS_WARN_AGE at 7.
$ cat /etc/login.defs | grep ^PASS_
PASS_MAX_DAYS 30
PASS_MIN_DAYS 2
PASS_WARN_AGE 7
Then edit user password expiry information:
$ sudo chage -m2 -M30 -W7 mleitao
$ sudo chage -m2 -M30 -W7 root
For the second one, we will need to install libpam-pwquality.
$ sudo apt install libpam-pwquality
The file is located at /etc/pam.d/common-password.
The policies we need to change are:
minlen: defines minimum lengthucredit: uppercase requirement (negative value = minimum required, positive value = maximum allowed)lcredit: lowercase requirement (same as above)dcredit: digit requirement (same as above)maxrepeat: maximum number of consecutive identical charactersusercheck: rejects passwords that contain the usernamedifok: specifies how many characters must differ from the previous passwordenforce_for_root: applies these rules to root user as well
We don't want to apply difok to the root user, as stated in the subject.
For that, we can utilize pam_succeed_if.so, that takes a condition and skips the next requisite if the condition is satisfied. The condition we care about is uid=0 or user=root, both of them work since root's UID is 0.
$ cat /etc/pam.d/common-password
...
password [success=1 default=ignore] pam_succeed_if.so uid=0
password requisite pam_pwquality.so retry=3 minlen=10 ucredit=-1 lcredit=-1 dcredit=-1 maxrepeat=3 usercheck=1 difok=7
password requisite pam_pwquality.so retry=3 minlen=10 ucredit=-1 lcredit=-1 dcredit=-1 maxrepeat=3 usercheck=1 enforce_for_root
...
The script is quite long, and for that purpose it is not worth mentioning everything it does.
However, it is worth mentioning a few points:
- Both RAM and disk usage are transformed to MB before their calculations.
- Total disk storage is transformed to GB by diving the previous calculated size by 1024.
cpu_loadpipestopoutput togrepand finds the idle column. This is a floating point value, unlikevmstat(the alternative command), which is integer value.
#!/bin/bash
arch=$(uname -a)
cpu_phy=$(grep "physical id" /proc/cpuinfo | wc -l)
cpu_vrt=$(grep "processor" /proc/cpuinfo | wc -l)
ram_total=$(free --mega | awk '$1 == "Mem:" {print $2}')
ram_usage=$(free --mega | awk '$1 == "Mem:" {print $3}')
ram_prcnt=$(free --mega | awk '$1 == "Mem:" {printf("%.2f"), $3/$2*100}')
disk_total=$(df -m | grep "/dev/" | grep -v "/boot" | awk '{disk_t += $2} END {printf("%.1fGb"), disk_t/1024}')
disk_usage=$(df -m | grep "/dev/" | grep -v "/boot" | awk '{disk_u += $3} END {print disk_u}')
disk_prcnt=$(df -m | grep "/dev/" | grep -v "/boot" | awk '{disk_t += $2} {disk_u += $3} END {printf("%d"), disk_u/disk_t*100}')
cpu_load=$(top -bn1 | grep "Cpu(s)" | grep -oP "\d+\.\d+ id" | awk '{printf "%.1f", 100 - $1}')
last_boot=$(who -b | awk '$1 == "system" {print $3 " " $4}')
lvm_usage=$(if [ $(lsblk | grep "lvm" | wc -l) -gt 0 ]; then echo yes; else echo no; fi)
tcp_conn=$(ss -ta | grep ESTAB | wc -l)
user_log=$(users | wc -w)
ip_addr=$(hostname -I | awk '{print $1}')
mac_addr=$(ip link | grep "link/ether" | awk '{print $2}')
sudo_cmds=$(journalctl -q _COMM=sudo | grep COMMAND | wc -l)
wall "
Architecture: $arch
CPU physical: $cpu_phy
vCPU: $cpu_vrt
Memory Usage: $ram_usage/${ram_total}MB ($ram_prcnt%)
Disk Usage: $disk_usage/${disk_total} ($disk_prcnt%)
CPU load: $cpu_load%
Last boot: $last_boot
LVM use: $lvm_usage
Connections TCP: $tcp_conn ESTABLISHED
User log: $user_log
Network: IP $ip_addr ($mac_addr)
Sudo: $sudo_cmds cmd
"
After writing the script, make it run every 10 minutes using crontab.
$ sudo crontab -u root -e
...
*/10 * * * * /home/username/monitoring.sh
Install lighttpd:
$ sudo apt install lighttpd
Allow connections through port 80 in UFW and port forward host port 8080 to guest port 80.
$ sudo ufw allow 80
$ sudo ufw status
Status: active
To Action From
-- ------ ----
4242 ALLOW Anywhere
80 ALLOW Anywhere
4242 (v6) ALLOW Anywhere (v6)
80 (v6) ALLOW Anywhere (v6)
Install MariaDB and run its mariadb-secure-installation script to cleanup the default databases:
$ sudo apt install mariadb-server
$ sudo mariadb-secure-installation
...
Switch to unix_socket authentication [Y/n]: n
...
Change the root password? [Y/n]: n
...
Remove anonymous users? [Y/n]: y
...
Disallow root login remotely? [Y/n]: y
...
Remove test databases and access to it? [Y/n] y
...
Reload privilege tables now? [Y/n] y
...
This script will remove unnecessary stuff that comes installed by default with MariaDB.
Create a WordPress database and a user with full privileges to it:
$ sudo mariadb
MariaDB [(none)]> CREATE DATABASE wordpress;
MariaDB [(none)]> CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON wordpress.* TO 'username'@'localhost';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> exit;
Install PHP:
$ sudo apt install php-cgi php-mysql
Install wget and zip:
$ sudo apt install wget zip
Get WordPress:
$ cd /var/www/
$ sudo wget https://wordpress.org/latest.zip
$ sudo unzip latest.zip
Now that we have WordPress, we need to move the html directory to html_old and move wordpress to html and change its permissions:
$ sudo mv html/ html_old/
$ sudo mv wordpress/ html/
$ sudo chmod -R 755 html/
Copy the default WordPress configuration file wp-config-sample.php to wp-config.php:
$ cd html
$ sudo cp wp-config-sample.php wp-config.php
Edit the define lines with the database configuration:
...
/** The name of the database for WordPress */
define( 'DB_NAME', 'wordpress' );
/** Database username */
define( 'DB_USER', 'username' );
/** Database password */
define( 'DB_PASSWORD', 'password' );
/** Database hostname */
define( 'DB_HOST', 'localhost' );
...
Enable some lighttpd mods and reload the service:
$ sudo lighty-enable-mod fastcgi
$ sudo lighty-enable-mod fastcgi-php
$ sudo service lighttpd force-reload
On your host machine, access localhost:8080 and you should see WordPress initial configuration.
We will have fail2ban running on sshd port.
Install it:
$ sudo apt install fail2ban
Copy the default jail.conf file to jail.local:
$ sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
Edit jail.local file with the following changes:
[DEFAULT]
...
maxretry = 3
...
banaction = ufw
banaction_allports = ufw
...
[sshd]
enabled = true
...
After that, restart the service:
$ sudo service fail2ban restart
To test it, try SSH'ing from your host machine and insert an incorrect password three times. The expected behavior is that your host machine's IP address gets banned, being unable to access any service running on your virtual machine for 10 minutes.
$ sudo fail2ban-client status sshd
Status for the jail: sshd
|- Filter
| |- Currently failed: 0
| |- Total failed: 3
| `- Journal matches: _SYSTEMD_UNIT=ssh.service + _COMM=sshd
`- Actions
|- Currently banned: 1
|- Total banned: 2
`- Banned IP list: 10.0.2.2
$ sudo ufw status
Status: active
To Action From
-- ------ ----
Anywhere REJECT 10.0.2.2 # by Fail2Ban after 3 attemps against sshd
4242 ALLOW Anywhere
80 ALLOW Anywhere
4242 (v6) ALLOW Anywhere (v6)
80 (v6) ALLOW Anywhere (v6)
To unban an IP address, run the following command:
$ sudo fail2ban-client set sshd unban ip <ip_addr>
This project consists of setting up a virtual machine using Debian with a set of services and security features.
This repository contains a signature.txt of the virtual disk image.
I chose fail2ban as the extra service because this project is security-oriented, making it a natural choice. It is also extremely easy to get it up and running.
| Feature | Personal choice | Alternative | Notes |
|---|---|---|---|
| Operating System | Debian | Rocky Linux | Debian is simple, stable and with extensive documentation; Rocky is more enterprise-oriented |
| Security Module | AppArmor | SELinux | AppArmor is simpler to configure; SELinux is more powerful but also more complex |
| Firewall | UFW | firewalld | UFW is user-friendly; firewalld provides more advanced rules for enterprises |
| Virtualization | VirtualBox | UTM | VirtualBox is widely used and well-documented; UTM is optimized for Apple Silicon Macs |
- Debian installation guide
man chageman cronman ufwman pam_pwqualityman fail2banman fail2ban-client- crontab guru
- gemartin99's born2beroot guide
LLMs were used for:
- Understanding some of the commands
- Proofing this README.md
1*This project has been created as part of the 42 curriculum by mleitao.*
2
3# Instructions
4
5After installing Debian, login as root and follow the steps below.
6
7#### Step 1: Install `sudo`
8
9```
10# apt install sudo
11# dpkg -l | grep sudo
12```
13
14Reboot after this step with:
15
16```
17# reboot
18```
19
20#### Step 2: Manage groups and users
21
22```
23$ sudo addgroup user42
24$ sudo adduser <username> user42
25$ sudo adduser <username> sudo
26```
27
28To verify group membership:
29
30```
31$ getent group sudo user42
32```
33
34
35#### Step 3: Setup UFW
36
37```
38$ sudo apt install ufw
39```
40
41Enable it:
42
43```
44$ sudo ufw enable
45```
46
47Allow ssh port:
48
49```
50$ sudo ufw allow 4242
51```
52
53Check its status:
54
55```
56$ sudo ufw status
57```
58
59#### Step 4: Setup SSH
60
61```
62$ sudo apt install openssh-server
63```
64
65To verify that it's running:
66
67```
68$ sudo service ssh status
69```
70
71Change default port and disable root login by editing:
72
73```
74$ sudo vi /etc/ssh/sshd_config
75```
76
77Find `#Port 22` and change it to `Port 4242` (notice the removal of the hash). \
78Set `PermitRootLogin` to `no`.
79
80Restart the SSH service with:
81
82```
83$ sudo service ssh restart
84```
85
86If you want to connect to your virtual machine via SSH, you will need to port forward it in the settings of your VM in VirtualBox. \
87Port forward host port 4241 to guest port 4242, then connect to it via:
88
89```
90$ ssh <username>@localhost -p 4241
91```
92
93#### Step 5: Change `sudo` policies
94
95Sudo policies are located at `/etc/sudoers.d/sudo_config`. \
96The changes this project requires are:
97- `passwd_tries`: total tries for entering the sudo password
98- `badpass_message`: message that will show when the password failed
99- `logfile`: path where the sudo logs will be stored
100- `log_input`: logs terminal input for commands run through sudo
101- `log_output`: logs terminal output from commands run through sudo
102- `iolog_dir`: dir where log_input and log_output will be stored
103- `requiretty`: tty becomes required
104- `secure_path`: specifies trusted PATH that sudo uses when searching for commands
105
106
107```
108$ cat /etc/sudoers.d/sudo_config
109Defaults passwd_tries=3
110Defaults badpass_message="Wrong password."
111Defaults logfile="/var/log/sudo/sudo_config"
112Defaults log_input
113Defaults log_output
114Defaults iolog_dir="/var/log/sudo"
115Defaults requiretty
116Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
117```
118
119#### Step 6: Change password policies
120
121To change password policies, we need to change two files.
122
123First one is located at `/etc/login.defs`. \
124Edit `PASS_MAX_DAYS` to 30, `PASS_MIN_DAYS` to 2 and keep `PASS_WARN_AGE` at 7.
125
126```
127$ cat /etc/login.defs | grep ^PASS_
128PASS_MAX_DAYS 30
129PASS_MIN_DAYS 2
130PASS_WARN_AGE 7
131```
132
133Then edit user password expiry information:
134
135```
136$ sudo chage -m2 -M30 -W7 mleitao
137$ sudo chage -m2 -M30 -W7 root
138```
139
140For the second one, we will need to install `libpam-pwquality`.
141
142```
143$ sudo apt install libpam-pwquality
144```
145
146The file is located at `/etc/pam.d/common-password`. \
147The policies we need to change are:
148- `minlen`: defines minimum length
149- `ucredit`: uppercase requirement (negative value = minimum required, positive value = maximum allowed)
150- `lcredit`: lowercase requirement (same as above)
151- `dcredit`: digit requirement (same as above)
152- `maxrepeat`: maximum number of consecutive identical characters
153- `usercheck`: rejects passwords that contain the username
154- `difok`: specifies how many characters must differ from the previous password
155- `enforce_for_root`: applies these rules to root user as well
156
157We don't want to apply `difok` to the root user, as stated in the subject. \
158For that, we can utilize `pam_succeed_if.so`, that takes a condition and skips the next `requisite` if the condition is satisfied. The condition we care about is `uid=0` or `user=root`, both of them work since root's UID is 0.
159
160```
161$ cat /etc/pam.d/common-password
162...
163password [success=1 default=ignore] pam_succeed_if.so uid=0
164password requisite pam_pwquality.so retry=3 minlen=10 ucredit=-1 lcredit=-1 dcredit=-1 maxrepeat=3 usercheck=1 difok=7
165password requisite pam_pwquality.so retry=3 minlen=10 ucredit=-1 lcredit=-1 dcredit=-1 maxrepeat=3 usercheck=1 enforce_for_root
166...
167```
168
169#### Step 7: Write the `monitoring.sh` script
170
171The script is quite long, and for that purpose it is not worth mentioning everything it does. \
172However, it is worth mentioning a few points:
173- Both RAM and disk usage are transformed to MB before their calculations.
174- Total disk storage is transformed to GB by diving the previous calculated size by 1024.
175- `cpu_load` pipes `top` output to `grep` and finds the idle column. This is a floating point value, unlike `vmstat` (the alternative command), which is integer value.
176
177```bash
178#!/bin/bash
179
180arch=$(uname -a)
181
182cpu_phy=$(grep "physical id" /proc/cpuinfo | wc -l)
183cpu_vrt=$(grep "processor" /proc/cpuinfo | wc -l)
184
185ram_total=$(free --mega | awk '$1 == "Mem:" {print $2}')
186ram_usage=$(free --mega | awk '$1 == "Mem:" {print $3}')
187ram_prcnt=$(free --mega | awk '$1 == "Mem:" {printf("%.2f"), $3/$2*100}')
188
189disk_total=$(df -m | grep "/dev/" | grep -v "/boot" | awk '{disk_t += $2} END {printf("%.1fGb"), disk_t/1024}')
190disk_usage=$(df -m | grep "/dev/" | grep -v "/boot" | awk '{disk_u += $3} END {print disk_u}')
191disk_prcnt=$(df -m | grep "/dev/" | grep -v "/boot" | awk '{disk_t += $2} {disk_u += $3} END {printf("%d"), disk_u/disk_t*100}')
192
193cpu_load=$(top -bn1 | grep "Cpu(s)" | grep -oP "\d+\.\d+ id" | awk '{printf "%.1f", 100 - $1}')
194
195last_boot=$(who -b | awk '$1 == "system" {print $3 " " $4}')
196
197lvm_usage=$(if [ $(lsblk | grep "lvm" | wc -l) -gt 0 ]; then echo yes; else echo no; fi)
198
199tcp_conn=$(ss -ta | grep ESTAB | wc -l)
200
201user_log=$(users | wc -w)
202
203ip_addr=$(hostname -I | awk '{print $1}')
204mac_addr=$(ip link | grep "link/ether" | awk '{print $2}')
205
206sudo_cmds=$(journalctl -q _COMM=sudo | grep COMMAND | wc -l)
207
208wall "
209Architecture: $arch
210CPU physical: $cpu_phy
211vCPU: $cpu_vrt
212Memory Usage: $ram_usage/${ram_total}MB ($ram_prcnt%)
213Disk Usage: $disk_usage/${disk_total} ($disk_prcnt%)
214CPU load: $cpu_load%
215Last boot: $last_boot
216LVM use: $lvm_usage
217Connections TCP: $tcp_conn ESTABLISHED
218User log: $user_log
219Network: IP $ip_addr ($mac_addr)
220Sudo: $sudo_cmds cmd
221"
222```
223
224After writing the script, make it run every 10 minutes using `crontab`.
225
226```
227$ sudo crontab -u root -e
228...
229*/10 * * * * /home/username/monitoring.sh
230```
231
232#### Step 8: Setup bonus services (WordPress, MariaDB and PHP)
233
234Install `lighttpd`:
235
236```
237$ sudo apt install lighttpd
238```
239
240Allow connections through port 80 in UFW and port forward host port 8080 to guest port 80.
241
242```
243$ sudo ufw allow 80
244$ sudo ufw status
245Status: active
246
247To Action From
248-- ------ ----
2494242 ALLOW Anywhere
25080 ALLOW Anywhere
2514242 (v6) ALLOW Anywhere (v6)
25280 (v6) ALLOW Anywhere (v6)
253```
254
255Install MariaDB and run its `mariadb-secure-installation` script to cleanup the default databases:
256
257```
258$ sudo apt install mariadb-server
259$ sudo mariadb-secure-installation
260...
261Switch to unix_socket authentication [Y/n]: n
262...
263Change the root password? [Y/n]: n
264...
265Remove anonymous users? [Y/n]: y
266...
267Disallow root login remotely? [Y/n]: y
268...
269Remove test databases and access to it? [Y/n] y
270...
271Reload privilege tables now? [Y/n] y
272...
273```
274
275This script will remove unnecessary stuff that comes installed by default with MariaDB.
276
277Create a WordPress database and a user with full privileges to it:
278
279```
280$ sudo mariadb
281MariaDB [(none)]> CREATE DATABASE wordpress;
282MariaDB [(none)]> CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
283MariaDB [(none)]> GRANT ALL PRIVILEGES ON wordpress.* TO 'username'@'localhost';
284MariaDB [(none)]> FLUSH PRIVILEGES;
285MariaDB [(none)]> exit;
286```
287
288Install PHP:
289
290```
291$ sudo apt install php-cgi php-mysql
292```
293
294Install `wget` and `zip`:
295
296```
297$ sudo apt install wget zip
298```
299
300Get WordPress:
301
302```
303$ cd /var/www/
304$ sudo wget https://wordpress.org/latest.zip
305$ sudo unzip latest.zip
306```
307
308Now that we have WordPress, we need to move the `html` directory to `html_old` and move `wordpress` to `html` and change its permissions:
309
310```
311$ sudo mv html/ html_old/
312$ sudo mv wordpress/ html/
313$ sudo chmod -R 755 html/
314```
315
316Copy the default WordPress configuration file `wp-config-sample.php` to `wp-config.php`:
317
318```
319$ cd html
320$ sudo cp wp-config-sample.php wp-config.php
321```
322
323Edit the `define` lines with the database configuration:
324
325```
326...
327/** The name of the database for WordPress */
328define( 'DB_NAME', 'wordpress' );
329
330/** Database username */
331define( 'DB_USER', 'username' );
332
333/** Database password */
334define( 'DB_PASSWORD', 'password' );
335
336/** Database hostname */
337define( 'DB_HOST', 'localhost' );
338...
339```
340
341Enable some `lighttpd` mods and reload the service:
342
343```
344$ sudo lighty-enable-mod fastcgi
345$ sudo lighty-enable-mod fastcgi-php
346$ sudo service lighttpd force-reload
347```
348
349On your host machine, access `localhost:8080` and you should see WordPress initial configuration.
350
351#### Step 9: Setup `fail2ban`
352
353We will have `fail2ban` running on `sshd` port.
354
355Install it:
356
357```
358$ sudo apt install fail2ban
359```
360
361Copy the default `jail.conf` file to `jail.local`:
362
363```
364$ sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
365```
366
367Edit `jail.local` file with the following changes:
368
369```
370[DEFAULT]
371...
372maxretry = 3
373...
374banaction = ufw
375banaction_allports = ufw
376...
377[sshd]
378enabled = true
379...
380```
381
382After that, restart the service:
383
384```
385$ sudo service fail2ban restart
386```
387
388To test it, try SSH'ing from your host machine and insert an incorrect password three times. The expected behavior is that your host machine's IP address gets banned, being unable to access any service running on your virtual machine for 10 minutes.
389
390```
391$ sudo fail2ban-client status sshd
392Status for the jail: sshd
393|- Filter
394| |- Currently failed: 0
395| |- Total failed: 3
396| `- Journal matches: _SYSTEMD_UNIT=ssh.service + _COMM=sshd
397`- Actions
398|- Currently banned: 1
399|- Total banned: 2
400`- Banned IP list: 10.0.2.2
401
402$ sudo ufw status
403Status: active
404
405To Action From
406-- ------ ----
407Anywhere REJECT 10.0.2.2 # by Fail2Ban after 3 attemps against sshd
4084242 ALLOW Anywhere
40980 ALLOW Anywhere
4104242 (v6) ALLOW Anywhere (v6)
41180 (v6) ALLOW Anywhere (v6)
412```
413
414To unban an IP address, run the following command:
415
416```
417$ sudo fail2ban-client set sshd unban ip <ip_addr>
418```
419
420# Description
421
422This project consists of setting up a virtual machine using Debian with a set of services and security features.
423
424This repository contains a [signature.txt](./signature.txt) of the virtual disk image.
425
426I chose `fail2ban` as the extra service because this project is security-oriented, making it a natural choice. It is also extremely easy to get it up and running.
427
428### Comparisons
429
430
431| Feature | Personal choice | Alternative | Notes |
432| ---------------- | ----------------- | ----------- | ----------------------------------------------------------------------------------------------- |
433| Operating System | Debian | Rocky Linux | Debian is simple, stable and with extensive documentation; Rocky is more enterprise-oriented |
434| Security Module | AppArmor | SELinux | AppArmor is simpler to configure; SELinux is more powerful but also more complex |
435| Firewall | UFW | firewalld | UFW is user-friendly; firewalld provides more advanced rules for enterprises |
436| Virtualization | VirtualBox | UTM | VirtualBox is widely used and well-documented; UTM is optimized for Apple Silicon Macs |
437
438
439# Resources
440
441- [Debian installation guide](https://www.debian.org/releases/stable/amd64/)
442- [`man chage`](https://manpages.debian.org/trixie/passwd/chage.1.en.html)
443- [`man cron`](https://manpages.debian.org/trixie/cron/cron.8.en.html)
444- [`man ufw`](https://manpages.debian.org/trixie/ufw/ufw.8.en.html)
445- [`man pam_pwquality`](https://manpages.debian.org/trixie/libpam-pwquality/pam_pwquality.8.en.html)
446- [`man fail2ban`](https://manpages.debian.org/trixie/fail2ban/fail2ban.1.en.html)
447- [`man fail2ban-client`](https://manpages.debian.org/trixie/fail2ban/fail2ban-client.1.en.html)
448- [crontab guru](https://crontab.guru/)
449- [gemartin99's born2beroot guide](https://noreply.gitbook.io/born2beroot)
450
451## LLM Usage:
452
453LLMs were used for:
454- Understanding some of the commands
455- Proofing this README.md