Construire son homelab
le Réseau
architecture-beta
service internet(mdi:internet)[Internet]
group lan(mdi:network)[Reseau LAN]
group switch(mdi:switch)[Switch NICGIGA] in lan
service sfp[SFP 10GO] in switch
service sport5[Port 5] in switch
group routeur(mdi:router-network)[Routeur wifi]
service internetport[Internet Port] in routeur
service gport[Port GB] in routeur
service dhcp[Serveur dhcp] in routeur
group storage(mdi:network-attached-storage)[Stockage Reseau]
internet:R -- L:internetport
sport5:L -- R:gport
Configurer le routeur tp-link
Ce connecter au wifi par defaut TP-LINK_X avec le mdp au dos deu routeur
ce connecter 192.168.0.1
Configurer un réseau wifi
Configurer le réseau lan Advanced => Network => LAN
ip 192.168.100.1
subnet 255.255.255.0
Acceder à la box sur l’adresse `192.168.100.1
Configurer le switch NICGIGA
Penser Ă reset le switch en mode usine
En mode usine le swicch est configuré comme suit :
- ip
192.168.1.199 - subnet
255.255.255.0
Configurer le pc avec une ip dans le mĂŞme subnet, par exemple 192.168.1.5
Ce connecter sur l’adresse http://192.168.1.199/
login admin
mdp admin
Aller dans system => ip settings :
DHCP setting disable
IP adress
Si connecté au switch System => IP Settings => DHCP Settings => enable
Limiter les accès au routeur
Aller dans Advanced => Security => Access Control
Activer le Access Control
Changer le current mode en Allow list
Y ajouter les adresses mac des appareils autorisés à se connecter au routeur
Trouver l’adresse mac d’un appareil sous linux
ip link
Tester la bande passante locale
Utiliser iperf3 pour tester la bande passante locale
Sur le serveur
# as choose a port, here 5173
iperf3 -s -p 5173
Sur le client
iperf3 -c 192.168.100.xxx -p 5173
Setup ISCI sur proxmox ? - NOT TESTED YET
Proxmox Installer FreeNAS-API sur proxmox
keyring_location=/usr/share/keyrings/ksatechnologies-truenas-proxmox-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/ksatechnologies/truenas-proxmox/gpg.284C106104A8CE6D.key' | gpg --dearmor >> ${keyring_location}
cat << EOF > /etc/apt/sources.list.d/ksatechnologies-repo.list
# Source: KSATechnologies
# Site: https://cloudsmith.io
# Repository: KSATechnologies / truenas-proxmox
# Description: TrueNAS plugin for Proxmox VE - Production
deb [signed-by=${keyring_location}] https://dl.cloudsmith.io/public/ksatechnologies/truenas-proxmox/deb/debian any-version main
EOF
apt update
apt install freenas-proxmox
# if ti fails try to reinstall 2-3 times
Setup nfs Truenas
Create a new user in Credentials:
Username of your choice Disable password Create New Primary Group Home Directory: /nonexistent Home Directory Permissions: User (is this even relevant?) Create Home Directory [ ] SMB User [ ]
Add a new NFS share:
Path: select the dataset you want to share └ Advanced Options Mapall User: use the user you created before Mapall Group: use the group automatically created before Hosts → Add → Authorized Hosts and IP addresses: write here Proxmox server’s IP or hostname if you want to be sure no other machine can access this share
Datasets
Select the dataset connected to the NFS share └ Scroll down the “Details” pane on the right until you see the “Permissions” section └ Edit User: select the user you created Group: select the related group Apply Group Apply permissions recursively Access Mode: the default selections should be fine as is
Proxmox host internet to vm/ct
Promox has access to the internet but the vm/ct not
# on the proxmox host
echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf
sysctl -p
Documentation
TODO
- Tester vitesse antre beelinkl gris et noir avec cable ethernet cat6
- Acheter switch 8 port 2.5gb