mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-11 08:51:13 +01:00
7a63a1d451
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5838 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
66 lines
2.4 KiB
Bash
Executable File
66 lines
2.4 KiB
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Shorewall Lite Packet Filtering Firewall Capabilities Detector
|
|
#
|
|
# This program is under GPL [http://www.gnu.org/copyleft/gpl.htm]
|
|
#
|
|
# (c) 2006,2007 - Tom Eastep (teastep@shorewall.net)
|
|
#
|
|
# This file should be placed in /sbin/shorewall.
|
|
#
|
|
# Shorewall documentation is available at http://shorewall.sourceforge.net
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of Version 2 of the GNU General Public License
|
|
# as published by the Free Software Foundation.
|
|
#
|
|
# 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
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA
|
|
#
|
|
#
|
|
# This program may be used to create a /etc/shorewall/capabilities file for
|
|
# use in compiling Shorewall firewalls on another system.
|
|
#
|
|
# On the target system (the system where the firewall program is to run):
|
|
#
|
|
# [ IPTABLES=<iptables binary> ] [ MODULESDIR=<kernel modules directory> ] [ MODULE_SUFFIX="<module suffix list>" ] shorecap > capabilities
|
|
#
|
|
# Now move the capabilities file to the compilation system. The file must
|
|
# be placed in a directory on the CONFIG_PATH to be used when compiling firewalls
|
|
# for the target system.
|
|
#
|
|
# Default values for the two variables are:
|
|
#
|
|
# IPTABLES - iptables
|
|
# MODULESDIR - /lib/modules/$(uname -r)/kernel/net/ipv4/netfilter
|
|
# MODULE_SUFFIX - "o gz ko o.gz ko.gz"
|
|
#
|
|
# Shorewall need not be installed on the target system to run shorecap. If the '-e' flag is
|
|
# used during firewall compilation, then the generated firewall program will likewise not
|
|
# require Shorewall to be installed.
|
|
|
|
SHAREDIR=/usr/share/shorewall-lite
|
|
VARDIR=/var/lib/shorewall-lite
|
|
CONFDIR=/etc/shorewall-lite
|
|
PRODUCT="Shorewall Lite"
|
|
|
|
. /usr/share/shorewall-lite/lib.base
|
|
. /usr/share/shorewall-lite/configpath
|
|
|
|
[ -n "$PATH" ] || PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
|
|
|
|
VERSION=$(cat /usr/share/shorewall-lite/version)
|
|
|
|
[ -n "$IPTABLES" ] || IPTABLES=$(mywhich iptables)
|
|
|
|
VERBOSE=0
|
|
load_kernel_modules No
|
|
determine_capabilities
|
|
report_capabilities1
|