summaryrefslogtreecommitdiffstats
path: root/lass/2configs/privoxy-retiolum.nix
blob: 3a3641ad8a52ce99b62d44b204ef9f59c21691e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ config, lib, ... }:

let
  r_ip = (head config.krebs.build.host.nets.retiolum.addrs4);
  inherit (lib) head;

in {
  imports = [
    ./privoxy.nix
  ];

  services.privoxy.listenAddress = "${r_ip}:8118";

  krebs.iptables = {
    tables = {
      filter.INPUT.rules = [
        { predicate = "-i retiolum -p tcp --dport 8118"; target = "ACCEPT"; }
      ];
    };
  };
}