"Fossies" - the Fresh Open Source Software Archive

Member "shorewall-core-5.2.8/shorewall" (24 Sep 2020, 1461 Bytes) of package /linux/misc/shorewall/shorewall-core-5.2.8.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "shorewall": 5.2.3.6_vs_5.2.6.

    1 #!/bin/sh
    2 #
    3 #     Shorewall Packet Filtering Firewall Control Program - V5.2
    4 #
    5 #     (c) 1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2014,2015-2017
    6 #         Tom Eastep (teastep@shorewall.net)
    7 #
    8 #   Shorewall documentation is available at https://shorewall.org
    9 #
   10 #       This program is part of Shorewall.
   11 #
   12 #   This program is free software; you can redistribute it and/or modify
   13 #   it under the terms of the GNU General Public License as published by the
   14 #       Free Software Foundation, either version 2 of the license or, at your
   15 #       option, any later version.
   16 #
   17 #   This program is distributed in the hope that it will be useful,
   18 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
   19 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   20 #   GNU General Public License for more details.
   21 #
   22 #   You should have received a copy of the GNU General Public License
   23 #   along with this program; if not, see <http://www.gnu.org/licenses/>.
   24 #
   25 #       For a list of supported commands, type 'shorewall help' or 'shorewall6 help'
   26 #
   27 ################################################################################################
   28 #
   29 # Default product is Shorewall. PRODUCT will be set based on $0 and on passed -[46] and -l
   30 # options
   31 #
   32 PRODUCT=shorewall
   33 
   34 #
   35 # This is modified by the installer when ${SHAREDIR} != /usr/share
   36 #
   37 . /usr/share/shorewall/shorewallrc
   38 
   39 g_basedir=${SHAREDIR}/shorewall
   40 
   41 . ${g_basedir}/lib.cli
   42 
   43 shorewall_cli $@