summaryrefslogtreecommitdiff
path: root/bragi.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-06-16 23:16:05 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-06-16 23:16:05 +0200
commitf6f7d4eddcca7d888f4f6c3edf0d8a8862a17eb4 (patch)
treef312b08964eff5354919f790d12dec5f01ff6f36 /bragi.nix
parent25df69e491e403a0e7d66f5b5d22c5137bba6201 (diff)
downloadnixos-f6f7d4eddcca7d888f4f6c3edf0d8a8862a17eb4.tar
nixos-f6f7d4eddcca7d888f4f6c3edf0d8a8862a17eb4.tar.gz
nixos-f6f7d4eddcca7d888f4f6c3edf0d8a8862a17eb4.tar.bz2
nixos-f6f7d4eddcca7d888f4f6c3edf0d8a8862a17eb4.tar.xz
nixos-f6f7d4eddcca7d888f4f6c3edf0d8a8862a17eb4.zip
MASQUERADE
Diffstat (limited to 'bragi.nix')
-rw-r--r--bragi.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/bragi.nix b/bragi.nix
index 1ea4f214..e4bda858 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -191,9 +191,12 @@
191 enable = true; 191 enable = true;
192 allowPing = true; 192 allowPing = true;
193 allowedTCPPorts = [ 22 193 allowedTCPPorts = [ 22
194 ]; 194 ];
195 allowedUDPPortRanges = [ { from = 60000; to = 61000; } # mosh 195 allowedUDPPortRanges = [ { from = 60000; to = 61000; } # mosh
196 ]; 196 ];
197 extraCommands = ''
198 iptables -t nat -A POSTROUTING -o wlp4s0 -j MASQUERADE
199 '';
197 }; 200 };
198 201
199 services.dhcpd = { 202 services.dhcpd = {