1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

fix: add forwarding rule for netbird -> home

This commit is contained in:
oddlama 2024-05-21 00:12:23 +02:00
parent 1b1a19e377
commit 00bc8cbd9f
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
7 changed files with 47 additions and 0 deletions

View file

@ -1,4 +1,16 @@
{nodes, ...}: {
# Forwarding required to masquerade netbird network
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
wireguard.proxy-home.client.via = "ward";
networking.nftables.chains.forward.from-netbird = {
after = ["conntrack"];
rules = [
"iifname wt-home oifname lan accept"
];
};
environment.persistence."/persist".directories = [
{
directory = "/var/lib/netbird-home";