diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-06-16 23:16:05 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-06-16 23:16:05 +0200 |
| commit | f6f7d4eddcca7d888f4f6c3edf0d8a8862a17eb4 (patch) | |
| tree | f312b08964eff5354919f790d12dec5f01ff6f36 | |
| parent | 25df69e491e403a0e7d66f5b5d22c5137bba6201 (diff) | |
| download | nixos-f6f7d4eddcca7d888f4f6c3edf0d8a8862a17eb4.tar nixos-f6f7d4eddcca7d888f4f6c3edf0d8a8862a17eb4.tar.gz nixos-f6f7d4eddcca7d888f4f6c3edf0d8a8862a17eb4.tar.bz2 nixos-f6f7d4eddcca7d888f4f6c3edf0d8a8862a17eb4.tar.xz nixos-f6f7d4eddcca7d888f4f6c3edf0d8a8862a17eb4.zip | |
MASQUERADE
| -rw-r--r-- | bragi.nix | 7 |
1 files changed, 5 insertions, 2 deletions
| @@ -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 = { |
