From a0d5687567e4b2b72ec1c722518d8f9fe34ad2ae Mon Sep 17 00:00:00 2001 From: Brie Bruns Date: Sat, 17 Apr 2021 16:30:22 -0600 Subject: [PATCH] Add IPTABLESOPT --- bin/srfirewall | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/bin/srfirewall b/bin/srfirewall index 5585dd0..b965b4e 100755 --- a/bin/srfirewall +++ b/bin/srfirewall @@ -19,7 +19,7 @@ # along with this program. If not, see . # Static config options, normally do not need to change -FW_VERSION="2.2" +FW_VERSION="2.2.1" # Important directory locations FWPREFIX="/usr/local" @@ -155,6 +155,16 @@ if [ ! -e "/proc/net/ip6_tables_names" ] && [ "${EnableIPv6}" == "yes" ] && [ "$ fi fi +# Splice in iptables options via IPTABLESOPT and IP6TABLESOPT +if [ -x "${IPTABLES}" ] && [ -x "${IPTABLESOPT}" ]; then + IPTABLES="${IPTABLES} ${IPTABLESOPT}" +fi + +if [ -x "${IP6TABLES}" ] && [ -x "${IP6TABLESOPT}" ]; then + IPTABLES="${IP6TABLES} ${IP6TABLESOPT}" +fi + + # Set up proper state matching variables, since there is old and new style. if [ "$StateMatching" ]; then case $StateMatching in