2010-11-07 01:04:17 +01:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2018-06-23 17:29:01 +02:00
|
|
|
# The Shoreline Firewall Packet Filtering Firewall Param File Helper - V5.2
|
2010-11-07 01:04:17 +01:00
|
|
|
#
|
2014-01-04 18:48:27 +01:00
|
|
|
# (c) 2010,2011,2014 - Tom Eastep (teastep@shorewall.net)
|
2010-11-07 01:04:17 +01:00
|
|
|
#
|
2020-03-26 22:58:35 +01:00
|
|
|
# Complete documentation is available at https://shorewall.org
|
2010-11-07 01:04:17 +01:00
|
|
|
#
|
2014-01-04 18:48:27 +01:00
|
|
|
# This program is part of Shorewall.
|
|
|
|
#
|
2010-11-07 01:04:17 +01:00
|
|
|
# This program is free software; you can redistribute it and/or modify
|
2014-01-04 18:48:27 +01:00
|
|
|
# it under the terms of the GNU General Public License as published by the
|
|
|
|
# Free Software Foundation, either version 2 of the license or, at your
|
|
|
|
# option, any later version.
|
2010-11-07 01:04:17 +01:00
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2014-01-04 18:48:27 +01:00
|
|
|
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2011-09-11 18:52:12 +02:00
|
|
|
#
|
|
|
|
# Parameters:
|
|
|
|
#
|
|
|
|
# $1 = Path name of params file
|
|
|
|
# $2 = $CONFIG_PATH
|
2012-09-16 18:06:32 +02:00
|
|
|
# $3 = Address family (4 or 6)
|
2011-09-11 18:52:12 +02:00
|
|
|
#
|
2011-05-30 22:24:36 +02:00
|
|
|
if [ "$3" = 6 ]; then
|
2012-09-16 18:06:32 +02:00
|
|
|
PRODUCT=shorewall6
|
2011-05-30 22:24:36 +02:00
|
|
|
else
|
2012-09-16 18:06:32 +02:00
|
|
|
PRODUCT=shorewall
|
2011-05-30 22:24:36 +02:00
|
|
|
fi
|
2010-11-07 01:04:17 +01:00
|
|
|
|
2012-04-07 18:07:07 +02:00
|
|
|
#
|
|
|
|
# This is modified by the installer when ${SHAREDIR} != /usr/share
|
|
|
|
#
|
|
|
|
. /usr/share/shorewall/shorewallrc
|
2012-03-24 21:05:39 +01:00
|
|
|
|
2016-11-20 06:17:35 +01:00
|
|
|
g_basedir=${SHAREDIR}/shorewall
|
2012-03-24 21:05:39 +01:00
|
|
|
|
2016-11-20 06:17:35 +01:00
|
|
|
. $g_basedir/lib.cli
|
|
|
|
|
2016-11-20 17:48:18 +01:00
|
|
|
setup_product_environment
|
2011-12-04 18:19:48 +01:00
|
|
|
|
2010-11-13 19:59:09 +01:00
|
|
|
CONFIG_PATH="$2"
|
|
|
|
|
2010-11-07 01:04:17 +01:00
|
|
|
set -a
|
|
|
|
|
2010-12-02 00:04:33 +01:00
|
|
|
. $1 >&2 # Avoid spurious output on STDOUT
|
2010-11-07 01:04:17 +01:00
|
|
|
|
|
|
|
set +a
|
|
|
|
|
2010-12-01 18:14:09 +01:00
|
|
|
export -p
|