Data Connection Lost Win10 (Server) Win10 (Clients) 37

eric brandl ericb0813 at gmail.com
Sat Dec 28 22:03:20 CET 2019


Issue I am having is sporadically around every 5 to 30 min all peer
connections no longer send traffic over them, and the only way to get them
working again is to restart the WireGuard server (Win 10) .


The log shows this:

2019-12-28 01:39:46.625: [TUN] [GameNet] Failed to write packet to TUN
device: file already closed

2019-12-28 01:39:46.629: [TUN] [GameNet] Binding v4 socket to interface 16
(blackhole=false)

2019-12-28 01:39:46.631: [TUN] [GameNet] Failed to write packet to TUN
device: file already closed

2019-12-28 01:39:46.649: [TUN] [GameNet] Failed to write packet to TUN
device: file already closed

2019-12-28 01:39:46.668: [TUN] [GameNet] Failed to write packet to TUN
device: file already closed

2019-12-28 01:39:46.692: [TUN] [GameNet] Failed to write packet to TUN
device: file already closed

2019-12-28 01:39:46.714: [TUN] [GameNet] Failed to write packet to TUN
device: file already closed

2019-12-28 01:39:46.730: [TUN] [GameNet] Failed to write packet to TUN
device: file already closed


Server Config:

[Interface]
PrivateKey = SNIP
ListenPort = 5687
Address = 10.152.152.1/24
MTU = 1360

[Peer]
PublicKey = BMIr6jiTNpu1wiSAqTLBUBFnM3DBW+RMdvapkmnFAiY=
AllowedIPs = 10.152.152.2/32

[Peer]
PublicKey = gY0SvOX8lKfLkMXHIwA6pNnB8ooc36vCOPlQ0WmR5Es=
AllowedIPs = 10.152.152.3/32

[Peer]
PublicKey = NcbtXceq1dh3khRv+YXXXw9RmJJH+r0acVIGbJ3qWSY=
AllowedIPs = 10.152.152.4/32

[Peer]
PublicKey = LkMrfhjHOz6VgL9gTsBkcahkw++RMYokMbJnViQ9xVM=
AllowedIPs = 10.152.152.5/32

[Peer]
PublicKey = YAKEhGM4Wr1SYSb197ugyV7IKqUOh+Jzpg7NVNLa3AM=
AllowedIPs = 10.152.152.6/32

[Peer]
PublicKey = MZ1ycd1MdUvFUDpRxgY0hc7/jwTP9TuuYB6uwmyYdmQ=
AllowedIPs = 10.152.152.7/32

[Peer]
PublicKey = Re5hkZG10PuN993GVRkkYCjjnyKyk96SCN4vFP5l/mM=
AllowedIPs = 10.152.152.8/32

[Peer]
PublicKey = Yrx9W1PC60Uw9tpsRIByV0U+aW3eE210X1LCxTnk21w=
AllowedIPs = 10.152.152.10/32

Example Client Config:

[Interface]
PrivateKey = generated_private_key
ListenPort = 5687
Address = 10.152.152.3/24
MTU = 1360

[Peer]
PublicKey = wQE513lYAgeLMcA72rGUnAcqknTYRlC2+oyWKI4Q1j4=
AllowedIPs = 10.152.152.0/24
Endpoint = SNIP:5687
PersistentKeepalive = 40

Things I have tried:

Rolling back to 35

Changing MTU

Switching NIC in Proxmox from Intel to Realtek and back


Other Notes:

With only two peers connected it seems to be less of an issue, with 8 or so
connected we get this issue quicker.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/wireguard/attachments/20191228/c6f4f447/attachment.html>


More information about the WireGuard mailing list