mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-22 21:18:44 +08:00
devices.srv1.node0: enable IP masquerading
This commit is contained in:
parent
29c6a2b929
commit
a3e9cbbc9f
@ -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";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user