shorewall6-5.2.3.4/0000775000000000000000000000000013531077635012463 5ustar rootrootshorewall6-5.2.3.4/shorewallrc.default0000664000000000000000000000364313531077635016364 0ustar rootroot# # Default Shorewall 5.2 rc file # BUILD= #Default is to detect the build system HOST=linux #Generic Linux PREFIX=/usr #Top-level directory for shared files, libraries, etc. SHAREDIR=${PREFIX}/share #Directory for arch-neutral files. LIBEXECDIR=${PREFIX}/share #Directory for executable scripts. PERLLIBDIR=${PREFIX}/share/shorewall #Directory to install Shorewall Perl module directory CONFDIR=/etc #Directory where subsystem configurations are installed SBINDIR=/sbin #Directory where system administration programs are installed MANDIR=${PREFIX}/man #Directory where manpages are installed. INITDIR=/etc/init.d #Directory where SysV init scripts are installed. INITFILE=$PRODUCT #Name of the product's installed SysV init script INITSOURCE=init.sh #Name of the distributed file to be installed as the SysV init script ANNOTATED= #If non-zero, annotated configuration files are installed SERVICEDIR= #Directory where .service files are installed (systems running systemd only) SERVICEFILE= #Name of the file to install in $SYSTEMD. Default is $PRODUCT.service SYSCONFFILE= #Name of the distributed file to be installed in $SYSCONFDIR SYSCONFDIR= #Directory where SysV init parameter files are installed SPARSE= #If non-empty, only install $PRODUCT/$PRODUCT.conf in $CONFDIR VARLIB=/var/lib #Directory where product variable data is stored. VARDIR=${VARLIB}/$PRODUCT #Directory where product variable data is stored. DEFAULT_PAGER= #Pager to use if none specified in shorewall[6].conf shorewall6-5.2.3.4/shorewallrc.openwrt0000664000000000000000000000351413531077635016433 0ustar rootroot# # OpenWRT/LEDE Shorewall 5.2 rc file # BUILD= #Default is to detect the build system HOST=openwrt PREFIX=/usr #Top-level directory for shared files, libraries, etc. SHAREDIR=${PREFIX}/share #Directory for arch-neutral files. LIBEXECDIR=${PREFIX}/share #Directory for executable scripts. PERLLIBDIR=${PREFIX}/share/shorewall #Directory to install Shorewall Perl module directory CONFDIR=/etc #Directory where subsystem configurations are installed SBINDIR=/sbin #Directory where system administration programs are installed MANDIR= #Directory where manpages are installed. INITDIR=/etc/init.d #Directory where SysV init scripts are installed. INITFILE=$PRODUCT #Name of the product's installed SysV init script INITSOURCE=init.openwrt.sh #Name of the distributed file to be installed as the SysV init script ANNOTATED= #If non-zero, annotated configuration files are installed SYSCONFDIR=${CONFDIR}/sysconfig #Directory where SysV init parameter files are installed SYSCONFFILE=sysconfig #Name of the distributed file to be installed in $SYSCONFDIR SERVICEDIR= #Directory where .service files are installed (systems running systemd only) SERVICEFILE= #Name of the file to install in $SYSTEMD. Default is $PRODUCT.service SPARSE= #If non-empty, only install $PRODUCT/$PRODUCT.conf in $CONFDIR VARLIB=/lib #Directory where product variable data is stored. VARDIR=${VARLIB}/$PRODUCT #Directory where product variable data is stored. DEFAULT_PAGER= #Pager to use if none specified in shorewall[6].conf shorewall6-5.2.3.4/lib.uninstaller0000664000000000000000000000441113531077635015513 0ustar rootroot# # Shorewall 5.2 -- /usr/share/shorewall/lib.installer # # (c) 2017 - Tom Eastep (teastep@shorewall.net) # (c) 2017 - Matt Darfeuille (matdarf@gmail.com) # # Complete documentation is available at http://shorewall.net # # This program is part of Shorewall. # # This program is free software; you can redistribute it and/or modify # 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. # # 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, see . # # The purpose of this library is to hold those functions used by the products uninstaller. # ######################################################################################### fatal_error() { echo " ERROR: $@" >&2 exit 1 } split() { local ifs ifs=$IFS IFS=: set -- $1 echo $* IFS=$ifs } qt() { "$@" >/dev/null 2>&1 } mywhich() { local dir for dir in $(split $PATH); do if [ -x $dir/$1 ]; then return 0 fi done return 2 } remove_file() # $1 = file to remove { if [ -n "$1" ] ; then if [ -f $1 -o -h $1 ] ; then rm -f $1 echo "$1 Removed" fi fi } remove_directory() # $1 = directory to remove { if [ -n "$1" ] ; then if [ -d $1 ] ; then rm -rf $1 echo "$1 Removed" fi fi } remove_file_with_wildcard() # $1 = file with wildcard to remove { if [ -n "$1" ] ; then for f in $1; do if [ -d $f ] ; then rm -rf $f echo "$f Removed" elif [ -f $f -o -h $f ] ; then rm -f $f echo "$f Removed" fi done fi } restore_file() # $1 = file to restore { if [ -f ${1}-shorewall.bkout ]; then if (mv -f ${1}-shorewall.bkout $1); then echo echo "$1 restored" else exit 1 fi fi } shorewall6-5.2.3.4/Macros/0000775000000000000000000000000013531060406013673 5ustar rootrootshorewall6-5.2.3.4/Macros/macro.mDNS0000664000000000000000000000056013531060406015520 0ustar rootroot# # Shorewall6 -- /usr/share/shorewall6/macro.mDNS # # This macro handles multicast DNS traffic. # ############################################################################### #ACTION SOURCE DEST PROTO DPORT SPORT PARAM - [ff02::fb] udp 5353 PARAM - - udp 32768: 5353 PARAM - [ff02::fb] 2 PARAM DEST SOURCE:[ff02::fb] udp 5353 PARAM DEST SOURCE:[ff02::fb] 2 shorewall6-5.2.3.4/Macros/macro.Trcrt0000664000000000000000000000053313531060406016015 0ustar rootroot# # Shorewall6 -- /usr/share/shorewall6/macro.Trcrt # # This macro handles ICMP and UDP Traceroute (UDP for up to 30 hops). # ############################################################################### #ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST RATE PARAM - - udp 33434:33524 # UDP Traceroute PARAM - - ipv6-icmp 128 # ICMP Traceroute shorewall6-5.2.3.4/Macros/macro.Ping0000664000000000000000000000037313531060406015616 0ustar rootroot# # Shorewall6 -- /usr/share/shorewall6/macro.Ping # # This macro handles 'ping' requests. # ############################################################################### #ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST RATE PARAM - - ipv6-icmp 128 shorewall6-5.2.3.4/Macros/macro.mDNSbi0000664000000000000000000000107213531060406016032 0ustar rootroot# # Shorewall6 -- /usr/share/shorewall6/macro.mDNSbi # # This macro handles bidirectional multicast DNS traffic. # ############################################################################### #ACTION SOURCE DEST PROTO DPORT SPORT PARAM - [ff02::fb] udp 5353 PARAM - - udp 1024: 5353 PARAM - [ff02::fb] 2 PARAM DEST SOURCE:[ff02::fb] udp 5353 PARAM DEST SOURCE udp 1024: 5353 PARAM DEST SOURCE:[ff02::fb] 2 shorewall6-5.2.3.4/shorewallrc.debian.systemd0000664000000000000000000000307413531077635017647 0ustar rootroot# # Debian Shorewall 5.2 rc file # BUILD= #Default is to detect the build system HOST=debian PREFIX=/usr #Top-level directory for shared files, libraries, etc. SHAREDIR=${PREFIX}/share #Directory for arch-neutral files. LIBEXECDIR=${PREFIX}/share #Directory for executable scripts. PERLLIBDIR=${PREFIX}/share/shorewall #Directory to install Shorewall Perl module directory CONFDIR=/etc #Directory where subsystem configurations are installed SBINDIR=/sbin #Directory where system administration programs are installed MANDIR=${PREFIX}/share/man #Directory where manpages are installed. INITDIR= #Directory where SysV init scripts are installed. INITFILE= #Name of the product's installed SysV init script INITSOURCE=init.debian.sh #Name of the distributed file to be installed as the SysV init script ANNOTATED= #If non-empty, annotated configuration files are installed SYSCONFFILE=default.debian.systemd #Name of the distributed file to be installed in $SYSCONFDIR SERVICEFILE=$PRODUCT.service.debian #Name of the file to install in $SYSTEMD. Default is $PRODUCT.service SYSCONFDIR=/etc/default #Directory where SysV init parameter files are installed SERVICEDIR=/lib/systemd/system #Directory where .service files are installed (systems running systemd only) SPARSE=Yes #If non-empty, only install $PRODUCT/$PRODUCT.conf in $CONFDIR VARLIB=/var/lib #Directory where product variable data is stored. VARDIR=${VARLIB}/$PRODUCT #Directory where product variable data is stored. DEFAULT_PAGER=/usr/bin/less #Pager to use if none specified in shorewall[6].conf shorewall6-5.2.3.4/shorewallrc.debian.sysvinit0000664000000000000000000000353213531077635020046 0ustar rootroot# # Debian Shorewall 5.2 rc file # BUILD= #Default is to detect the build system HOST=debian PREFIX=/usr #Top-level directory for shared files, libraries, etc. SHAREDIR=${PREFIX}/share #Directory for arch-neutral files. LIBEXECDIR=${PREFIX}/share #Directory for executable scripts. PERLLIBDIR=${PREFIX}/share/shorewall #Directory to install Shorewall Perl module directory CONFDIR=/etc #Directory where subsystem configurations are installed SBINDIR=/sbin #Directory where system administration programs are installed MANDIR=${PREFIX}/share/man #Directory where manpages are installed. INITDIR=/etc/init.d #Directory where SysV init scripts are installed. INITFILE=$PRODUCT #Name of the product's installed SysV init script INITSOURCE=init.debian.sh #Name of the distributed file to be installed as the SysV init script ANNOTATED= #If non-zero, annotated configuration files are installed SYSCONFFILE=default.debian.sysvinit #Name of the distributed file to be installed in $SYSCONFDIR SERVICEFILE= #Name of the file to install in $SYSTEMD. Default is $PRODUCT.service SYSCONFDIR=/etc/default #Directory where SysV init parameter files are installed SERVICEDIR= #Directory where .service files are installed (systems running systemd only) SPARSE=Yes #If non-empty, only install $PRODUCT/$PRODUCT.conf in $CONFDIR VARLIB=/var/lib #Directory where product variable data is stored. VARDIR=${VARLIB}/$PRODUCT #Directory where product variable data is stored. DEFAULT_PAGER=/usr/bin/less #Pager to use if none specified in shorewall[6].conf shorewall6-5.2.3.4/manpages/0000775000000000000000000000000013531077672014257 5ustar rootrootshorewall6-5.2.3.4/manpages/shorewall6.80000664000000000000000000000363313453771177016447 0ustar rootroot'\" t .\" Title: shorewall6 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 04/11/2019 .\" Manual: Administrative Commands .\" Source: Administrative Commands .\" Language: English .\" .TH "SHOREWALL6" "8" "04/11/2019" "Administrative Commands" "Administrative Commands" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" shorewall6 \- Administration tool for Shoreline Firewall 6 (Shorewall6) .SH "SYNOPSIS" .HP \w'\fBshorewall6\fR\ 'u \fBshorewall6\fR [\fBtrace\fR|\fBdebug\fR] [\-\fIoptions\fR] \fIcommand\fR\ [\ \fIcommand\-arguments\fR\ ] .SH "DESCRIPTION" .PP The shorewall6 utility is used to control the Shoreline Firewall 6 (Shorewall6)\&. .PP Beginning with Shorewall 5\&.1\&.0, \fBshorewall6\fR is a symbolic link pointing to the \m[blue]\fBshorewall\fR\m[]\&\s-2\u[1]\d\s+2(8) executable who executes the \fIcommand\fR as if its \fB\-6\fR option had been specified\&. .SH "NOTES" .IP " 1." 4 shorewall .RS 4 \%http://www.shorewall.org/manpages/shorewall.html .RE shorewall6-5.2.3.4/configure.pl0000775000000000000000000001405313531077635015007 0ustar rootroot#! /usr/bin/perl -w # # Shorewall Packet Filtering Firewall configuration program - V5.2 # # (c) 2012, 2014 - Tom Eastep (teastep@shorewall.net) # # Shorewall documentation is available at http://www.shorewall.net # # This program is part of Shorewall. # # This program is free software; you can redistribute it and/or modify # 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. # # 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, see . # # Usage: ./configure.pl