From 6bfad8b60453320729c18b1762f3cc9f8dfdf291 Mon Sep 17 00:00:00 2001 From: Rotsipitia Rahaingoharivahitra Date: Mon, 16 Sep 2024 17:37:33 +0200 Subject: [PATCH] =?UTF-8?q?=09nouveau=20fichier=C2=A0:=20sio2/SISR/05-pxe/?= =?UTF-8?q?nftables.conf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sio2/SISR/05-pxe/nftables.conf | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 sio2/SISR/05-pxe/nftables.conf diff --git a/sio2/SISR/05-pxe/nftables.conf b/sio2/SISR/05-pxe/nftables.conf new file mode 100755 index 0000000..c6b4df5 --- /dev/null +++ b/sio2/SISR/05-pxe/nftables.conf @@ -0,0 +1,25 @@ +#!/usr/sbin/nft -f + +flush ruleset + +table inet filter { + chain input { + type filter hook input priority filter; + } + chain forward { + type filter hook forward priority filter; + } + chain output { + type filter hook output priority filter; + } +} + +table inet nat { + chain prerouting { + type nat hook prerouting priority 0; + } + chain postrouting { + type nat hook postrouting priority 100; + oifname "enp0s3" masquerade + } +}