summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-11-15 23:42:09 +0059
committerGregor Kleen <gkleen@yggdrasil.li>2021-11-15 23:42:09 +0059
commit30c4e879ed6dd8fd690882aac442d9ddfc9234ec (patch)
treeabd3e7565324e9123dbe57cf09c2bff0827a2176
parent75caaf888012af07ae770705693cbd06f86e9657 (diff)
downloadnixos-30c4e879ed6dd8fd690882aac442d9ddfc9234ec.tar
nixos-30c4e879ed6dd8fd690882aac442d9ddfc9234ec.tar.gz
nixos-30c4e879ed6dd8fd690882aac442d9ddfc9234ec.tar.bz2
nixos-30c4e879ed6dd8fd690882aac442d9ddfc9234ec.tar.xz
nixos-30c4e879ed6dd8fd690882aac442d9ddfc9234ec.zip
vidhar: ...
-rw-r--r--hosts/vidhar/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix
index 6d6726af..844dd5a1 100644
--- a/hosts/vidhar/default.nix
+++ b/hosts/vidhar/default.nix
@@ -114,6 +114,15 @@
114 iptables -t nat -A nixos-fw-postrouting -o dsl -j MASQUERADE 114 iptables -t nat -A nixos-fw-postrouting -o dsl -j MASQUERADE
115 115
116 ip46tables -t nat -A POSTROUTING -j nixos-fw-postrouting 116 ip46tables -t nat -A POSTROUTING -j nixos-fw-postrouting
117
118 ip46tables -t mangle -D POSTROUTING -j nixos-fw-postrouting 2>/dev/null || true
119 ip46tables -t mangle -F nixos-fw-postrouting 2>/dev/null || true
120 ip46tables -t mangle -X nixos-fw-postrouting 2>/dev/null || true
121
122 ip46tables -t mangle -N nixos-fw-postrouting
123 ip46tables -A nixos-fw-postrouting -t mangle -o dsl -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
124
125 ip46tables -t mangle -A POSTROUTING -j nixos-fw-postrouting
117 ''; 126 '';
118 }; 127 };
119 }; 128 };