summary refs log tree commit diff
diff options
context:
space:
mode:
authorvolth <volth@volth.com>2020-01-11 10:35:39 +0000
committerBjørn Forsman <bjorn.forsman@gmail.com>2020-01-12 00:06:49 +0100
commit6abba2294db59ef150f8ae36e344cab98114f30d (patch)
tree91a04777d8803de93428a934a117072f5e35b0cd
parent9605addd32aa1367a8521fc016ae6d37858dd4f2 (diff)
downloadnixpkgs-6abba2294db59ef150f8ae36e344cab98114f30d.tar
nixpkgs-6abba2294db59ef150f8ae36e344cab98114f30d.tar.gz
nixpkgs-6abba2294db59ef150f8ae36e344cab98114f30d.tar.bz2
nixpkgs-6abba2294db59ef150f8ae36e344cab98114f30d.tar.lz
nixpkgs-6abba2294db59ef150f8ae36e344cab98114f30d.tar.xz
nixpkgs-6abba2294db59ef150f8ae36e344cab98114f30d.tar.zst
nixpkgs-6abba2294db59ef150f8ae36e344cab98114f30d.zip
nixos/nat: use nixos-nat-out instead of OUTPUT
-rw-r--r--nixos/modules/services/networking/nat.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/nat.nix b/nixos/modules/services/networking/nat.nix
index f1238bc6b16..9c658af30f7 100644
--- a/nixos/modules/services/networking/nat.nix
+++ b/nixos/modules/services/networking/nat.nix
@@ -68,7 +68,7 @@ let
           destinationPorts = if (m == null) then throw "bad ip:ports `${fwd.destination}'" else elemAt m 1;
         in ''
           # Allow connections to ${loopbackip}:${toString fwd.sourcePort} from the host itself
-          iptables -w -t nat -A OUTPUT \
+          iptables -w -t nat -A nixos-nat-out \
             -d ${loopbackip} -p ${fwd.proto} \
             --dport ${builtins.toString fwd.sourcePort} \
             -j DNAT --to-destination ${fwd.destination}