From c4acdc13e5d6889686d9f491fd6b54de59183eec Mon Sep 17 00:00:00 2001 From: veg Date: Fri, 30 May 2025 11:24:54 +0200 Subject: [PATCH 1/2] source bastille_network_pf_ext_if from bastille config when loading rdr rule --- usr/local/share/bastille/rdr.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/rdr.sh b/usr/local/share/bastille/rdr.sh index 24837694..56a2033b 100644 --- a/usr/local/share/bastille/rdr.sh +++ b/usr/local/share/bastille/rdr.sh @@ -159,7 +159,7 @@ load_rdr_rule() { local inet="${1}" local if_name="${2}" - local if=ext_if=\"${2}\" + local if="${bastille_network_pf_ext_if}"=\"${2}\" local src="${3}" local dst="${4}" local proto="${5}" @@ -414,4 +414,4 @@ while [ "$#" -gt 0 ]; do fi ;; esac -done \ No newline at end of file +done From 34665aa24949764c1beab0aa962b80d42167b61a Mon Sep 17 00:00:00 2001 From: veg Date: Fri, 30 May 2025 13:21:02 +0200 Subject: [PATCH 2/2] source ext_if from bastille_network_pf_ext_if in load_rdr_log_rule() --- usr/local/share/bastille/rdr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/share/bastille/rdr.sh b/usr/local/share/bastille/rdr.sh index 56a2033b..1cabc9e3 100644 --- a/usr/local/share/bastille/rdr.sh +++ b/usr/local/share/bastille/rdr.sh @@ -194,7 +194,7 @@ load_rdr_log_rule() { local inet="${1}" local if_name="${2}" - local if=ext_if=\"${2}\" + local if="${bastille_network_pf_ext_if}"=\"${2}\" local src="${3}" local dst="${4}" local proto="${5}"