nixfiles/hosts/scotty-router/nat.nix

10 lines
201 B
Nix
Raw Permalink Normal View History

2021-03-13 15:32:44 +01:00
{ config, pkgs, ...}:
{
networking.nat = {
enable = true;
extraCommands = "iptables -A INPUT -p icmp -j ACCEPT";
externalInterface = "ens18";
internalInterfaces = [ "ens19" ];
};
}