System crash consistently after transferring around 280 Mbyte over Wireguard

Florian Franzeck fmfranzeck at
Thu Apr 27 23:48:36 CEST 2017


I compiled version 20170421 for my turris omnia running a modified 
OpenWRT OS. I was really happy to see, how well wireguard performed 
between my 2 routers compared to OpenVPN. But i consistently could 
reproduce a relevant error: after transferring about 280Mbyte over the 
wireguard VPN over a samba share, both my routers crash and restart. As 
far as i can tell, there is no memory leak (1 router has 1Gbyte of RAM, 
the other 2 Gbyte and they don't fill up during the process).  Im not 
sure what information i could post, as no logs are written or how to 
debug this, but i'm  more than happy to help out. I opened the 
respective Ports on the firewall.
Configuration is pretty basic:
Router 1:
ListenPort = 443
PrivateKey = xxx
PublicKey =  xxx
Endpoint = xxx:443
AllowedIPs =,::/0

Router 2:
ListenPort = 443
PrivateKey = xx

[Peer]PublicKey =  xxx
Endpoint = xxx:443
AllowedIPs =,::/0

I start the tunnel by these two scripts:

ip link add dev tun1 type wireguard
ip addr add peer dev tun1
wg setconf tun1 /etc/wireguard/staticfmf/conf
ip link set tun1 up
route add -net netmask gw

ip link add dev tun0 type wireguard
ip addr add peer dev tun0
wg setconf tun0 /etc/wireguard/staticheim/conf
ip link set tun0 up
route add -net netmask gw

Anyone able to help?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the WireGuard mailing list