summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-04-17 15:41:26 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2016-04-17 15:41:26 +0200
commit59101497d9793bc8f9012b0730a48b66b1704f0b (patch)
tree928f76f914fbebe2b3df58d33c562054365accc2
parentc80d56bedc36db955fd009d058dd419422fb7aa7 (diff)
downloadnixos-59101497d9793bc8f9012b0730a48b66b1704f0b.tar
nixos-59101497d9793bc8f9012b0730a48b66b1704f0b.tar.gz
nixos-59101497d9793bc8f9012b0730a48b66b1704f0b.tar.bz2
nixos-59101497d9793bc8f9012b0730a48b66b1704f0b.tar.xz
nixos-59101497d9793bc8f9012b0730a48b66b1704f0b.zip
more lenient firewall
-rw-r--r--bragi.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/bragi.nix b/bragi.nix
index f520d05c..57ebd42f 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -196,7 +196,8 @@ in rec {
196 ]; 196 ];
197 extraCommands = '' 197 extraCommands = ''
198 iptables -t nat -A POSTROUTING -o wlp4s0 -j MASQUERADE 198 iptables -t nat -A POSTROUTING -o wlp4s0 -j MASQUERADE
199 iptables -A FORWARD -i wlp4s0 -o enp1s0 -m state --state RELATED,ESTABLISHED -j ACCEPT 199 #iptables -A FORWARD -i wlp4s0 -o enp1s0 -m state --state RELATED,ESTABLISHED -j ACCEPT
200 iptables -A FORWARD -i wlp4s0 -o enp1s0 -j ACCEPT
200 iptables -A FORWARD -i enp1s0 -o wlp4s0 -j ACCEPT 201 iptables -A FORWARD -i enp1s0 -o wlp4s0 -j ACCEPT
201 ''; 202 '';
202 }; 203 };