From 2df48d47a7354134a669457736669ff6295051a0 Mon Sep 17 00:00:00 2001 From: iFargle Date: Sun, 8 Oct 2023 12:43:05 +0900 Subject: [PATCH] Test --- nixos/hosts/osaka-vultr-01/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/hosts/osaka-vultr-01/default.nix b/nixos/hosts/osaka-vultr-01/default.nix index b436d9d3..31c0dc39 100644 --- a/nixos/hosts/osaka-vultr-01/default.nix +++ b/nixos/hosts/osaka-vultr-01/default.nix @@ -49,13 +49,13 @@ postSetup = '' ${pkgs.iptables}/bin/iptables -A FORWARD -i %i -j ACCEPT ${pkgs.iptables}/bin/iptables -A FORWARD -o %i -j ACCEPT - ${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -d 10.100.0.2 -o eno3 -p tcp -m tcp --dport 80 -j MASQUERADE + ${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -d 10.100.0.2 --dport 80 -j MASQUERADE ${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.100.0.0/24 -o eno3 -j MASQUERADE ''; postShutdown = '' ${pkgs.iptables}/bin/iptables -D FORWARD -i %i -j ACCEPT ${pkgs.iptables}/bin/iptables -D FORWARD -o %i -j ACCEPT - ${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -d 10.100.0.2 -o eno3 -p tcp -m tcp --dport 80 -j MASQUERADE + ${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -d 10.100.0.2 --dport 80 -j MASQUERADE ${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -s 10.100.0.0/24 -o eno3 -j MASQUERADE ''; # Testing