From 40f47f2ad5fb3094dd7ecf08b2e0d23ba6015808 Mon Sep 17 00:00:00 2001 From: iFargle Date: Wed, 6 Dec 2023 23:00:41 +0900 Subject: [PATCH] Disable ipv6 --- nixos/common/modules/networking.nix | 1 + nixos/hosts/osaka-linode-01/firewall.nix | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/common/modules/networking.nix b/nixos/common/modules/networking.nix index c848e188..9f60e663 100644 --- a/nixos/common/modules/networking.nix +++ b/nixos/common/modules/networking.nix @@ -2,6 +2,7 @@ # Enable networking with NetworkManager networking = { + enableIPv6 = false; networkmanager = { enable = true; }; diff --git a/nixos/hosts/osaka-linode-01/firewall.nix b/nixos/hosts/osaka-linode-01/firewall.nix index f3f2c377..037a1781 100644 --- a/nixos/hosts/osaka-linode-01/firewall.nix +++ b/nixos/hosts/osaka-linode-01/firewall.nix @@ -23,7 +23,6 @@ networking.firewall.extraCommands = '' iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT - iptables -t nat -A POSTROUTING -s 10.100.0.2 -j SNAT --to `:%s/\= # TCP PORTS ################################################################################################## # PORT 80