summaryrefslogtreecommitdiff
path: root/config/networking/nat.nix
blob: 33e8ca72fa7eabb4e7014ddd860e6574f178eb23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ config, ... }:

let cfg = config.personal.networking;
in {
  boot.kernel.sysctl = {
    "net.ipv4.conf.all.forwarding" = true;
  };

  networking = {
    nat = {
        enable = true;
        externalInterface = cfg.interfaces.eth;
        internalInterfaces = [
          # cfg.interfaces.wlp2ghz
          cfg.interfaces.wlp5ghz
        ];
    };

    firewall.enable = false;
  };
}