diff options
author | lassulus <lass@aidsballs.de> | 2015-10-03 19:40:00 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-10-04 13:36:52 +0200 |
commit | 02eb997d3e068753920b3e78d6f48889f77bda54 (patch) | |
tree | 999931349b033b892b2de37c3c94ad1dfce4d07c /lass/2configs/privoxy-retiolum.nix | |
parent | eff469ebef1d0be6c1096f3871001b583bb71ed1 (diff) |
lass 2 configs: add privoxy configs
lass 2: retiolum_privoxy -> privoxy-retiolum
Diffstat (limited to 'lass/2configs/privoxy-retiolum.nix')
-rw-r--r-- | lass/2configs/privoxy-retiolum.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lass/2configs/privoxy-retiolum.nix b/lass/2configs/privoxy-retiolum.nix new file mode 100644 index 000000000..3a3641ad8 --- /dev/null +++ b/lass/2configs/privoxy-retiolum.nix @@ -0,0 +1,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"; } + ]; + }; + }; +} |