Development discussion of WireGuard
 help / color / mirror / Atom feed
* Possible regression between 5.18.2 and 6.2.1
@ 2023-03-06  9:51 Dan Crawford
  2023-03-10 10:21 ` Linux regression tracking (Thorsten Leemhuis)
  2023-03-30 14:39 ` Jason A. Donenfeld
  0 siblings, 2 replies; 5+ messages in thread
From: Dan Crawford @ 2023-03-06  9:51 UTC (permalink / raw)
  To: wireguard

I recently updated a server from kernel version 5.18.2 to 6.2.1 and
discovered that WG clients could no longer connect; there were no
changes to configs. Reverting to 5.18.2 resolves the issue.

My server config looks something like

[Interface]
Address = 192.168.1.0/24
ListenPort = 51820
PrivateKey = XXX
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE

[Peer]
PublicKey = XXX
AllowedIPs = 192.168.1.3/32

and my client config looks something like


[Interface]
Address = 192.168.1.3/32
DNS = 1.1.1.1
PrivateKey = XXX

[Peer]
AllowedIPs = 0.0.0.0/0
Endpoint = example.com:51820
PublicKey = XXX

On the server I get mysterious "packet has unallowed src ip" errors.
Playing around with various combinations of subnets and iptables
invocations doesn't seem to help. Was there a change to the config spec
that I missed? Or otherwise any other ideas what might be going on?

Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-04-08 12:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-06  9:51 Possible regression between 5.18.2 and 6.2.1 Dan Crawford
2023-03-10 10:21 ` Linux regression tracking (Thorsten Leemhuis)
2023-03-30 14:39 ` Jason A. Donenfeld
2023-04-02  1:14   ` Dan Crawford
2023-04-08 12:01     ` Linux regression tracking #update (Thorsten Leemhuis)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).