Hi folks,
A year ago when I used Debian I remember that I used two WireGuard tunnels at the same time:
# first.conf
...
AllowedIPs = 0.0.0.0/0
...
# second.conf
...
AllowedIPs = 1.2.3.4/32, 5.6.7.8/32
...
And it worked (simply via wg-quick up
). In other words everything went through first
except when I wanted to connect 1.2.3.4
and 5.6.7.8
. Those connections used the second
interface.
For some strange reasons, it doesn’t work now when I’m on NixOS. I confirmed that both first
and second
work with AllowedIPs = 0.0.0.0/0
but when I connect both or when I connect the second
only, I can’t reach 1.2.3.4
and 5.6.7.8
.
I spent several hours trying to debug it, it’s not FW issue (I nft flush ruleset
to make sure) and it’s not DNS issue since I tried to connect 1.2.3.4
and 5.6.7.8
directly.
Could you please help?
Is it possible that WireGuard is somehow broken on NixOS?
Thank you.