Bonjour,
Après avoir installé Wireguard sous un serveur Debian, j'ai des pertes de débits élevés.
Est ce liée à la valeur MTU ?
Mon routeur ne dispose pas de l'IPV6 et ma 4G le dispose, y'aurai t'il un problème sur ce point ?
ifconfig:
ens18: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
wg0: flags=209<UP,POINTOPOINT,RUNNING,NOARP> mtu 1420
[#] ip link delete dev wg0
[#] iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o ens18 -j MASQUERADE
[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip -4 address add 192.168.2.1/24 dev wg0
[#] ip link set mtu 1420 up dev wg0
[#] iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o ens18 -j MASQUERADE
wg0: flags=209<UP,POINTOPOINT,RUNNING,NOARP> mtu 1420
inet 192.168.2.1 netmask 255.255.255.0 destination 192.168.2.1
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
La valeur "net.ipv4.ip_forward=1" est décommenté dans le fichier /etc/sysctl.conf .
ifconfig wg0
wg0: flags=209<UP,POINTOPOINT,RUNNING,NOARP> mtu 1420
inet 192.168.2.1 netmask 255.255.255.0 destination 192.168.2.1
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)
RX packets 115 bytes 21404 (20.9 KiB)
RX errors 1 dropped 0 overruns 0 frame 1
TX packets 98 bytes 38084 (37.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
MTU:
Routeur: 1500
PC : 1500
Configuration:
[Interface]
PrivateKey =
ListenPort = 51820
Address = 192.168.2.2/24
DNS = 192.168.2.1
MTU = 1500
[Peer]
PublicKey =**********
PresharedKey = ****
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = *****.ddns.net:***