Test
This commit is contained in:
parent
92a489bf42
commit
df065ba7f6
1 changed files with 3 additions and 3 deletions
|
@ -63,10 +63,10 @@
|
|||
enable = true;
|
||||
internalInterfaces = [ "wireguard0" ];
|
||||
externalInterface = "eno3";
|
||||
extraCommands = ''iptables -t nat -A nixos-nat-post -d 10.100.0.2 --dport 80 -j SNAT --to-source 10.100.0.1'';
|
||||
extraCommands = ''${pkgs.iptables}/bin/iptables -t nat -A nixos-nat-post -d 10.100.0.2 --dport 80 -j SNAT --to-source 10.100.0.1'';
|
||||
forwardPorts = [
|
||||
{ sourcePort = 80; destination = "10.100.0.2:80"; }
|
||||
{ sourcePort = 443; destination = "10.100.0.2:443"; }
|
||||
{ sourcePort = 80; destination = "10.100.0.2"; }
|
||||
{ sourcePort = 443; destination = "10.100.0.2"; }
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue