nixfiles/hosts/scotty-router/nat.nix
2021-03-13 16:10:13 +01:00

10 lines
201 B
Nix

{ config, pkgs, ...}:
{
networking.nat = {
enable = true;
extraCommands = "iptables -A INPUT -p icmp -j ACCEPT";
externalInterface = "ens18";
internalInterfaces = [ "ens19" ];
};
}