mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
fix: route the whole wireguard network when we are a client.
This commit is contained in:
parent
f95bc0eb30
commit
43b2bd1982
2 changed files with 9 additions and 3 deletions
|
@ -219,8 +219,10 @@
|
|||
wireguardPeerConfig = {
|
||||
PublicKey = builtins.readFile (peerPublicKeyPath wgCfg.client.via);
|
||||
PresharedKeyFile = config.rekey.secrets.${peerPresharedKeySecret nodeName wgCfg.client.via}.path;
|
||||
# TODO this should be 0.0.0.0 if the client wants to route all traffic
|
||||
AllowedIPs = serverAllowedIPs wgCfg.client.via;
|
||||
# Access to the whole network is routed through our entry node.
|
||||
# TODO this should add any routedAddresses on ANY server in the network, right?
|
||||
# if A entries via B and only C can route 0.0.0.0/0, does that work?
|
||||
AllowedIPs = networkCidrs;
|
||||
};
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue