Re: are WG clients expected to automatically handle it when the endpoint is within the AllowedIPs

Kajetan Staszkiewicz <[email protected]>
Newsgroups com.zx2c4.lists.wireguard
Message-ID <[email protected]>
On 2025-05-23 00:36, Christoph Anton Mitterer wrote:
> (re-posting, now that the list seems to work again)
> 
> 
> Hey folks.
> 
> In science/education, many organisations (I could find the total list
> only in the Android app, but there it seems to be several 1000) use
> eduVPN to provide VPN access to their users.
> It comes with a client which, AFAIU, either sets up some OpenVPN or WG
> VPN.
> 
> I've previously used the OpenVPN profile files successfully with
> NetworkManager but now wanted to switch to WG, and again I don't wanna
> use the eduVPN client, because I think this should be done with the
> native tools that integrate nicely into the system (e.g. NM for desktop
> environments, ifupdown/systemd-networkd/etc. for servers).
>
> …
> 
> Using that config with NM fails

NetworkManager's Wireguard implemmentation already has a way of
supporting it by using fwmarks. It's just that the fwmark operation is
not automatically turned unless the tunnel is configured with
AllowedIPs=::/0

See my comment and a workaround which always forces the fwmark operation
on
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1157#note_2426757


-- 
| pozdrawiam / regards | Powered by Debian and FreeBSD  |
| Kajetan Staszkiewicz |   www: http://tuxpowered.net   |
|                      | matrix: @vegeta:tuxpowered.net |
`----------------------^--------------------------------'
OpenPGP_signature.asc (application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEEfSEIcxY9kDeZvSZsgKrXf6bzAFMFAmhBcQoFAwAAAAAACgkQgKrXf6bzAFNT
xxAAtbXG0Z21umYoMpBbQf78XIG8Pk8a9taHSloHqQR/zIi0X9GBvlVCgxInQrbU3IxCYaW7aWVx
b2pUHuxgNezUqAy4mJqS5oloJBllDOaPrLRk63TBzz6KIhMN1vdEH4PMKGP7oNR9ZBRawzGnYz34
eTSzSXAkc/GF3dvlsH7W0aBOT6gyGxefLkheN1hpqwIR5KLhcdQjL/R2rj1Mecv7mUyia5rJ0c72
kN789x2iLj18GTjvGZXgPNwDwsLVxY8nm1k7SoigrtVIWQ3Kr1gz8Gb+SmPPzB1I7QtYYyjxZofq
VFCYV+3FbUtn0tG+ADGvbLsekov2Qs0daRmjm5bklspz+LHpyqaHP9+ELw0Ryci6eYT1N2QuF2j1
CS9wAqcYEJXsLy2CD0BBs6GAAzQV1E4S7EIRKKovexzwqg/ob8cFjo0eVVucgqlXdBZAViURBsX+
6JyBolDhfTJYuFHaaVYMZo01u7xdr3AIPCqoEU8VuC8uERXD7gqGPNfdqT7Ue1g6fFvP3Tgldddh
s7ONXB9Y9EIvYBgw6OGxCol8Qwh8aqyvZ5WFmg5y8dSglTiFCKiwwC7nIwMkCzfdWfUagWrvhbPC
GaS6s8jRSCFT5U315FcDlQ0wBBH5JqbDkn+h10+bdOA15M0n61eaFET3v2jNtHjFGoft2gCThuzT
A5o=
=1Nss
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.