Re: WireGuard host crashes roughly every week

2021-08-05 Thread Matt P.
Thanks so much Matt! It works! I've reenabled PersistantKeepalive overnight and mbufs are staying low. The failed handshakes are still occurring, "ifconfig wg0 debug" filled my dmesg with hundreds of lines like: > wg0: Handshake for peer 10 did not complete after 5 seconds, retrying (try 6) >

Re: WireGuard host crashes roughly every week

2021-08-05 Thread Stuart Henderson
On 2021/08/04 13:57, Claudio Jeker wrote: > > diff --git if_wg.c if_wg.c > > index 18333eda4cb..5f4319558ab 100644 > > --- if_wg.c > > +++ if_wg.c > > @@ -810,6 +810,7 @@ wg_send(struct wg_softc *sc, struct wg_endpoint *e, > > struct mbuf *m) > > IPPROTO_IPV6); > > #endif

Re: WireGuard host crashes roughly every week

2021-08-04 Thread Claudio Jeker
On Wed, Aug 04, 2021 at 08:36:07PM +1000, Matt Dunwoodie wrote: > On Tue, 3 Aug 2021 13:02:15 -0500 > "Matt P." wrote: > > > Hi Stuart! > > > > Your advice lead me to discover, the issue happens only with the > > "PersistantKeepalive = 25" option I had enabled on each wg-quick > > peer. Looks li

Re: WireGuard host crashes roughly every week

2021-08-04 Thread Matt Dunwoodie
On Tue, 3 Aug 2021 13:02:15 -0500 "Matt P." wrote: > Hi Stuart! > > Your advice lead me to discover, the issue happens only with the > "PersistantKeepalive = 25" option I had enabled on each wg-quick > peer. Looks like you could recreate it by making a few no-address > peers with this option ena

Re: WireGuard host crashes roughly every week

2021-08-03 Thread Matt P.
(Resending, as I forgot to include the mailing list itself) > On Aug 1, 2021, at 3:37 AM, Stuart Henderson wrote: > > It is always good to include dmesg when reporting a problem. > > An outline of the wireguard and other network config would be > useful too. If you can give instructions to repr

Re: WireGuard host crashes roughly every week

2021-08-01 Thread Stuart Henderson
On 2021-07-31, Matt P. wrote: > Hi Todd! > > You're right, the number of mbufs on the machine in question is steadily > climbing. > > This is a few minutes after a reboot, with an RC script starting wireguard > automatically: > >> 27836 mbufs in use: >> 27827 mbufs allocated to data >>

Re: WireGuard host crashes roughly every week

2021-07-31 Thread Matt P.
Hi Todd! You're right, the number of mbufs on the machine in question is steadily climbing. This is a few minutes after a reboot, with an RC script starting wireguard automatically: > 27836 mbufs in use: > 27827 mbufs allocated to data > 3 mbufs allocated to packet headers >

Re: WireGuard host crashes roughly every week

2021-07-30 Thread Todd C . Miller
On Thu, 29 Jul 2021 20:09:12 -0500, "Matt P." wrote: > I have an OpenBSD box that breaks after a week or so of running. All network > traffic stops reaching the box. If I look at the screen or serial output, I c > an get the "login:" prompt, and when I enter my name I get prompted for a pas > swo

Re: WireGuard host crashes roughly every week

2021-07-29 Thread Sven F.
looks like OOM problem, Send dmesg, keep a window withlog open, monitor your memory usage with something also send some conf On Thu, Jul 29, 2021 at 9:11 PM Matt P. wrote: > > Hi all. > > I have an OpenBSD box that breaks after a week or so of running. All network > traffic stops reaching the b

WireGuard host crashes roughly every week

2021-07-29 Thread Matt P.
Hi all. I have an OpenBSD box that breaks after a week or so of running. All network traffic stops reaching the box. If I look at the screen or serial output, I can get the "login:" prompt, and when I enter my name I get prompted for a password, but once I enter a password it hangs. Key presses