From 0856a288b6fc1ff61c847f20495366a48577ed80 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 15 Nov 2021 23:44:09 +0059 Subject: vidhar: ... --- hosts/vidhar/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hosts') diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix index 844dd5a1..a13398db 100644 --- a/hosts/vidhar/default.nix +++ b/hosts/vidhar/default.nix @@ -95,7 +95,7 @@ ip46tables -F nixos-fw-forward 2> /dev/null || true ip46tables -X nixos-fw-forward 2> /dev/null || true - ip46tables -N nixos-fw-forward + ip46tables -N nixos-fw-forward 2>/dev/null || true ip46tables -A nixos-fw-forward -i eno1 -j ACCEPT ip46tables -A nixos-fw-forward -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT ip6tables -A nixos-fw-forward -p icmpv6 --icmpv6-type redirect -j nixos-fw-log-refuse @@ -110,7 +110,7 @@ ip46tables -t nat -F nixos-fw-postrouting 2>/dev/null || true ip46tables -t nat -X nixos-fw-postrouting 2>/dev/null || true - ip46tables -t nat -N nixos-fw-postrouting + ip46tables -t nat -N nixos-fw-postrouting 2>/dev/null || true iptables -t nat -A nixos-fw-postrouting -o dsl -j MASQUERADE ip46tables -t nat -A POSTROUTING -j nixos-fw-postrouting @@ -119,7 +119,7 @@ ip46tables -t mangle -F nixos-fw-postrouting 2>/dev/null || true ip46tables -t mangle -X nixos-fw-postrouting 2>/dev/null || true - ip46tables -t mangle -N nixos-fw-postrouting + ip46tables -t mangle -N nixos-fw-postrouting 2>/dev/null || true ip46tables -A nixos-fw-postrouting -t mangle -o dsl -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu ip46tables -t mangle -A POSTROUTING -j nixos-fw-postrouting -- cgit v1.2.3