1 min read

RLG : Configuration réseau

Network options

Ports

lsof -i :5173 # lsof: lister les fichiers ouvertes par les processus; -i : port
kill -9 {PID} # -9: SigKill

LAN

# Trouver votre IP LAN
ip addr show | grep "inet " | grep -v 127.0.0.1 # -v : exclut adresses locale interne à cette machine 

# Trouver votre IP publique
curl -4 ifconfig.me # Pour obtenir uniquement l'IPv4
curl -6 ifconfig.me # Pour obtenir uniquement l'IPv6

#Detect devices:
nmap 192.168.1.0/24
#Detect open ports
nmap {ip} # -sV for service scan -O for OS scan: MIND captiPalisatioNs!

Connectivity

ICMP

ping <ip-address>

HTTP

sudo python3 -m http.server 80 # Enable a HTTP connectivity python test server
sudo ss -tlnp | grep 80 # Verify the server is listening
sudo tcpdump -i any port 80 -n # Check if packets are arriving at the VM

If the packets are arriving but the connection still fails, your fire wall is interfering. See the guide on Uncomplicated Firewall (UFW)/IP Table

«Why is my internet not working ? » :

Problèmes fréquents

la carte réseau (Network card) n'est pas dectecté

sudo systemctl restart NetworkManager
nmcli radio wifi off
nmcli radio wifi on

❗ Si vous dual-boot Windows et Linux, il est possiblement un problème de compatibilité causé par Windows.
Essayer de démarrer Windows, puis désactiver Carte réseau là pour éviter l'interference de Windows sur Linux, puis retourner en Linux