Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9605addd32aa
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6abba2294db5
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jan 11, 2020

  1. nixos/nat: use nixos-nat-out instead of OUTPUT

    volth authored and bjornfor committed Jan 11, 2020

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    6abba22 View commit details
Showing with 1 addition and 1 deletion.
  1. +1 −1 nixos/modules/services/networking/nat.nix
2 changes: 1 addition & 1 deletion nixos/modules/services/networking/nat.nix
Original file line number Diff line number Diff line change
@@ -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}