From a40e057e92ba1defac953c42eeb4ae2751585c45 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 30 Sep 2024 19:24:26 -0600 Subject: [PATCH] ifix --- modules/module-open-ports.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 modules/module-open-ports.sh diff --git a/modules/module-open-ports.sh b/modules/module-open-ports.sh new file mode 100644 index 0000000..ce42a72 --- /dev/null +++ b/modules/module-open-ports.sh @@ -0,0 +1,13 @@ +#!/bin/bash +NFT='/usr/bin/nft' +declare -A portConfig +portConfig["https"]="443" +portConfig["http"]="80" +portConfig["AdGuard-3"]="853" +#portConfig["WireGuard"]="25" + +portOpenParser() { +$NFT insert rule ip filter input position 0 tcp dport $1 accept +$NFT insert rule ip6 filter input position 0 tcp dport $1 accept +} +