devices.srv1.node0: enable IP masquerading

This commit is contained in:
陈浩南 2024-09-16 17:37:43 +08:00
parent 29c6a2b929
commit a3e9cbbc9f

View File

@ -33,6 +33,10 @@ inputs:
enable = true;
exports = "/home 192.168.178.0/24(rw)";
};
networking.firewall.allowedTCPPorts = [ 2049 ];
networking =
{
firewall.allowedTCPPorts = [ 2049 ];
};
systemd.network.networks."10-eno146".networkConfig.IPMasquerade = "both";
};
}