From 4705ca5e7b7c06ab2cbd8d7e4dd834977c7c66e2 Mon Sep 17 00:00:00 2001 From: Hugo Levy-Falk Date: Mon, 20 Jan 2020 11:49:05 +0100 Subject: [PATCH] =?UTF-8?q?Autorise=20les=20bannis=20=C3=A0=20voir=20la=20?= =?UTF-8?q?roulette?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roulette.nft | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/roulette.nft b/roulette.nft index 47fe87d..6a4ef6e 100644 --- a/roulette.nft +++ b/roulette.nft @@ -19,9 +19,17 @@ table inet firewall { set ip_roulette { type ipv4_addr } + set allowed_roulette { + type ipv4_addr + elements = { + 10.7.0.4, + 92.242.132.24 + } + } + chain roulette { - ip saddr @ip_roulette ip daddr != 92.242.132.24 drop - ip daddr @ip_roulette ip saddr != 92.242.132.24 drop + ip saddr @ip_roulette ip daddr != @allowed_roulette drop + ip daddr @ip_roulette ip saddr != @allowed_roulette drop } }