From b3df6d4032dc42167d076b1809cb7aa06ed9ca1b Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 29 Aug 2021 17:43:04 +0200 Subject: [PATCH] Fix firewall for guest network --- hosts/carbon/configuration.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/carbon/configuration.nix b/hosts/carbon/configuration.nix index de77a6e..31e2d55 100644 --- a/hosts/carbon/configuration.nix +++ b/hosts/carbon/configuration.nix @@ -115,9 +115,9 @@ networking.firewall.allowedUDPPorts = [ 60001 ]; networking.firewall.extraCommands = '' - iptables -A FORWARD -i enp1s0.202 -o enp1s0.102 -j ACCEPT + iptables -A FORWARD -i enp1s0.202 -o ppp-ntvdsl -j ACCEPT iptables -A FORWARD -i enp1s0.202 -j DROP - iptables -A FORWARD -i enp1s0.102 -o enp1s0.202 -j ACCEPT + iptables -A FORWARD -i ppp-ntvdsl -o enp1s0.202 -j ACCEPT iptables -A FORWARD -o enp1s0.202 -j DROP '';