BM01-pi5¶
Esta guía detalla la instalación y configuración del BareMetal 01, la Raspberry Pi 5 de 8GB RAM y 128GB SSD.
Configuracón del sistema¶
sudo apt update
sudo apt full-upgrade -y
sudo rpi-eeprom-update -a
sudo systemctl enable fstrim.timer
sudo systemctl start fstrim.timer
lsblk --discard
lsblk -l
sudo apt install lxc lxc-templates bridge-utils -y
sudo systemctl enable lxc.service
lxc-checkconfig
apt install zram-tools
sudo apt install nftables -y
echo "net.ipv4.ip_forward=1" | sudo tee /etc/sysctl.d/99-ipforward.conf
sudo sysctl -p /etc/sysctl.d/99-ipforward.conf
sudo systemctl enable nftables.service
sudo systemctl start nftables.service
sudo nano /etc/nftables.conf # Sustituye por el nftables.conf de este directorio
sudo systemctl restart nftables.service
sudo apt install fail2ban -y
Configuración de red¶
sudo nmcli connection delete eth0 2>/dev/null
sudo nmcli connection add type bridge ifname br0 con-name br0
sudo nmcli connection modify br0 ipv4.addresses 192.168.1.100/24
sudo nmcli connection modify br0 ipv4.gateway 192.168.1.1
sudo nmcli connection modify br0 ipv4.gateway 192.168.1.1
sudo nmcli connection modify br0 ipv4.dns "8.8.8.8,1.1.1.1"
sudo nmcli connection modify br0 ipv4.method manual
sudo nmcli connection add type ethernet ifname eth0 master br0 con-name br-eth0
sudo nmcli connection up br0