Add IPTABLESOPT
parent
33261c140e
commit
a0d5687567
|
@ -19,7 +19,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Static config options, normally do not need to change
|
# Static config options, normally do not need to change
|
||||||
FW_VERSION="2.2"
|
FW_VERSION="2.2.1"
|
||||||
|
|
||||||
# Important directory locations
|
# Important directory locations
|
||||||
FWPREFIX="/usr/local"
|
FWPREFIX="/usr/local"
|
||||||
|
@ -155,6 +155,16 @@ if [ ! -e "/proc/net/ip6_tables_names" ] && [ "${EnableIPv6}" == "yes" ] && [ "$
|
||||||
fi
|
fi
|
||||||
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.
|
# Set up proper state matching variables, since there is old and new style.
|
||||||
if [ "$StateMatching" ]; then
|
if [ "$StateMatching" ]; then
|
||||||
case $StateMatching in
|
case $StateMatching in
|
||||||
|
|
Loading…
Reference in New Issue