Published on

WireGuard su Proxmox: come ho misurato e ottimizzato la VPN fino a ~900 Mbps reali

Authors
  • avatar
    Name
    Alessandro Iannacone
    Twitter

🔐 WireGuard su Proxmox: come ho misurato e ottimizzato la VPN fino a ~900 Mbps reali

Quando si parla di VPN, è facile cadere in test fuorvianti o tuning inutili. In questa guida ti mostro un caso reale, fatto su Proxmox, in cui ho:

  • misurato correttamente WireGuard
  • isolato i colli di bottiglia
  • ottimizzato MTU e TCP
  • verificato i limiti fisici reali

Il risultato finale? ~900 Mbps stabili via WireGuard, senza tweak pericolosi.


🧠 Premessa fondamentale: cosa NON stavo misurando

Accedevo al mio server tramite VPN, ma:

  • ❌ NON stavo testando la rete del mio PC
  • ❌ NON stavo testando Proxmox tramite la VPN
  • ❌ NON stavo usando l’IP pubblico

Il test corretto è sempre:

PC remoto ⇄ WireGuardProxmox

🧪 Test iniziale: single stream (baseline)

Sul server WireGuard:

iperf3 -s

Dal PC remoto:

iperf3 -c 10.10.0.1 -t 15

Risultato:

  • ~460–480 Mbps
  • 0 packet loss
  • CWND stabile

🚀 Test multi-stream: il vero throughput WireGuard

iperf3 -c 10.10.0.1 -P 4 -t 20

Risultato:

  • ~880–910 Mbps stabili
  • WAN praticamente saturata

📦 Test MTU

ping -M do -s 1380 10.10.0.1

⚙️ Impostare MTU esplicito

[Interface]
MTU = 1380

🔧 Sysctl consigliati

net.core.rmem_max = 67108864
net.core.wmem_max = 67108864
net.ipv4.tcp_rmem = 4096 87380 67108864
net.ipv4.tcp_wmem = 4096 65536 67108864
net.ipv4.tcp_congestion_control = bbr

🏁 Conclusione

WireGuard, se testato correttamente, non è lento. I colli di bottiglia sono quasi sempre metodologici, non tecnologici.


Per una consulenza o una verifica della tua situazione:

Contattami qui