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:
parent
1b1a19e377
commit
00bc8cbd9f
7 changed files with 47 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue