From 167015976f04a2330055acf1bcf68ae164cddd0a Mon Sep 17 00:00:00 2001 From: inference Date: Wed, 2 Jul 2025 03:58:54 +0000 Subject: [PATCH] fix(nft): wrap variable values in quotation marks This is Inferencium convention in order to prevent value breakage due to spaces and other special characters. --- za-00-00/nftables-rule.sh | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/za-00-00/nftables-rule.sh b/za-00-00/nftables-rule.sh index f39e9da..e5a365e 100644 --- a/za-00-00/nftables-rule.sh +++ b/za-00-00/nftables-rule.sh @@ -2,7 +2,7 @@ # Inferencium - ZA-00-00 # nftables - Configuration -# Version: 1.0.0-beta.2 +# Version: 1.0.0-beta.3 # Copyright 2025 Jake Winters # SPDX-License-Identifier: BSD-3-Clause @@ -12,30 +12,30 @@ ## nftables path nft="/usr/sbin/nft" ## Interface -lan=enp16s0 -wan=enp41s0 -lan_net=10.0.0.0/24 +lan="enp16s0" +wan="enp41s0" +lan_net="10.0.0.0/24" ## IP address - LAN -xb_00_01=10.0.0.21 +xb_00_01="10.0.0.21" ## IP address - WAN -inf=185.241.226.159 +inf="185.241.226.159" ## Port -ssh=22 -domain=53 -domains=853 -http=80 -https=443 -rtmp=1935 -xmpp0=3478 -xmpp1=5222 -xmpp_s2s=5269 -xmpp3=5349 -xmpp_https=5443 -murmur=64738 -wg=51820 +ssh="22" +domain="53" +domains="853" +http="80" +https="443" +rtmp="1935" +xmpp0="3478" +xmpp1="5222" +xmpp_s2s="5269" +xmpp3="5349" +xmpp_https="5443" +murmur="64738" +wg="51820" ${nft} flush ruleset;