From 9e1d304cac5367c3dbb1ca14700736680bd3a804 Mon Sep 17 00:00:00 2001 From: Martin Michalec Date: Wed, 11 Nov 2026 08:31:06 +0300 Subject: publish --- 04/nftables.conf | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 04/nftables.conf (limited to '04/nftables.conf') diff --git a/04/nftables.conf b/04/nftables.conf new file mode 100755 index 0000000..04c30b6 --- /dev/null +++ b/04/nftables.conf @@ -0,0 +1,28 @@ +#!/usr/bin/nft -f + +flush ruleset + +table inet filter { + chain input { + type filter hook input priority 0; + policy drop; + + iif "lo" counter accept + ct state established,related counter accept + ip saddr 172.27.203.254 ip protocol icmp icmp type echo-request counter accept + } + + chain output { + type filter hook output priority 0; + policy drop; + + oif "lo" counter accept + ct state established,related counter accept + udp dport 53 counter accept + tcp dport 53 counter accept + tcp dport 853 counter accept # DNS over TLS + ip protocol icmp icmp type echo-request counter accept + tcp dport 80 counter accept + tcp dport 443 counter accept + } +} -- cgit v1.3.1