forked from extern/shorewall_code
Compare commits
364 Commits
4.5.21.1
...
4.6.3-base
Author | SHA1 | Date | |
---|---|---|---|
|
96102623ee | ||
|
aa6bd2819c | ||
|
aedd9b5a76 | ||
|
cf33bac318 | ||
|
0005bb697b | ||
|
c5549ff21e | ||
|
427f38109e | ||
|
0e1a1a3f44 | ||
|
b6161b8be7 | ||
|
d3209ca624 | ||
|
34ecbb9074 | ||
|
beb70854ef | ||
|
7030fad572 | ||
|
c653a04a43 | ||
|
5ef5aa8cdb | ||
|
0ca12bd86f | ||
|
a2f1c57246 | ||
|
fd42fa9f74 | ||
|
e49832f4b5 | ||
|
0bf80c15d8 | ||
|
4e9a0b989d | ||
|
31e5aeeaea | ||
|
eb5026d3b7 | ||
|
a799d74901 | ||
|
7a41981487 | ||
|
aae23d7a9e | ||
|
a7b18ca875 | ||
|
ad6c91bcbd | ||
|
8c0fe063a7 | ||
|
dbf78d7dd0 | ||
|
bea2b49eb0 | ||
|
3b4012b60a | ||
|
21209504c5 | ||
|
44a34ceb95 | ||
|
848078873d | ||
|
3e6f57e699 | ||
|
461f7b10ba | ||
|
2c9eda9cee | ||
|
64fc3d2e43 | ||
|
d0aed87546 | ||
|
56fa6bd78a | ||
|
b207f64a85 | ||
|
9f381209d5 | ||
|
29e6bc9379 | ||
|
4b3196b959 | ||
|
6771dc54ad | ||
|
ba69708092 | ||
|
417bd0138e | ||
|
a1cc4847c7 | ||
|
0ec4cfd18d | ||
|
d5ea667c61 | ||
|
3e6e0b4a09 | ||
|
a97e2fd3d9 | ||
|
53dda803e2 | ||
|
cc935009ce | ||
|
a0ab9f6ab2 | ||
|
a7856e4dd6 | ||
|
4a4cea46c0 | ||
|
cf626b58da | ||
|
2ed523101c | ||
|
c72265667f | ||
|
77513da27e | ||
|
c663a14c4d | ||
|
c17a196838 | ||
|
8bfff55ed2 | ||
|
7184c9aa58 | ||
|
b1a6ec7f03 | ||
|
9f71791919 | ||
|
1a7cc9b86d | ||
|
a8f6d2f438 | ||
|
b8777c0fd5 | ||
|
cad8443e01 | ||
|
2ad81f1a81 | ||
|
166e1a3df9 | ||
|
84437ea689 | ||
|
20a567fea7 | ||
|
7082bf1971 | ||
|
87b5751a49 | ||
|
49aada0f9c | ||
|
7fdc398a5e | ||
|
1165b2689c | ||
|
2701b0a756 | ||
|
9c7fcd09fd | ||
|
380a159c8c | ||
|
80c09c4747 | ||
|
824b14b714 | ||
|
122d58b122 | ||
|
61bb73fd8c | ||
|
ff8d354c1c | ||
|
0b1dda2a31 | ||
|
50736fb8ae | ||
|
a2e514c0ab | ||
|
7b0cf2b665 | ||
|
6ad9b95351 | ||
|
ac4bf15606 | ||
|
4e5d24fd9b | ||
|
e6132b5630 | ||
|
041e8c445e | ||
|
a0bb7ca018 | ||
|
a8885844ae | ||
|
2610dd4744 | ||
|
b3acb4d30d | ||
|
e6372a3e04 | ||
|
41ab0d20c9 | ||
|
36e31ed839 | ||
|
b55b6a913c | ||
|
9c9ae04c86 | ||
|
1892cbf218 | ||
|
c0c6bedb17 | ||
|
c898129ad6 | ||
|
7adc16ace9 | ||
|
7b38bc9558 | ||
|
2cd5c41ec0 | ||
|
bea5434de6 | ||
|
8657dd97f7 | ||
|
ef038d5eab | ||
|
b6ea20e7df | ||
|
6632afaf6a | ||
|
0f55863076 | ||
|
9f9d9fd8d1 | ||
|
ec4fc4ee8f | ||
|
4e33948844 | ||
|
954cddc37a | ||
|
e64a7feda2 | ||
|
24721e01b6 | ||
|
5a22b14947 | ||
|
df738025a3 | ||
|
d49d352d77 | ||
|
0f6bd0e2af | ||
|
89c5d5080b | ||
|
66b3d9aeb5 | ||
|
b088ea77cd | ||
|
966926fac5 | ||
|
dcc2fb27c5 | ||
|
2859b1aa6e | ||
|
6d3b1d80d4 | ||
|
d5e83a5295 | ||
|
7835feb45e | ||
|
c6565f051e | ||
|
c9b6d4a670 | ||
|
b79191caa5 | ||
|
22662212e3 | ||
|
ffc564bdf9 | ||
|
00d3a94bfd | ||
|
d15956feea | ||
|
f717d097d7 | ||
|
ed9953adb8 | ||
|
670c33d20b | ||
|
bcbb48d16e | ||
|
2ce28154d1 | ||
|
afdcff10c9 | ||
|
77efea65de | ||
|
2b43c28e98 | ||
|
c663f91ec7 | ||
|
ba3a7d0621 | ||
|
15507aa265 | ||
|
4d4e8b3df4 | ||
|
240d3d8cab | ||
|
acda5482c4 | ||
|
e731ea1ca8 | ||
|
65cde3475f | ||
|
b3cd9ab15a | ||
|
fdc391cf49 | ||
|
58700b2301 | ||
|
a9ac9c274e | ||
|
72869adcd6 | ||
|
0c8365001d | ||
|
6274f8444f | ||
|
05816e94ee | ||
|
8a19f978bc | ||
|
3311bbd73a | ||
|
9107259a56 | ||
|
8f36c080d0 | ||
|
0561b10adb | ||
|
db1b25b4d7 | ||
|
ad8b05d8f5 | ||
|
4de651ff55 | ||
|
5981ce59e3 | ||
|
54a5e4af52 | ||
|
658f5c6674 | ||
|
57637506ba | ||
|
4bd8d9791c | ||
|
eb70234c52 | ||
|
39b7527cb6 | ||
|
08d29edf1a | ||
|
20b10582b4 | ||
|
093ff580b5 | ||
|
cea237620a | ||
|
6c20071d3b | ||
|
5104b2fa7c | ||
|
733a17470e | ||
|
3ca3b8b552 | ||
|
c9d7370fb4 | ||
|
3cfee0e43c | ||
|
8b4d8bfa16 | ||
|
caa72fb7d2 | ||
|
4eadec234a | ||
|
2b489993ca | ||
|
ded747a51a | ||
|
df09e0ccc5 | ||
|
1bac919ea6 | ||
|
238aa68b28 | ||
|
3abaf124fa | ||
|
024758bdf6 | ||
|
8bf76a5f36 | ||
|
4a88a3b899 | ||
|
454e53bcfa | ||
|
66fdc9f6a7 | ||
|
c74235a200 | ||
|
1759fc75b0 | ||
|
3e87efc82b | ||
|
a011ad8efe | ||
|
0e40a42729 | ||
|
69fe94ef08 | ||
|
669d15e2cf | ||
|
708d58da21 | ||
|
3c5975a106 | ||
|
34207fef1a | ||
|
2e9342aef0 | ||
|
16b80c3e45 | ||
|
2dbcd36a9c | ||
|
0383ca7de6 | ||
|
7ddc65133e | ||
|
1d4a87a0d0 | ||
|
3b3608ad65 | ||
|
081a387f1d | ||
|
f140a8e7e2 | ||
|
3be3c57e65 | ||
|
fbb03248c4 | ||
|
033a1a0367 | ||
|
c08655e0bc | ||
|
50fb8e3f2f | ||
|
4daee95902 | ||
|
245c64478c | ||
|
f029f5b483 | ||
|
86f667afd4 | ||
|
8a63053c13 | ||
|
709e973155 | ||
|
62557cb98e | ||
|
9c4089fc99 | ||
|
51d6aa9165 | ||
|
44e0d48fc5 | ||
|
a5906ece44 | ||
|
5a649dc205 | ||
|
d44bc12df3 | ||
|
6223bdd8e1 | ||
|
dec088566b | ||
|
6d8cadd152 | ||
|
bf26c1790c | ||
|
89fd5ced15 | ||
|
b1a490b50a | ||
|
240c42943b | ||
|
d3af4264c7 | ||
|
6233f79989 | ||
|
a35b7821bf | ||
|
fd28a12653 | ||
|
7e6fc3229d | ||
|
42dd8dfee9 | ||
|
5a7e458104 | ||
|
7e1a310929 | ||
|
78ecf9bdc8 | ||
|
1771bb75cf | ||
|
b4847d6a01 | ||
|
48ceed9ecb | ||
|
1083dd8c26 | ||
|
5e7cd855c2 | ||
|
623bdd2ff1 | ||
|
b61ee2d75e | ||
|
2c2aaf262c | ||
|
6c990a7253 | ||
|
f7bbac6ea8 | ||
|
4c1b83beef | ||
|
ac6a506e35 | ||
|
11e61ec6e5 | ||
|
5985a6e9b3 | ||
|
4cc5ee6b73 | ||
|
66a04e4819 | ||
|
1634267faa | ||
|
c8866ef8bf | ||
|
8b49641e07 | ||
|
8f6f0c94a4 | ||
|
6fe06c82c8 | ||
|
543446f8d7 | ||
|
a1222d10cb | ||
|
45f64aefd7 | ||
|
81370c7b8d | ||
|
3dba1f5bee | ||
|
5a24e7e8a0 | ||
|
75515399e0 | ||
|
615d683848 | ||
|
d3977a7ad9 | ||
|
b5295b2039 | ||
|
3960aaee4c | ||
|
5419109880 | ||
|
89dcd31f15 | ||
|
584b0ac50e | ||
|
f4e2602c89 | ||
|
c80795102a | ||
|
1d84f27efe | ||
|
4c840a05a0 | ||
|
6323372ebd | ||
|
4c2cedb670 | ||
|
f32a777099 | ||
|
cd5be38cfb | ||
|
dd38cdc0f0 | ||
|
a5e8bc6298 | ||
|
2894bb9656 | ||
|
fad3b42bd3 | ||
|
4e4e7cac1d | ||
|
6d72cb3138 | ||
|
cb74b2d706 | ||
|
9abe60bc27 | ||
|
33c5893bdb | ||
|
2bc329aa1d | ||
|
b1241cf695 | ||
|
670ecb203b | ||
|
f22dfcaa75 | ||
|
d71c2688dc | ||
|
8faf756113 | ||
|
95abeaea24 | ||
|
75258083e3 | ||
|
bf44e514e3 | ||
|
88467a1737 | ||
|
dac037b597 | ||
|
e5d250750b | ||
|
d63262a0cb | ||
|
3870157898 | ||
|
80d54ec40b | ||
|
855cb6e7f4 | ||
|
ea21d61f39 | ||
|
3b5c1ad601 | ||
|
6741d087fb | ||
|
4a014d4884 | ||
|
e14d92c5ac | ||
|
472ecc661f | ||
|
8676aebceb | ||
|
9c75895d43 | ||
|
c2c1552484 | ||
|
5f37b5bde6 | ||
|
b00e20d4d0 | ||
|
6eb2c0cb5f | ||
|
fc3ff30009 | ||
|
ca3385d1be | ||
|
5823411091 | ||
|
8fb1ce6810 | ||
|
4cef6f9254 | ||
|
4fb80ca698 | ||
|
bcb2573918 | ||
|
66c2fca2b0 | ||
|
1666a4639f | ||
|
9345219c11 | ||
|
589e048086 | ||
|
b45c9bd0d2 | ||
|
b6c3d9cae1 | ||
|
20946f0711 | ||
|
faeea3bd8a | ||
|
b27e3d2fff | ||
|
75f5d97657 | ||
|
1659d8ce9f | ||
|
0e61c2f210 | ||
|
4917500f12 | ||
|
50b7a81b13 | ||
|
8c4bbf0c85 | ||
|
12563c55a8 |
22
Shorewall-core/configure
vendored
22
Shorewall-core/configure
vendored
@@ -1,16 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Shorewall Packet Filtering Firewall RPM configuration program - V4.5
|
# Shorewall Packet Filtering Firewall RPM configuration program - V4.6
|
||||||
#
|
#
|
||||||
# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt]
|
# (c) 2012,2014 - Tom Eastep (teastep@shorewall.net)
|
||||||
#
|
|
||||||
# (c) 2012 - Tom Eastep (teastep@shorewall.net)
|
|
||||||
#
|
#
|
||||||
# Shorewall documentation is available at http://www.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
|
# 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
|
# it under the terms of the GNU General Public License as published by the
|
||||||
# as published by the Free Software Foundation.
|
# 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,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@@ -18,8 +19,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
#
|
||||||
# Usage: ./configure [ <option>=<setting> ] ...
|
# Usage: ./configure [ <option>=<setting> ] ...
|
||||||
#
|
#
|
||||||
@@ -95,13 +95,13 @@ vendor=${params[HOST]}
|
|||||||
|
|
||||||
if [ -z "$vendor" ]; then
|
if [ -z "$vendor" ]; then
|
||||||
if [ -f /etc/os-release ]; then
|
if [ -f /etc/os-release ]; then
|
||||||
eval $(cat /etc/os-release | grep ^ID)
|
eval $(cat /etc/os-release | grep ^ID=)
|
||||||
|
|
||||||
case $ID in
|
case $ID in
|
||||||
fedora)
|
fedora|rhel)
|
||||||
vendor=redhat
|
vendor=redhat
|
||||||
;;
|
;;
|
||||||
debian)
|
debian|ubuntu)
|
||||||
vendor=debian
|
vendor=debian
|
||||||
;;
|
;;
|
||||||
opensuse)
|
opensuse)
|
||||||
|
@@ -2,15 +2,16 @@
|
|||||||
#
|
#
|
||||||
# Shorewall Packet Filtering Firewall RPM configuration program - V4.5
|
# Shorewall Packet Filtering Firewall RPM configuration program - V4.5
|
||||||
#
|
#
|
||||||
# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt]
|
# (c) 2012, 2014 - Tom Eastep (teastep@shorewall.net)
|
||||||
#
|
|
||||||
# (c) 2012 - Tom Eastep (teastep@shorewall.net)
|
|
||||||
#
|
#
|
||||||
# Shorewall documentation is available at http://www.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
|
# 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
|
# it under the terms of the GNU General Public License as published by the
|
||||||
# as published by the Free Software Foundation.
|
# 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,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@@ -18,8 +19,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
#
|
||||||
# Usage: ./configure.pl <option>=<setting> ...
|
# Usage: ./configure.pl <option>=<setting> ...
|
||||||
#
|
#
|
||||||
@@ -58,16 +58,18 @@ my $rcfilename;
|
|||||||
|
|
||||||
unless ( defined $vendor ) {
|
unless ( defined $vendor ) {
|
||||||
if ( -f '/etc/os-release' ) {
|
if ( -f '/etc/os-release' ) {
|
||||||
my $id = `cat /etc/os-release | grep ^ID`;
|
my $id = `cat /etc/os-release | grep ^ID=`;
|
||||||
|
|
||||||
chomp $id;
|
chomp $id;
|
||||||
|
|
||||||
$id =~ s/ID=//;
|
$id =~ s/ID=//;
|
||||||
|
|
||||||
if ( $id eq 'fedora' ) {
|
if ( $id eq 'fedora' || $id eq 'rhel' ) {
|
||||||
$vendor = 'redhat';
|
$vendor = 'redhat';
|
||||||
} elsif ( $id eq 'opensuse' ) {
|
} elsif ( $id eq 'opensuse' ) {
|
||||||
$vendor = 'suse';
|
$vendor = 'suse';
|
||||||
|
} elsif ( $id eq 'ubuntu' ) {
|
||||||
|
$vendor = 'debian';
|
||||||
} else {
|
} else {
|
||||||
$vendor = $id;
|
$vendor = $id;
|
||||||
}
|
}
|
||||||
@@ -98,7 +100,7 @@ if ( defined $vendor ) {
|
|||||||
} elsif ( `uname` =~ '^Darwin' ) {
|
} elsif ( `uname` =~ '^Darwin' ) {
|
||||||
$vendor = 'apple';
|
$vendor = 'apple';
|
||||||
$rcfilename = 'shorewallrc.apple';
|
$rcfilename = 'shorewallrc.apple';
|
||||||
} elsif ( `uname` =~ '^Cygwin' ) {
|
} elsif ( `uname` =~ /^Cygwin/i ) {
|
||||||
$vendor = 'cygwin';
|
$vendor = 'cygwin';
|
||||||
$rcfilename = 'shorewallrc.cygwin';
|
$rcfilename = 'shorewallrc.cygwin';
|
||||||
} else {
|
} else {
|
||||||
|
@@ -2,24 +2,24 @@
|
|||||||
#
|
#
|
||||||
# Script to install Shoreline Firewall Core Modules
|
# Script to install Shoreline Firewall Core Modules
|
||||||
#
|
#
|
||||||
# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt]
|
# (c) 2000-2011,2014 - Tom Eastep (teastep@shorewall.net)
|
||||||
#
|
|
||||||
# (c) 2000-2011 - Tom Eastep (teastep@shorewall.net)
|
|
||||||
#
|
#
|
||||||
# Shorewall documentation is available at http://shorewall.net
|
# Shorewall documentation is available at http://shorewall.net
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is part of Shorewall.
|
||||||
# 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,
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# it under the terms of the GNU General Public License as published by the
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# Free Software Foundation, either version 2 of the license or, at your
|
||||||
# GNU General Public License for more details.
|
# option, any later version.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# This program is distributed in the hope that it will be useful,
|
||||||
# along with this program; if not, write to the Free Software
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
# 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 <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
VERSION=xxx #The Build script inserts the actual version
|
VERSION=xxx #The Build script inserts the actual version
|
||||||
@@ -187,7 +187,7 @@ INSTALLD='-D'
|
|||||||
|
|
||||||
if [ -z "$BUILD" ]; then
|
if [ -z "$BUILD" ]; then
|
||||||
case $(uname) in
|
case $(uname) in
|
||||||
cygwin*)
|
cygwin*|CYGWIN*)
|
||||||
BUILD=cygwin
|
BUILD=cygwin
|
||||||
;;
|
;;
|
||||||
Darwin)
|
Darwin)
|
||||||
@@ -198,7 +198,7 @@ if [ -z "$BUILD" ]; then
|
|||||||
eval $(cat /etc/os-release | grep ^ID)
|
eval $(cat /etc/os-release | grep ^ID)
|
||||||
|
|
||||||
case $ID in
|
case $ID in
|
||||||
fedora)
|
fedora|rhel)
|
||||||
BUILD=redhat
|
BUILD=redhat
|
||||||
;;
|
;;
|
||||||
debian)
|
debian)
|
||||||
@@ -393,12 +393,13 @@ if [ -z "${DESTDIR}" ]; then
|
|||||||
|
|
||||||
echo 'VARDIR=${VARLIB}/${PRODUCT}' >> $file
|
echo 'VARDIR=${VARLIB}/${PRODUCT}' >> $file
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ ! -f ~/.shorewallrc ] && cp ${SHAREDIR}/shorewall/shorewallrc ~/.shorewallrc
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ $file != "${DESTDIR}${SHAREDIR}/shorewall/shorewallrc" ] && cp $file ${DESTDIR}${SHAREDIR}/shorewall/shorewallrc
|
[ $file != "${DESTDIR}${SHAREDIR}/shorewall/shorewallrc" ] && cp $file ${DESTDIR}${SHAREDIR}/shorewall/shorewallrc
|
||||||
|
|
||||||
|
|
||||||
|
[ -z "${DESTDIR}" ] && [ ! -f ~/.shorewallrc ] && cp ${SHAREDIR}/shorewall/shorewallrc ~/.shorewallrc
|
||||||
|
|
||||||
if [ ${SHAREDIR} != /usr/share ]; then
|
if [ ${SHAREDIR} != /usr/share ]; then
|
||||||
for f in lib.*; do
|
for f in lib.*; do
|
||||||
if [ $BUILD != apple ]; then
|
if [ $BUILD != apple ]; then
|
||||||
|
@@ -1,15 +1,16 @@
|
|||||||
#
|
#
|
||||||
# Shorewall 4.5 -- /usr/share/shorewall/lib.base
|
# Shorewall 4.5 -- /usr/share/shorewall/lib.base
|
||||||
#
|
#
|
||||||
# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt]
|
# (c) 1999-2014 - Tom Eastep (teastep@shorewall.net)
|
||||||
#
|
|
||||||
# (c) 1999-2012 - Tom Eastep (teastep@shorewall.net)
|
|
||||||
#
|
#
|
||||||
# Complete documentation is available at http://shorewall.net
|
# 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
|
# 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
|
# it under the terms of the GNU General Public License as published by the
|
||||||
# as published by the Free Software Foundation.
|
# 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,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@@ -17,8 +18,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
#
|
||||||
# This library contains the code common to all Shorewall components except the
|
# This library contains the code common to all Shorewall components except the
|
||||||
# generated scripts.
|
# generated scripts.
|
||||||
|
@@ -1,15 +1,16 @@
|
|||||||
#
|
#
|
||||||
# Shorewall 4.5 -- /usr/share/shorewall/lib.cli.
|
# Shorewall 4.5 -- /usr/share/shorewall/lib.cli.
|
||||||
#
|
#
|
||||||
# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt]
|
# (c) 1999-2014 - Tom Eastep (teastep@shorewall.net)
|
||||||
#
|
|
||||||
# (c) 1999-2013 - Tom Eastep (teastep@shorewall.net)
|
|
||||||
#
|
#
|
||||||
# Complete documentation is available at http://shorewall.net
|
# 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
|
# 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
|
# it under the terms of the GNU General Public License as published by the
|
||||||
# as published by the Free Software Foundation.
|
# 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,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@@ -17,15 +18,14 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
#
|
||||||
# This library contains the command processing code common to /sbin/shorewall[6] and
|
# This library contains the command processing code common to /sbin/shorewall[6] and
|
||||||
# /sbin/shorewall[6]-lite. In Shorewall and Shorewall6, the lib.cli-std library is
|
# /sbin/shorewall[6]-lite. In Shorewall and Shorewall6, the lib.cli-std library is
|
||||||
# loaded after this one and replaces some of the functions declared here.
|
# loaded after this one and replaces some of the functions declared here.
|
||||||
#
|
#
|
||||||
|
|
||||||
SHOREWALL_CAPVERSION=40515
|
SHOREWALL_CAPVERSION=40600
|
||||||
|
|
||||||
[ -n "${g_program:=shorewall}" ]
|
[ -n "${g_program:=shorewall}" ]
|
||||||
|
|
||||||
@@ -252,7 +252,15 @@ show_classifiers() {
|
|||||||
|
|
||||||
if [ -n "$qdisc" ]; then
|
if [ -n "$qdisc" ]; then
|
||||||
echo Device $device:
|
echo Device $device:
|
||||||
tc -s filter ls dev $device
|
qt tc -s filter ls root dev $device && tc -s filter ls root dev $device | grep -v '^$'
|
||||||
|
tc filter show dev $device
|
||||||
|
tc class show dev $device | fgrep 'leaf ' | fgrep -v ' hfsc' | sed 's/^.*leaf //;s/ .*//' | while read class; do
|
||||||
|
if [ -n "$class" ]; then
|
||||||
|
echo
|
||||||
|
echo Node $class
|
||||||
|
tc filter show dev $device parent $class
|
||||||
|
fi
|
||||||
|
done
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -263,6 +271,19 @@ show_classifiers() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Display blacklist chains
|
||||||
|
#
|
||||||
|
show_bl() {
|
||||||
|
$g_tool -L $g_ipt_options | \
|
||||||
|
awk 'BEGIN {prnt=0; };
|
||||||
|
/^$/ {if (prnt == 1) print ""; prnt=0; };
|
||||||
|
/Chain .*~ / {prnt=1; };
|
||||||
|
/Chain dynamic / {prnt=1; };
|
||||||
|
{if (prnt == 1) print; };
|
||||||
|
END {if (prnt == 1 ) print "" };'
|
||||||
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Watch the Firewall Log
|
# Watch the Firewall Log
|
||||||
#
|
#
|
||||||
@@ -559,7 +580,7 @@ show_routing() {
|
|||||||
ip -$g_family rule list | find_tables | sort -u | while read table; do
|
ip -$g_family rule list | find_tables | sort -u | while read table; do
|
||||||
heading "Table $table:"
|
heading "Table $table:"
|
||||||
if [ $g_family -eq 6 ]; then
|
if [ $g_family -eq 6 ]; then
|
||||||
ip -$g_family -o route list table $table | fgrep -v cache | sort_routes
|
ip -$g_family -o route list table $table | grep -vF cache | sort_routes
|
||||||
else
|
else
|
||||||
ip -4 -o route list table $table | sort_routes
|
ip -4 -o route list table $table | sort_routes
|
||||||
fi
|
fi
|
||||||
@@ -572,7 +593,7 @@ show_routing() {
|
|||||||
else
|
else
|
||||||
heading "Routing Table"
|
heading "Routing Table"
|
||||||
if [ $g_family -eq 6 ]; then
|
if [ $g_family -eq 6 ]; then
|
||||||
ip -$g_family -o route list | fgrep -v cache | sort_routes
|
ip -$g_family -o route list | grep -vF cache | sort_routes
|
||||||
else
|
else
|
||||||
ip -4 -o route list table $table | sort_routes
|
ip -4 -o route list table $table | sort_routes
|
||||||
fi
|
fi
|
||||||
@@ -582,7 +603,7 @@ show_routing() {
|
|||||||
determine_ipset_version() {
|
determine_ipset_version() {
|
||||||
local setname
|
local setname
|
||||||
|
|
||||||
if [ -z "$IPSET" -o $IPSET = ipset ]; then
|
if [ -z "$IPSET" -o "$IPSET" = "ipset" ]; then
|
||||||
IPSET=$(mywhich ipset)
|
IPSET=$(mywhich ipset)
|
||||||
[ -n "$IPSET" ] || fatal_error "The ipset utility cannot be located"
|
[ -n "$IPSET" ] || fatal_error "The ipset utility cannot be located"
|
||||||
fi
|
fi
|
||||||
@@ -680,7 +701,7 @@ version_command() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -f $g_firewall ]; then
|
if [ "$(id -u)" -eq 0 -a -f $g_firewall ]; then
|
||||||
echo $g_echo_n "$g_firewall was compiled by Shorewall version "
|
echo $g_echo_n "$g_firewall was compiled by Shorewall version "
|
||||||
$g_firewall version
|
$g_firewall version
|
||||||
fi
|
fi
|
||||||
@@ -1182,6 +1203,12 @@ show_command() {
|
|||||||
echo
|
echo
|
||||||
show_events
|
show_events
|
||||||
;;
|
;;
|
||||||
|
bl|blacklists)
|
||||||
|
[ $# -gt 1 ] && usage 1
|
||||||
|
echo "$g_product $SHOREWALL_VERSION blacklist chains at $g_hostname - $(date)"
|
||||||
|
echo
|
||||||
|
show_bl;
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
case "$g_program" in
|
case "$g_program" in
|
||||||
*-lite)
|
*-lite)
|
||||||
@@ -1546,7 +1573,7 @@ do_dump_command() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dump_command() {
|
dump_command() {
|
||||||
do_dump_command | dump_filter
|
do_dump_command $@ | dump_filter
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -1896,6 +1923,8 @@ add_command() {
|
|||||||
ipset=6_${zone}_${interface};
|
ipset=6_${zone}_${interface};
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ipset=$(echo $ipset | sed 's/./_/g');
|
||||||
|
|
||||||
if ! qt $IPSET -L $ipset; then
|
if ! qt $IPSET -L $ipset; then
|
||||||
fatal_error "Zone $zone, interface $interface does not have a dynamic host list"
|
fatal_error "Zone $zone, interface $interface does not have a dynamic host list"
|
||||||
fi
|
fi
|
||||||
@@ -1984,6 +2013,8 @@ delete_command() {
|
|||||||
ipset=6_${zone}_${interface};
|
ipset=6_${zone}_${interface};
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ipset=$(echo $ipset | sed 's/./_/g');
|
||||||
|
|
||||||
if ! qt $IPSET -L $ipset -n; then
|
if ! qt $IPSET -L $ipset -n; then
|
||||||
fatal_error "Zone $zone, interface $interface does not have a dynamic host list"
|
fatal_error "Zone $zone, interface $interface does not have a dynamic host list"
|
||||||
fi
|
fi
|
||||||
@@ -2260,10 +2291,13 @@ determine_capabilities() {
|
|||||||
PHYSDEV_BRIDGE=
|
PHYSDEV_BRIDGE=
|
||||||
IPRANGE_MATCH=
|
IPRANGE_MATCH=
|
||||||
RECENT_MATCH=
|
RECENT_MATCH=
|
||||||
|
REAP_OPTION=
|
||||||
OWNER_MATCH=
|
OWNER_MATCH=
|
||||||
OWNER_NAME_MATCH=
|
OWNER_NAME_MATCH=
|
||||||
IPSET_MATCH=
|
IPSET_MATCH=
|
||||||
OLD_IPSET_MATCH=
|
OLD_IPSET_MATCH=
|
||||||
|
IPSET_MATCH_NOMATCH=
|
||||||
|
IPSET_MATCH_COUNTERS=
|
||||||
IPSET_V5=
|
IPSET_V5=
|
||||||
CONNMARK=
|
CONNMARK=
|
||||||
XCONNMARK=
|
XCONNMARK=
|
||||||
@@ -2308,6 +2342,7 @@ determine_capabilities() {
|
|||||||
CONDITION_MATCH=
|
CONDITION_MATCH=
|
||||||
IPTABLES_S=
|
IPTABLES_S=
|
||||||
BASIC_FILTER=
|
BASIC_FILTER=
|
||||||
|
BASIC_EMATCH=
|
||||||
CT_TARGET=
|
CT_TARGET=
|
||||||
STATISTIC_MATCH=
|
STATISTIC_MATCH=
|
||||||
IMQ_TARGET=
|
IMQ_TARGET=
|
||||||
@@ -2429,7 +2464,11 @@ determine_capabilities() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
qt $g_tool -A $chain -m recent --update -j ACCEPT && RECENT_MATCH=Yes
|
if qt $g_tool -A $chain -m recent --update -j ACCEPT; then
|
||||||
|
RECENT_MATCH=Yes
|
||||||
|
qt $g_tool -A $chain -m recent --rcheck --seconds 10 --reap && REAP_OPTION=Yes
|
||||||
|
fi
|
||||||
|
|
||||||
qt $g_tool -A $chain -m owner --uid-owner 0 -j ACCEPT && OWNER_MATCH=Yes
|
qt $g_tool -A $chain -m owner --uid-owner 0 -j ACCEPT && OWNER_MATCH=Yes
|
||||||
|
|
||||||
local name
|
local name
|
||||||
@@ -2547,6 +2586,8 @@ determine_capabilities() {
|
|||||||
|
|
||||||
if [ -n "$have_ipset" ]; then
|
if [ -n "$have_ipset" ]; then
|
||||||
if qt $g_tool -A $chain -m set --match-set $chain src -j ACCEPT; then
|
if qt $g_tool -A $chain -m set --match-set $chain src -j ACCEPT; then
|
||||||
|
qt $g_tool -A $chain -m set --match-set $chain src --return-nomatch -j ACCEPT && IPSET_MATCH_NOMATCH=Yes
|
||||||
|
qt $g_tool -A $chain -m set --match-set $chain src --packets-lt 100 -j ACCEPT && IPSET_MATCH_COUNTERS=Yes
|
||||||
qt $g_tool -F $chain
|
qt $g_tool -F $chain
|
||||||
IPSET_MATCH=Yes
|
IPSET_MATCH=Yes
|
||||||
elif qt $g_tool -A $chain -m set --set $chain src -j ACCEPT; then
|
elif qt $g_tool -A $chain -m set --set $chain src -j ACCEPT; then
|
||||||
@@ -2630,8 +2671,15 @@ determine_capabilities() {
|
|||||||
qt $g_tool -F $chain1
|
qt $g_tool -F $chain1
|
||||||
qt $g_tool -X $chain1
|
qt $g_tool -X $chain1
|
||||||
|
|
||||||
[ -n "$TC" ] && $TC filter add flow help 2>&1 | grep -q ^Usage && FLOW_FILTER=Yes
|
if [ -n "$TC" ]; then
|
||||||
[ -n "$TC" ] && $TC filter add basic help 2>&1 | grep -q ^Usage && BASIC_FILTER=Yes
|
$TC filter add flow help 2>&1 | grep -q ^Usage && FLOW_FILTER=Yes
|
||||||
|
|
||||||
|
if $TC filter add basic help 2>&1 | grep -q ^Usage; then
|
||||||
|
BASIC_FILTER=Yes
|
||||||
|
$TC filter add basic help 2>&1 | egrep -q match && BASIC_EMATCH=Yes
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
[ -n "$IP" ] && $IP rule add help 2>&1 | grep -q /MASK && FWMARK_RT_MASK=Yes
|
[ -n "$IP" ] && $IP rule add help 2>&1 | grep -q /MASK && FWMARK_RT_MASK=Yes
|
||||||
|
|
||||||
CAPVERSION=$SHOREWALL_CAPVERSION
|
CAPVERSION=$SHOREWALL_CAPVERSION
|
||||||
@@ -2676,11 +2724,14 @@ report_capabilities_unsorted() {
|
|||||||
report_capability "Packet length Match (LENGTH_MATCH)" $LENGTH_MATCH
|
report_capability "Packet length Match (LENGTH_MATCH)" $LENGTH_MATCH
|
||||||
report_capability "IP range Match(IPRANGE_MATCH)" $IPRANGE_MATCH
|
report_capability "IP range Match(IPRANGE_MATCH)" $IPRANGE_MATCH
|
||||||
report_capability "Recent Match (RECENT_MATCH)" $RECENT_MATCH
|
report_capability "Recent Match (RECENT_MATCH)" $RECENT_MATCH
|
||||||
|
[ -n "$RECENT_MATCH" ] && report_capability 'Recent Match "--reap" option (REAP_OPTION)' $REAP_OPTION
|
||||||
report_capability "Owner Match (OWNER_MATCH)" $OWNER_MATCH
|
report_capability "Owner Match (OWNER_MATCH)" $OWNER_MATCH
|
||||||
report_capability "Owner Name Match (OWNER_NAME_MATCH)" $OWNER_NAME_MATCH
|
report_capability "Owner Name Match (OWNER_NAME_MATCH)" $OWNER_NAME_MATCH
|
||||||
if [ -n "$IPSET_MATCH" ]; then
|
if [ -n "$IPSET_MATCH" ]; then
|
||||||
report_capability "Ipset Match (IPSET_MATCH)" $IPSET_MATCH
|
report_capability "Ipset Match (IPSET_MATCH)" $IPSET_MATCH
|
||||||
[ -n "$OLD_IPSET_MATCH" ] && report_capability "OLD_Ipset Match (OLD_IPSET_MATCH)" $OLD_IPSET_MATCH
|
[ -n "$OLD_IPSET_MATCH" ] && report_capability "OLD_Ipset Match (OLD_IPSET_MATCH)" $OLD_IPSET_MATCH
|
||||||
|
[ -n "$IPSET_MATCH_NOMATCH" ] && report_capability "Ipset Match Nomatch (IPSET_MATCH_NOMATCH)" $IPSET_MATCH_NOMATCH
|
||||||
|
[ -n "$IPSET_MATCH_NOMATCH" ] && report_capability "Ipset Match Counters (IPSET_MATCH_COUNTERS)" $IPSET_MATCH_COUNTERS
|
||||||
fi
|
fi
|
||||||
report_capability "CONNMARK Target (CONNMARK)" $CONNMARK
|
report_capability "CONNMARK Target (CONNMARK)" $CONNMARK
|
||||||
[ -n "$CONNMARK" ] && report_capability "Extended CONNMARK Target (XCONNMARK)" $XCONNMARK
|
[ -n "$CONNMARK" ] && report_capability "Extended CONNMARK Target (XCONNMARK)" $XCONNMARK
|
||||||
@@ -2759,6 +2810,7 @@ report_capabilities_unsorted() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
report_capability "Basic Filter (BASIC_FILTER)" $BASIC_FILTER
|
report_capability "Basic Filter (BASIC_FILTER)" $BASIC_FILTER
|
||||||
|
report_capability "Basic Ematch (BASIC_EMATCH)" $BASIC_EMATCH
|
||||||
report_capability "CT Target (CT_TARGET)" $CT_TARGET
|
report_capability "CT Target (CT_TARGET)" $CT_TARGET
|
||||||
|
|
||||||
echo " Kernel Version (KERNELVERSION): $KERNELVERSION"
|
echo " Kernel Version (KERNELVERSION): $KERNELVERSION"
|
||||||
@@ -2797,10 +2849,13 @@ report_capabilities_unsorted1() {
|
|||||||
report_capability1 LENGTH_MATCH
|
report_capability1 LENGTH_MATCH
|
||||||
report_capability1 IPRANGE_MATCH
|
report_capability1 IPRANGE_MATCH
|
||||||
report_capability1 RECENT_MATCH
|
report_capability1 RECENT_MATCH
|
||||||
|
report_capability1 REAP_OPTION
|
||||||
report_capability1 OWNER_MATCH
|
report_capability1 OWNER_MATCH
|
||||||
report_capability1 OWNER_NAME_MATCH
|
report_capability1 OWNER_NAME_MATCH
|
||||||
report_capability1 IPSET_MATCH
|
report_capability1 IPSET_MATCH
|
||||||
report_capability1 OLD_IPSET_MATCH
|
report_capability1 OLD_IPSET_MATCH
|
||||||
|
report_capability1 IPSET_MATCH_NOMATCH
|
||||||
|
report_capability1 IPSET_MATCH_COUNTERS
|
||||||
report_capability1 CONNMARK
|
report_capability1 CONNMARK
|
||||||
report_capability1 XCONNMARK
|
report_capability1 XCONNMARK
|
||||||
report_capability1 CONNMARK_MATCH
|
report_capability1 CONNMARK_MATCH
|
||||||
@@ -2844,6 +2899,7 @@ report_capabilities_unsorted1() {
|
|||||||
report_capability1 CONDITION_MATCH
|
report_capability1 CONDITION_MATCH
|
||||||
report_capability1 IPTABLES_S
|
report_capability1 IPTABLES_S
|
||||||
report_capability1 BASIC_FILTER
|
report_capability1 BASIC_FILTER
|
||||||
|
report_capability1 BASIC_EMATCH
|
||||||
report_capability1 CT_TARGET
|
report_capability1 CT_TARGET
|
||||||
report_capability1 STATISTIC_MATCH
|
report_capability1 STATISTIC_MATCH
|
||||||
report_capability1 IMQ_TARGET
|
report_capability1 IMQ_TARGET
|
||||||
@@ -2906,19 +2962,83 @@ show_status() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $VERBOSITY -ge 1 ]; then
|
if [ $VERBOSITY -ge 1 ]; then
|
||||||
echo "State:$state"
|
|
||||||
if [ -f $g_firewall ]; then
|
if [ -f $g_firewall ]; then
|
||||||
echo $g_echo_n "$g_firewall was compiled by Shorewall version "
|
state="$state ($g_firewall compiled by Shorewall version $($g_firewall version))"
|
||||||
$g_firewall version
|
|
||||||
fi
|
fi
|
||||||
|
echo "State:$state"
|
||||||
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface_status() {
|
||||||
|
case $(cat $1) in
|
||||||
|
0)
|
||||||
|
echo Enabled
|
||||||
|
;;
|
||||||
|
1)
|
||||||
|
echo Disabled
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo Unknown
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
show_interfaces() {
|
||||||
|
local f
|
||||||
|
local interface
|
||||||
|
local printed
|
||||||
|
|
||||||
|
for f in ${VARDIR}/*.status; do
|
||||||
|
interface=$(basename $f)
|
||||||
|
echo " Interface ${interface%.status} is $(interface_status $f)"
|
||||||
|
printed=Yes
|
||||||
|
done
|
||||||
|
|
||||||
|
[ -n "$printed" ] && echo
|
||||||
|
}
|
||||||
|
|
||||||
status_command() {
|
status_command() {
|
||||||
|
local finished
|
||||||
|
finished=0
|
||||||
|
local option
|
||||||
|
local interfaces
|
||||||
|
|
||||||
|
while [ $finished -eq 0 -a $# -gt 0 ]; do
|
||||||
|
option=$1
|
||||||
|
case $option in
|
||||||
|
-*)
|
||||||
|
option=${option#-}
|
||||||
|
|
||||||
|
while [ -n "$option" ]; do
|
||||||
|
case $option in
|
||||||
|
-)
|
||||||
|
finished=1
|
||||||
|
option=
|
||||||
|
;;
|
||||||
|
i*)
|
||||||
|
interfaces=Yes
|
||||||
|
option=${option#i}
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
usage 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
finished=1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
[ $# -eq 0 ] || usage 1
|
||||||
|
|
||||||
[ $VERBOSITY -ge 1 ] && echo "${g_product}-$SHOREWALL_VERSION Status at $g_hostname - $(date)" && echo
|
[ $VERBOSITY -ge 1 ] && echo "${g_product}-$SHOREWALL_VERSION Status at $g_hostname - $(date)" && echo
|
||||||
show_status
|
show_status
|
||||||
[ $VERBOSITY -ge 1 ] && echo
|
[ -n "$interfaces" ] && show_interfaces
|
||||||
exit $status
|
exit $status
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3395,6 +3515,14 @@ restart_command() {
|
|||||||
return $rc
|
return $rc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
run_command() {
|
||||||
|
if [ -x ${VARDIR}/firewall ] ; then
|
||||||
|
run_it ${VARDIR}/firewall $g_debugging $@
|
||||||
|
else
|
||||||
|
fatal_error "${VARDIR}/firewall does not exist or is not executable"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Give Usage Information
|
# Give Usage Information
|
||||||
#
|
#
|
||||||
@@ -3408,7 +3536,7 @@ usage() # $1 = exit status
|
|||||||
echo " delete <interface>[:<host-list>] ... <zone>"
|
echo " delete <interface>[:<host-list>] ... <zone>"
|
||||||
echo " disable <interface>"
|
echo " disable <interface>"
|
||||||
echo " drop <address> ..."
|
echo " drop <address> ..."
|
||||||
echo " dump [ -x ]"
|
echo " dump [ -x ] [ -l ] [ -m ]"
|
||||||
echo " enable <interface>"
|
echo " enable <interface>"
|
||||||
echo " forget [ <file name> ]"
|
echo " forget [ <file name> ]"
|
||||||
echo " help"
|
echo " help"
|
||||||
@@ -3426,10 +3554,12 @@ usage() # $1 = exit status
|
|||||||
echo " reset [ <chain> ... ]"
|
echo " reset [ <chain> ... ]"
|
||||||
echo " restart [ -n ] [ -p ] [ -f ] [ <directory> ]"
|
echo " restart [ -n ] [ -p ] [ -f ] [ <directory> ]"
|
||||||
echo " restore [ -n ] [ <file name> ]"
|
echo " restore [ -n ] [ <file name> ]"
|
||||||
|
echo " run <command> [ <parameter> ... ]"
|
||||||
echo " save [ <file name> ]"
|
echo " save [ <file name> ]"
|
||||||
echo " [ show | list | ls ] [ -b ] [ -x ] [ -t {filter|mangle|nat} ] [ {chain [<chain> [ <chain> ... ]"
|
echo " [ show | list | ls ] [ -b ] [ -x ] [ -t {filter|mangle|nat} ] [ {chain [<chain> [ <chain> ... ]"
|
||||||
echo " [ show | list | ls ] [ -f ] capabilities"
|
echo " [ show | list | ls ] [ -f ] capabilities"
|
||||||
echo " [ show | list | ls ] arptables"
|
echo " [ show | list | ls ] arptables"
|
||||||
|
echo " [ show | list | ls ] [ -x ] {bl|blacklists}"
|
||||||
echo " [ show | list | ls ] classifiers"
|
echo " [ show | list | ls ] classifiers"
|
||||||
echo " [ show | list | ls ] config"
|
echo " [ show | list | ls ] config"
|
||||||
echo " [ show | list | ls ] connections"
|
echo " [ show | list | ls ] connections"
|
||||||
@@ -3452,7 +3582,8 @@ usage() # $1 = exit status
|
|||||||
echo " [ show | list | ls ] zones"
|
echo " [ show | list | ls ] zones"
|
||||||
echo " start [ -f ] [ -p ] [ <directory> ]"
|
echo " start [ -f ] [ -p ] [ <directory> ]"
|
||||||
echo " stop"
|
echo " stop"
|
||||||
echo " status"
|
echo " status [ -i ]"
|
||||||
|
echo " run <function> [ function ... ]"
|
||||||
echo " version [ -a ]"
|
echo " version [ -a ]"
|
||||||
echo
|
echo
|
||||||
exit $1
|
exit $1
|
||||||
@@ -3499,6 +3630,9 @@ shorewall_cli() {
|
|||||||
g_conditional=
|
g_conditional=
|
||||||
g_file=
|
g_file=
|
||||||
g_doing="Compiling"
|
g_doing="Compiling"
|
||||||
|
g_directives=
|
||||||
|
g_inline=
|
||||||
|
g_tcrules=
|
||||||
|
|
||||||
VERBOSE=
|
VERBOSE=
|
||||||
VERBOSITY=1
|
VERBOSITY=1
|
||||||
@@ -3694,16 +3828,21 @@ shorewall_cli() {
|
|||||||
fatal_error "$g_product is not running"
|
fatal_error "$g_product is not running"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
run)
|
||||||
|
[ $# -gt 1 ] || fatal_error "Missing function name"
|
||||||
|
get_config Yes
|
||||||
|
run_command $@
|
||||||
|
;;
|
||||||
show|list|ls)
|
show|list|ls)
|
||||||
get_config Yes No Yes
|
get_config Yes No Yes
|
||||||
shift
|
shift
|
||||||
show_command $@
|
show_command $@
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
[ $# -eq 1 ] || usage 1
|
|
||||||
[ "$(id -u)" != 0 ] && fatal_error "The status command may only be run by root"
|
[ "$(id -u)" != 0 ] && fatal_error "The status command may only be run by root"
|
||||||
get_config
|
get_config
|
||||||
status_command
|
shift
|
||||||
|
status_command $@
|
||||||
;;
|
;;
|
||||||
dump)
|
dump)
|
||||||
get_config Yes No Yes
|
get_config Yes No Yes
|
||||||
|
@@ -1,15 +1,16 @@
|
|||||||
#
|
#
|
||||||
# Shorewall 4.5 -- /usr/share/shorewall/lib.common.
|
# Shorewall 4.5 -- /usr/share/shorewall/lib.common.
|
||||||
#
|
#
|
||||||
# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt]
|
# (c) 2010-2014 - Tom Eastep (teastep@shorewall.net)
|
||||||
#
|
|
||||||
# (c) 2010-2012 - Tom Eastep (teastep@shorewall.net)
|
|
||||||
#
|
#
|
||||||
# Complete documentation is available at http://shorewall.net
|
# 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
|
# 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
|
# it under the terms of the GNU General Public License as published by the
|
||||||
# as published by the Free Software Foundation.
|
# 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,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@@ -17,8 +18,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
#
|
||||||
# The purpose of this library is to hold those functions used by both the CLI and by the
|
# The purpose of this library is to hold those functions used by both the CLI and by the
|
||||||
# generated firewall scripts. To avoid versioning issues, it is copied into generated
|
# generated firewall scripts. To avoid versioning issues, it is copied into generated
|
||||||
@@ -172,6 +172,7 @@ run_it() {
|
|||||||
error_message() # $* = Error Message
|
error_message() # $* = Error Message
|
||||||
{
|
{
|
||||||
echo " $@" >&2
|
echo " $@" >&2
|
||||||
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -605,7 +606,7 @@ find_first_interface_address() # $1 = interface
|
|||||||
#
|
#
|
||||||
# get the line of output containing the first IP address
|
# get the line of output containing the first IP address
|
||||||
#
|
#
|
||||||
addr=$(${IP:-ip} -f inet6 addr show dev $1 2> /dev/null | fgrep 'inet6 ' | fgrep -v 'scope link' | head -n1)
|
addr=$(${IP:-ip} -f inet6 addr show dev $1 2> /dev/null | grep -F 'inet6 ' | grep -vF 'scope link' | head -n1)
|
||||||
#
|
#
|
||||||
# If there wasn't one, bail out now
|
# If there wasn't one, bail out now
|
||||||
#
|
#
|
||||||
@@ -634,7 +635,7 @@ find_first_interface_address_if_any() # $1 = interface
|
|||||||
#
|
#
|
||||||
# get the line of output containing the first IP address
|
# get the line of output containing the first IP address
|
||||||
#
|
#
|
||||||
addr=$(${IP:-ip} -f inet6 addr show dev $1 2> /dev/null | fgrep 'inet6 ' | fgrep -v 'scope link' | head -n1)
|
addr=$(${IP:-ip} -f inet6 addr show dev $1 2> /dev/null | grep -F 'inet6 ' | grep -vF 'scope link' | head -n1)
|
||||||
#
|
#
|
||||||
# Strip off the trailing VLSM mask (or the peer IP in case of a P-t-P link)
|
# Strip off the trailing VLSM mask (or the peer IP in case of a P-t-P link)
|
||||||
# along with everything else on the line
|
# along with everything else on the line
|
||||||
|
@@ -2,24 +2,24 @@
|
|||||||
#
|
#
|
||||||
# Script to back uninstall Shoreline Firewall
|
# Script to back uninstall Shoreline Firewall
|
||||||
#
|
#
|
||||||
# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt]
|
# (c) 2000-2014 - Tom Eastep (teastep@shorewall.net)
|
||||||
#
|
|
||||||
# (c) 2000-2011 - Tom Eastep (teastep@shorewall.net)
|
|
||||||
#
|
#
|
||||||
# Shorewall documentation is available at http://www.shorewall.net
|
# Shorewall documentation is available at http://www.shorewall.net
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is part of Shorewall.
|
||||||
# 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,
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# it under the terms of the GNU General Public License as published by the
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# Free Software Foundation, either version 2 of the license or, at your
|
||||||
# GNU General Public License for more details.
|
# option, any later version.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# This program is distributed in the hope that it will be useful,
|
||||||
# along with this program; if not, write to the Free Software
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
# 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 <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
#
|
#
|
||||||
|
@@ -2,17 +2,18 @@
|
|||||||
#
|
#
|
||||||
# Shorewall interface helper utility - V4.2
|
# Shorewall interface helper utility - V4.2
|
||||||
#
|
#
|
||||||
# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt]
|
# (c) 2007,2014 - Tom Eastep (teastep@shorewall.net)
|
||||||
#
|
|
||||||
# (c) 2007 - Tom Eastep (teastep@shorewall.net)
|
|
||||||
#
|
#
|
||||||
# This file is installed in /usr/share/shorewall/wait4ifup
|
# This file is installed in /usr/share/shorewall/wait4ifup
|
||||||
#
|
#
|
||||||
# Shorewall documentation is available at http://www.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
|
# 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
|
# it under the terms of the GNU General Public License as published by the
|
||||||
# as published by the Free Software Foundation.
|
# 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,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@@ -20,8 +21,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
#
|
||||||
# If an error occurs while starting or restarting the firewall, the
|
# If an error occurs while starting or restarting the firewall, the
|
||||||
# firewall is automatically stopped.
|
# firewall is automatically stopped.
|
||||||
|
@@ -36,6 +36,8 @@
|
|||||||
# bringing up the network
|
# bringing up the network
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
|
. /lib/lsb/init-functions
|
||||||
|
|
||||||
export VERBOSITY=0
|
export VERBOSITY=0
|
||||||
|
|
||||||
if [ "$(id -u)" != "0" ]
|
if [ "$(id -u)" != "0" ]
|
||||||
@@ -103,24 +105,35 @@ shorewall_start () {
|
|||||||
for PRODUCT in $PRODUCTS; do
|
for PRODUCT in $PRODUCTS; do
|
||||||
setstatedir
|
setstatedir
|
||||||
|
|
||||||
if [ -x ${STATEDIR}/$PRODUCT/firewall ]; then
|
if [ -x ${STATEDIR}/firewall ]; then
|
||||||
#
|
#
|
||||||
# Run in a sub-shell to avoid name collisions
|
# Run in a sub-shell to avoid name collisions
|
||||||
#
|
#
|
||||||
(
|
(
|
||||||
if ! ${STATEDIR}/$PRODUCT/firewall status > /dev/null 2>&1; then
|
if ! ${STATEDIR}/firewall status > /dev/null 2>&1; then
|
||||||
${STATEDIR}/$PRODUCT/firewall ${OPTIONS} stop || echo_notdone
|
${STATEDIR}/firewall ${OPTIONS} stop || echo_notdone
|
||||||
else
|
else
|
||||||
echo_notdone
|
echo_notdone
|
||||||
fi
|
fi
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
echo echo_notdone
|
echo_notdone
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
|
if [ -n "$SAVE_IPSETS" -a -f "$SAVE_IPSETS" ]; then
|
||||||
|
|
||||||
|
echo -n "Restoring ipsets: "
|
||||||
|
|
||||||
|
if ! ipset -R < "$SAVE_IPSETS"; then
|
||||||
|
echo_notdone
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "done."
|
||||||
|
fi
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -133,13 +146,27 @@ shorewall_stop () {
|
|||||||
for PRODUCT in $PRODUCTS; do
|
for PRODUCT in $PRODUCTS; do
|
||||||
setstatedir
|
setstatedir
|
||||||
|
|
||||||
if [ -x ${STATEDIR}/$PRODUCT/firewall ]; then
|
if [ -x ${STATEDIR}/firewall ]; then
|
||||||
${STATEDIR}/$PRODUCT/firewall ${OPTIONS} clear || echo_notdone
|
${STATEDIR}/firewall ${OPTIONS} clear || echo_notdone
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
|
if [ -n "$SAVE_IPSETS" ]; then
|
||||||
|
|
||||||
|
echo "Saving ipsets: "
|
||||||
|
|
||||||
|
mkdir -p $(dirname "$SAVE_IPSETS")
|
||||||
|
if ipset -S > "${SAVE_IPSETS}.tmp"; then
|
||||||
|
grep -qE -- '^(-N|create )' "${SAVE_IPSETS}.tmp" && mv -f "${SAVE_IPSETS}.tmp" "$SAVE_IPSETS"
|
||||||
|
else
|
||||||
|
echo_notdone
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "done."
|
||||||
|
fi
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,22 +1,24 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
# The Shoreline Firewall (Shorewall) Packet Filtering Firewall - V4.5
|
# The Shoreline Firewall (Shorewall) Packet Filtering Firewall - V4.5
|
||||||
#
|
#
|
||||||
# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt]
|
# (c) 2010,2012-2014 - Tom Eastep (teastep@shorewall.net)
|
||||||
#
|
|
||||||
# (c) 2010,2012 - Tom Eastep (teastep@shorewall.net)
|
|
||||||
#
|
#
|
||||||
# On most distributions, this file should be called /etc/init.d/shorewall.
|
# On most distributions, this file should be called /etc/init.d/shorewall.
|
||||||
#
|
#
|
||||||
# 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
|
# 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
|
# it under the terms of the GNU General Public License as published by the
|
||||||
# as published by the Free Software Foundation.
|
# 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,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# 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 <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
|
@@ -2,21 +2,25 @@
|
|||||||
#
|
#
|
||||||
# Script to install Shoreline Firewall Init
|
# Script to install Shoreline Firewall Init
|
||||||
#
|
#
|
||||||
# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt]
|
# (c) 2000-20114 - Tom Eastep (teastep@shorewall.net)
|
||||||
#
|
|
||||||
# (c) 2000-2011 - Tom Eastep (teastep@shorewall.net)
|
|
||||||
# (c) 2010 - Roberto C. Sanchez (roberto@connexer.com)
|
# (c) 2010 - Roberto C. Sanchez (roberto@connexer.com)
|
||||||
#
|
#
|
||||||
# Shorewall documentation is available at http://shorewall.net
|
# Shorewall documentation is available at http://shorewall.net
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is part of Shorewall.
|
||||||
# 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,
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# it under the terms of the GNU General Public License as published by the
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# Free Software Foundation, either version 2 of the license or, at your
|
||||||
# GNU General Public License for more details.
|
# 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 <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
@@ -59,7 +63,6 @@ mywhich() {
|
|||||||
|
|
||||||
for dir in $(split $PATH); do
|
for dir in $(split $PATH); do
|
||||||
if [ -x $dir/$1 ]; then
|
if [ -x $dir/$1 ]; then
|
||||||
echo $dir/$1
|
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@@ -185,18 +188,15 @@ if [ -z "$BUILD" ]; then
|
|||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if [ -f /etc/os-release ]; then
|
if [ -f /etc/os-release ]; then
|
||||||
eval $(cat /etc/os-release | grep ^ID)
|
eval $(cat /etc/os-release | grep ^ID=)
|
||||||
|
|
||||||
case $ID in
|
case $ID in
|
||||||
fedora)
|
fedora|rhel)
|
||||||
BUILD=redhat
|
BUILD=redhat
|
||||||
;;
|
;;
|
||||||
debian)
|
debian|ubuntu)
|
||||||
BUILD=debian
|
BUILD=debian
|
||||||
;;
|
;;
|
||||||
gentoo)
|
|
||||||
BUILD=gentoo
|
|
||||||
;;
|
|
||||||
opensuse)
|
opensuse)
|
||||||
BUILD=suse
|
BUILD=suse
|
||||||
;;
|
;;
|
||||||
@@ -206,6 +206,8 @@ if [ -z "$BUILD" ]; then
|
|||||||
esac
|
esac
|
||||||
elif [ -f /etc/debian_version ]; then
|
elif [ -f /etc/debian_version ]; then
|
||||||
BUILD=debian
|
BUILD=debian
|
||||||
|
elif [ -f /etc/ubuntu_version ]; then
|
||||||
|
BUILD=debian
|
||||||
elif [ -f /etc/gentoo-release ]; then
|
elif [ -f /etc/gentoo-release ]; then
|
||||||
BUILD=gentoo
|
BUILD=gentoo
|
||||||
elif [ -f /etc/redhat-release ]; then
|
elif [ -f /etc/redhat-release ]; then
|
||||||
@@ -320,7 +322,7 @@ fi
|
|||||||
if [ -n "$SYSTEMD" ]; then
|
if [ -n "$SYSTEMD" ]; then
|
||||||
mkdir -p ${DESTDIR}${SYSTEMD}
|
mkdir -p ${DESTDIR}${SYSTEMD}
|
||||||
[ -z "$SERVICEFILE" ] && SERVICEFILE=$PRODUCT.service
|
[ -z "$SERVICEFILE" ] && SERVICEFILE=$PRODUCT.service
|
||||||
run_install $OWNERSHIP -m 600 $SERVICEFILE ${DESTDIR}${SYSTEMD}/$PRODUCT.service
|
run_install $OWNERSHIP -m 644 $SERVICEFILE ${DESTDIR}${SYSTEMD}/$PRODUCT.service
|
||||||
[ ${SBINDIR} != /sbin ] && eval sed -i \'s\|/sbin/\|${SBINDIR}/\|\' ${DESTDIR}${SYSTEMD}/$PRODUCT.service
|
[ ${SBINDIR} != /sbin ] && eval sed -i \'s\|/sbin/\|${SBINDIR}/\|\' ${DESTDIR}${SYSTEMD}/$PRODUCT.service
|
||||||
echo "Service file $SERVICEFILE installed as ${DESTDIR}${SYSTEMD}/$PRODUCT.service"
|
echo "Service file $SERVICEFILE installed as ${DESTDIR}${SYSTEMD}/$PRODUCT.service"
|
||||||
if [ -n "$DESTDIR" ]; then
|
if [ -n "$DESTDIR" ]; then
|
||||||
@@ -433,7 +435,7 @@ case $HOST in
|
|||||||
install_local=
|
install_local=
|
||||||
|
|
||||||
if [ -f ${SBINDIR}/ifup-local -o -f ${SBINDIR}/ifdown-local ]; then
|
if [ -f ${SBINDIR}/ifup-local -o -f ${SBINDIR}/ifdown-local ]; then
|
||||||
if ! fgrep -q Shorewall-based ${SBINDIR}/ifup-local || ! fgrep -q Shorewall-based ${SBINDIR}/ifdown-local; then
|
if ! grep -qF Shorewall-based ${SBINDIR}/ifup-local || ! grep -qF Shorewall-based ${SBINDIR}/ifdown-local; then
|
||||||
echo "WARNING: ${SBINDIR}/ifup-local and/or ${SBINDIR}/ifdown-local already exist; up/down events will not be handled"
|
echo "WARNING: ${SBINDIR}/ifup-local and/or ${SBINDIR}/ifdown-local already exist; up/down events will not be handled"
|
||||||
else
|
else
|
||||||
install_local=Yes
|
install_local=Yes
|
||||||
@@ -459,8 +461,13 @@ if [ -z "$DESTDIR" ]; then
|
|||||||
else
|
else
|
||||||
cant_autostart
|
cant_autostart
|
||||||
fi
|
fi
|
||||||
elif rc-update add $PRODUCT default; then
|
elif mywhich update-rc.d ; then
|
||||||
echo "Shorewall Init will start automatically at boot"
|
if update-rc.d $PRODUCT enable; then
|
||||||
|
echo "$PRODUCT will start automatically at boot"
|
||||||
|
echo "Set startup=1 in ${CONFDIR}/default/$PRODUCT to enable"
|
||||||
|
else
|
||||||
|
cant_autostart
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
cant_autostart
|
cant_autostart
|
||||||
fi
|
fi
|
||||||
@@ -527,7 +534,7 @@ if [ -f ${DESTDIR}/etc/ppp ]; then
|
|||||||
for file in ip-up.local ip-down.local; do
|
for file in ip-up.local ip-down.local; do
|
||||||
FILE=${DESTDIR}/etc/ppp/$file
|
FILE=${DESTDIR}/etc/ppp/$file
|
||||||
if [ -f $FILE ]; then
|
if [ -f $FILE ]; then
|
||||||
if fgrep -q Shorewall-based $FILE ; then
|
if grep -qF Shorewall-based $FILE ; then
|
||||||
cp -fp ${DESTDIR}${LIBEXECDIR}/shorewall-init/ifupdown $FILE
|
cp -fp ${DESTDIR}${LIBEXECDIR}/shorewall-init/ifupdown $FILE
|
||||||
else
|
else
|
||||||
echo "$FILE already exists -- ppp devices will not be handled"
|
echo "$FILE already exists -- ppp devices will not be handled"
|
||||||
|
@@ -1,26 +1,26 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
# The Shoreline Firewall (Shorewall) Packet Filtering Firewall - V4.5
|
# The Shoreline Firewall (Shorewall) Packet Filtering Firewall - V4.5
|
||||||
#
|
#
|
||||||
# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt]
|
# (c) 2012-2014 - Tom Eastep (teastep@shorewall.net)
|
||||||
#
|
|
||||||
# (c) 2012 - Tom Eastep (teastep@shorewall.net)
|
|
||||||
#
|
#
|
||||||
# On most distributions, this file should be called /etc/init.d/shorewall.
|
# On most distributions, this file should be called /etc/init.d/shorewall.
|
||||||
#
|
#
|
||||||
# Complete documentation is available at http://shorewall.net
|
# Complete documentation is available at http://shorewall.net
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is part of Shorewall.
|
||||||
# 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,
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# it under the terms of the GNU General Public License as published by the
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# Free Software Foundation, either version 2 of the license or, at your
|
||||||
# GNU General Public License for more details.
|
# option, any later version.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# This program is distributed in the hope that it will be useful,
|
||||||
# along with this program; if not, write to the Free Software
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
# 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 <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
# set the STATEDIR variable
|
# set the STATEDIR variable
|
||||||
|
@@ -2,24 +2,24 @@
|
|||||||
#
|
#
|
||||||
# Script to back uninstall Shoreline Firewall
|
# Script to back uninstall Shoreline Firewall
|
||||||
#
|
#
|
||||||
# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt]
|
# (c) 2000-2014 - Tom Eastep (teastep@shorewall.net)
|
||||||
#
|
|
||||||
# (c) 2000-2011 - Tom Eastep (teastep@shorewall.net)
|
|
||||||
#
|
#
|
||||||
# Shorewall documentation is available at http://shorewall.sourceforge.net
|
# Shorewall documentation is available at http://shorewall.sourceforge.net
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is part of Shorewall.
|
||||||
# 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,
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# it under the terms of the GNU General Public License as published by the
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# Free Software Foundation, either version 2 of the license or, at your
|
||||||
# GNU General Public License for more details.
|
# option, any later version.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# This program is distributed in the hope that it will be useful,
|
||||||
# along with this program; if not, write to the Free Software
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
# 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 <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
#
|
#
|
||||||
@@ -153,7 +153,7 @@ if [ -d ${CONFDIR}/ppp ]; then
|
|||||||
done
|
done
|
||||||
|
|
||||||
for file in if-up.local if-down.local; do
|
for file in if-up.local if-down.local; do
|
||||||
if fgrep -q Shorewall-based ${CONFDIR}/ppp/$FILE; then
|
if grep -qF Shorewall-based ${CONFDIR}/ppp/$FILE; then
|
||||||
remove_file ${CONFDIR}/ppp/$FILE
|
remove_file ${CONFDIR}/ppp/$FILE
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
# /etc/shorewall-lite
|
# /etc/shorewall-lite
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
|
. /lib/lsb/init-functions
|
||||||
|
|
||||||
SRWL=/sbin/shorewall-lite
|
SRWL=/sbin/shorewall-lite
|
||||||
SRWL_OPTS="-tvv"
|
SRWL_OPTS="-tvv"
|
||||||
|
@@ -3,17 +3,18 @@ RCDLINKS="2,S41 3,S41 6,K41"
|
|||||||
#
|
#
|
||||||
# The Shoreline Firewall (Shorewall) Packet Filtering Firewall - V4.5
|
# The Shoreline Firewall (Shorewall) Packet Filtering Firewall - V4.5
|
||||||
#
|
#
|
||||||
# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt]
|
# (c) 1999,2000,2001,2002,2003,2004,2005,2006,2007,2012,2014 - Tom Eastep (teastep@shorewall.net)
|
||||||
#
|
|
||||||
# (c) 1999,2000,2001,2002,2003,2004,2005,2006,2007,2012 - Tom Eastep (teastep@shorewall.net)
|
|
||||||
#
|
#
|
||||||
# On most distributions, this file should be called /etc/init.d/shorewall.
|
# On most distributions, this file should be called /etc/init.d/shorewall.
|
||||||
#
|
#
|
||||||
# Complete documentation is available at http://shorewall.net
|
# 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
|
# 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
|
# it under the terms of the GNU General Public License as published by the
|
||||||
# as published by the Free Software Foundation.
|
# 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,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@@ -21,8 +22,7 @@ RCDLINKS="2,S41 3,S41 6,K41"
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
#
|
||||||
# If an error occurs while starting or restarting the firewall, the
|
# If an error occurs while starting or restarting the firewall, the
|
||||||
# firewall is automatically stopped.
|
# firewall is automatically stopped.
|
||||||
|
@@ -2,24 +2,24 @@
|
|||||||
#
|
#
|
||||||
# Script to install Shoreline Firewall Lite
|
# Script to install Shoreline Firewall Lite
|
||||||
#
|
#
|
||||||
# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt]
|
# (c) 2000-2011,2014 - Tom Eastep (teastep@shorewall.net)
|
||||||
#
|
|
||||||
# (c) 2000-2011 - Tom Eastep (teastep@shorewall.net)
|
|
||||||
#
|
#
|
||||||
# Shorewall documentation is available at http://shorewall.net
|
# Shorewall documentation is available at http://shorewall.net
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is part of Shorewall.
|
||||||
# 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,
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# it under the terms of the GNU General Public License as published by the
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# Free Software Foundation, either version 2 of the license or, at your
|
||||||
# GNU General Public License for more details.
|
# option, any later version.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# This program is distributed in the hope that it will be useful,
|
||||||
# along with this program; if not, write to the Free Software
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
# 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 <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
VERSION=xxx #The Build script inserts the actual version
|
VERSION=xxx #The Build script inserts the actual version
|
||||||
@@ -195,7 +195,7 @@ T='-T'
|
|||||||
|
|
||||||
if [ -z "$BUILD" ]; then
|
if [ -z "$BUILD" ]; then
|
||||||
case $(uname) in
|
case $(uname) in
|
||||||
cygwin*)
|
cygwin*|CYGWIN*)
|
||||||
BUILD=cygwin
|
BUILD=cygwin
|
||||||
;;
|
;;
|
||||||
Darwin)
|
Darwin)
|
||||||
@@ -206,7 +206,7 @@ if [ -z "$BUILD" ]; then
|
|||||||
eval $(cat /etc/os-release | grep ^ID)
|
eval $(cat /etc/os-release | grep ^ID)
|
||||||
|
|
||||||
case $ID in
|
case $ID in
|
||||||
fedora)
|
fedora|rhel)
|
||||||
BUILD=redhat
|
BUILD=redhat
|
||||||
;;
|
;;
|
||||||
debian)
|
debian)
|
||||||
@@ -242,7 +242,7 @@ if [ -z "$BUILD" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
case $BUILD in
|
case $BUILD in
|
||||||
cygwin*)
|
cygwin*|CYGWIN*)
|
||||||
OWNER=$(id -un)
|
OWNER=$(id -un)
|
||||||
GROUP=$(id -gn)
|
GROUP=$(id -gn)
|
||||||
;;
|
;;
|
||||||
@@ -383,7 +383,7 @@ fi
|
|||||||
if [ -n "$SYSTEMD" ]; then
|
if [ -n "$SYSTEMD" ]; then
|
||||||
mkdir -p ${DESTDIR}${SYSTEMD}
|
mkdir -p ${DESTDIR}${SYSTEMD}
|
||||||
[ -z "$SERVICEFILE" ] && SERVICEFILE=$PRODUCT.service
|
[ -z "$SERVICEFILE" ] && SERVICEFILE=$PRODUCT.service
|
||||||
run_install $OWNERSHIP -m 600 $SERVICEFILE ${DESTDIR}${SYSTEMD}/$PRODUCT.service
|
run_install $OWNERSHIP -m 644 $SERVICEFILE ${DESTDIR}${SYSTEMD}/$PRODUCT.service
|
||||||
[ ${SBINDIR} != /sbin ] && eval sed -i \'s\|/sbin/\|${SBINDIR}/\|\' ${DESTDIR}${SYSTEMD}/$PRODUCT.service
|
[ ${SBINDIR} != /sbin ] && eval sed -i \'s\|/sbin/\|${SBINDIR}/\|\' ${DESTDIR}${SYSTEMD}/$PRODUCT.service
|
||||||
echo "Service file $SERVICEFILE installed as ${DESTDIR}${SYSTEMD}/$PRODUCT.service"
|
echo "Service file $SERVICEFILE installed as ${DESTDIR}${SYSTEMD}/$PRODUCT.service"
|
||||||
fi
|
fi
|
||||||
@@ -552,6 +552,12 @@ if [ -z "$DESTDIR" -a -n "$first_install" -a -z "${cygwin}${mac}" ]; then
|
|||||||
else
|
else
|
||||||
cant_autostart
|
cant_autostart
|
||||||
fi
|
fi
|
||||||
|
elif mywhich update-rc.d ; then
|
||||||
|
echo "$PRODUCT will start automatically at boot"
|
||||||
|
echo "Set startup=1 in ${CONFDIR}/default/$PRODUCT to enable"
|
||||||
|
touch /var/log/$PRODUCT-init.log
|
||||||
|
perl -p -w -i -e 's/^STARTUP_ENABLED=No/STARTUP_ENABLED=Yes/;s/^IP_FORWARDING=On/IP_FORWARDING=Keep/;s/^SUBSYSLOCK=.*/SUBSYSLOCK=/;' ${CONFDIR}/$PRODUCT/$PRODUCT.conf
|
||||||
|
update-rc.d $PRODUCT enable
|
||||||
elif mywhich rc-update ; then
|
elif mywhich rc-update ; then
|
||||||
if rc-update add $PRODUCT default; then
|
if rc-update add $PRODUCT default; then
|
||||||
echo "$PRODUCT will start automatically at boot"
|
echo "$PRODUCT will start automatically at boot"
|
||||||
|
@@ -1,15 +1,16 @@
|
|||||||
#
|
#
|
||||||
# Shorewall 4.4 -- /usr/share/shorewall-lite/lib.base
|
# Shorewall 4.4 -- /usr/share/shorewall-lite/lib.base
|
||||||
#
|
#
|
||||||
# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt]
|
# (c) 2011,2014 - Tom Eastep (teastep@shorewall.net)
|
||||||
#
|
|
||||||
# (c) 2011 - Tom Eastep (teastep@shorewall.net)
|
|
||||||
#
|
#
|
||||||
# Complete documentation is available at http://shorewall.net
|
# Complete documentation is available at http://shorewall.net
|
||||||
#
|
#
|
||||||
# This program is free software; you can redisribute it and/or modify
|
# This program is part of Shorewall.
|
||||||
# it under the terms of Version 2 of the GNU General Public License
|
#
|
||||||
# as published by the Free Software Foundation.
|
# 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,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@@ -17,8 +18,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
#
|
||||||
# This library contains the code common to all Shorewall components.
|
# This library contains the code common to all Shorewall components.
|
||||||
|
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
<refentrytitle>shorewall-lite-vardir</refentrytitle>
|
<refentrytitle>shorewall-lite-vardir</refentrytitle>
|
||||||
|
|
||||||
<manvolnum>5</manvolnum>
|
<manvolnum>5</manvolnum>
|
||||||
|
|
||||||
|
<refmiscinfo>Configuration Files</refmiscinfo>
|
||||||
</refmeta>
|
</refmeta>
|
||||||
|
|
||||||
<refnamediv>
|
<refnamediv>
|
||||||
@@ -54,7 +56,7 @@
|
|||||||
/opt/var/lib/shorewall-lite/.</para>
|
/opt/var/lib/shorewall-lite/.</para>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
<para> When VARDIR is set in /etc/shorewall-lite/vardir, Shorewall Lite
|
<para>When VARDIR is set in /etc/shorewall-lite/vardir, Shorewall Lite
|
||||||
will save its state in the <replaceable>directory</replaceable>
|
will save its state in the <replaceable>directory</replaceable>
|
||||||
specified.</para>
|
specified.</para>
|
||||||
</note>
|
</note>
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
<refentrytitle>shorewall-lite.conf</refentrytitle>
|
<refentrytitle>shorewall-lite.conf</refentrytitle>
|
||||||
|
|
||||||
<manvolnum>5</manvolnum>
|
<manvolnum>5</manvolnum>
|
||||||
|
|
||||||
|
<refmiscinfo>Configuration Files</refmiscinfo>
|
||||||
</refmeta>
|
</refmeta>
|
||||||
|
|
||||||
<refnamediv>
|
<refnamediv>
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
<refentrytitle>shorewall-lite</refentrytitle>
|
<refentrytitle>shorewall-lite</refentrytitle>
|
||||||
|
|
||||||
<manvolnum>8</manvolnum>
|
<manvolnum>8</manvolnum>
|
||||||
|
|
||||||
|
<refmiscinfo>Administrative Commands</refmiscinfo>
|
||||||
</refmeta>
|
</refmeta>
|
||||||
|
|
||||||
<refnamediv>
|
<refnamediv>
|
||||||
@@ -315,6 +317,21 @@
|
|||||||
<arg><replaceable>filename</replaceable></arg>
|
<arg><replaceable>filename</replaceable></arg>
|
||||||
</cmdsynopsis>
|
</cmdsynopsis>
|
||||||
|
|
||||||
|
<cmdsynopsis>
|
||||||
|
<command>shorewall-lite</command>
|
||||||
|
|
||||||
|
<arg
|
||||||
|
choice="opt"><option>trace</option>|<option>debug</option><arg><option>nolock</option></arg></arg>
|
||||||
|
|
||||||
|
<arg>-<replaceable>options</replaceable></arg>
|
||||||
|
|
||||||
|
<arg choice="plain"><option>run</option></arg>
|
||||||
|
|
||||||
|
<arg choice="plain">function</arg>
|
||||||
|
|
||||||
|
<arg><replaceable>parameter ...</replaceable></arg>
|
||||||
|
</cmdsynopsis>
|
||||||
|
|
||||||
<cmdsynopsis>
|
<cmdsynopsis>
|
||||||
<command>shorewall-lite</command>
|
<command>shorewall-lite</command>
|
||||||
|
|
||||||
@@ -350,6 +367,20 @@
|
|||||||
rep="repeat"><replaceable>chain</replaceable></arg></arg>
|
rep="repeat"><replaceable>chain</replaceable></arg></arg>
|
||||||
</cmdsynopsis>
|
</cmdsynopsis>
|
||||||
|
|
||||||
|
<cmdsynopsis>
|
||||||
|
<command>shorewall-lite</command>
|
||||||
|
|
||||||
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
||||||
|
|
||||||
|
<arg>-<replaceable>options</replaceable></arg>
|
||||||
|
|
||||||
|
<arg choice="opt"><option>show | list | ls </option></arg>
|
||||||
|
|
||||||
|
<arg><option>-x</option></arg>
|
||||||
|
|
||||||
|
<arg choice="plain"><option>{bl|blacklists}</option></arg>
|
||||||
|
</cmdsynopsis>
|
||||||
|
|
||||||
<cmdsynopsis>
|
<cmdsynopsis>
|
||||||
<command>shorewall-lite</command>
|
<command>shorewall-lite</command>
|
||||||
|
|
||||||
@@ -463,7 +494,8 @@
|
|||||||
|
|
||||||
<arg>-<replaceable>options</replaceable></arg>
|
<arg>-<replaceable>options</replaceable></arg>
|
||||||
|
|
||||||
<arg choice="plain"><option>status</option></arg>
|
<arg choice="plain"><arg
|
||||||
|
choice="plain"><option>status</option><arg><option>-i</option></arg></arg></arg>
|
||||||
</cmdsynopsis>
|
</cmdsynopsis>
|
||||||
|
|
||||||
<cmdsynopsis>
|
<cmdsynopsis>
|
||||||
@@ -805,6 +837,23 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><emphasis role="bold">run</emphasis></term>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>Added in Shorewall 4.6.3. Executes
|
||||||
|
<replaceable>command</replaceable> in the context of the generated
|
||||||
|
script passing the supplied <replaceable>parameter</replaceable>s.
|
||||||
|
Normally, the <replaceable>command</replaceable> will be a function
|
||||||
|
declared in <filename>lib.private</filename>.</para>
|
||||||
|
|
||||||
|
<para>Before executing the <replaceable>command</replaceable>, the
|
||||||
|
script will detect the configuration, setting all SW_* variables and
|
||||||
|
will run your <filename>init</filename> extension script with
|
||||||
|
$COMMAND = 'run'.</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><emphasis role="bold">save</emphasis></term>
|
<term><emphasis role="bold">save</emphasis></term>
|
||||||
|
|
||||||
@@ -827,6 +876,19 @@
|
|||||||
arguments:</para>
|
arguments:</para>
|
||||||
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term><emphasis role="bold">bl|blacklists</emphasis></term>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>Added in Shorewall 4.6.2. Displays the dynamic chain
|
||||||
|
along with any chains produced by entries in
|
||||||
|
shorewall-blrules(5).The <emphasis role="bold">-x</emphasis>
|
||||||
|
option is passed directly through to iptables and causes
|
||||||
|
actual packet and byte counts to be displayed. Without this
|
||||||
|
option, those counts are abbreviated.</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><emphasis role="bold">capabilities</emphasis></term>
|
<term><emphasis role="bold">capabilities</emphasis></term>
|
||||||
|
|
||||||
@@ -1071,6 +1133,10 @@
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>Produces a short report about the state of the
|
<para>Produces a short report about the state of the
|
||||||
Shorewall-configured firewall.</para>
|
Shorewall-configured firewall.</para>
|
||||||
|
|
||||||
|
<para>The <option>-i </option>option was added in Shorewall 4.6.2
|
||||||
|
and causes the status of each optional or provider interface to be
|
||||||
|
displayed.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
@@ -2,17 +2,18 @@
|
|||||||
#
|
#
|
||||||
# Shorewall Lite Packet Filtering Firewall Capabilities Detector
|
# Shorewall Lite Packet Filtering Firewall Capabilities Detector
|
||||||
#
|
#
|
||||||
# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt]
|
# (c) 2006,2007,2008,2009,2010,2014 - Tom Eastep (teastep@shorewall.net)
|
||||||
#
|
|
||||||
# (c) 2006,2007,2008,2009,2010 - Tom Eastep (teastep@shorewall.net)
|
|
||||||
#
|
#
|
||||||
# This file should be placed in /sbin/shorewall.
|
# This file should be placed in /sbin/shorewall.
|
||||||
#
|
#
|
||||||
# Shorewall documentation is available at http://shorewall.sourceforge.net
|
# Shorewall documentation is available at http://shorewall.sourceforge.net
|
||||||
#
|
#
|
||||||
|
# This program is part of Shorewall.
|
||||||
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by the
|
||||||
# as published by the Free Software Foundation.
|
# 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,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@@ -20,9 +21,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
|
||||||
#
|
#
|
||||||
# This program may be used to create a /etc/shorewall/capabilities file for
|
# This program may be used to create a /etc/shorewall/capabilities file for
|
||||||
# use in compiling Shorewall firewalls on another system.
|
# use in compiling Shorewall firewalls on another system.
|
||||||
|
@@ -2,16 +2,17 @@
|
|||||||
#
|
#
|
||||||
# Shorewall Lite Packet Filtering Firewall Control Program - V4.5
|
# Shorewall Lite Packet Filtering Firewall Control Program - V4.5
|
||||||
#
|
#
|
||||||
# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt]
|
# (c) 1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2014 -
|
||||||
#
|
|
||||||
# (c) 1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011 -
|
|
||||||
# Tom Eastep (teastep@shorewall.net)
|
# Tom Eastep (teastep@shorewall.net)
|
||||||
#
|
#
|
||||||
# Shorewall documentation is available at http://www.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
|
# 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
|
# it under the terms of the GNU General Public License as published by the
|
||||||
# as published by the Free Software Foundation.
|
# 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,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@@ -19,8 +20,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
#
|
||||||
# For a list of supported commands, type 'shorewall help' or 'shorewall6 help'
|
# For a list of supported commands, type 'shorewall help' or 'shorewall6 help'
|
||||||
#
|
#
|
||||||
|
@@ -2,24 +2,24 @@
|
|||||||
#
|
#
|
||||||
# Script to back uninstall Shoreline Firewall
|
# Script to back uninstall Shoreline Firewall
|
||||||
#
|
#
|
||||||
# This program is under GPL [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt]
|
# (c) 2000-2011,2014 - Tom Eastep (teastep@shorewall.net)
|
||||||
#
|
|
||||||
# (c) 2000-2011 - Tom Eastep (teastep@shorewall.net)
|
|
||||||
#
|
#
|
||||||
# Shorewall documentation is available at http://shorewall.sourceforge.net
|
# Shorewall documentation is available at http://shorewall.sourceforge.net
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is part of Shorewall.
|
||||||
# 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,
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# it under the terms of the GNU General Public License as published by the
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# Free Software Foundation, either version 2 of the license or, at your
|
||||||
# GNU General Public License for more details.
|
# option, any later version.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# This program is distributed in the hope that it will be useful,
|
||||||
# along with this program; if not, write to the Free Software
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
# 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 <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
#
|
#
|
||||||
|
14
Shorewall/Macros/macro.AMQP
Normal file
14
Shorewall/Macros/macro.AMQP
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#
|
||||||
|
# Shorewall version 4 - AMQP Macro
|
||||||
|
#
|
||||||
|
# /usr/share/shorewall/macro.AMQP
|
||||||
|
#
|
||||||
|
# This macro handles AMQP traffic.
|
||||||
|
#
|
||||||
|
###############################################################################
|
||||||
|
?FORMAT 2
|
||||||
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
|
PARAM - - tcp 5672
|
||||||
|
PARAM - - udp 5672
|
@@ -1,13 +1,15 @@
|
|||||||
#
|
#
|
||||||
# Shorewall version 4 - Audited AllowICMPs Macro
|
# Shorewall version 4 - Audited AllowICMPs Macro
|
||||||
#
|
#
|
||||||
# /usr/share/shorewall/macro.AAllowICMPs
|
# /usr/share/shorewall/macro.A_AllowICMPs
|
||||||
#
|
#
|
||||||
# This macro A_ACCEPTs needed ICMP types
|
# This macro A_ACCEPTs needed ICMP types
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
|
|
||||||
?COMMENT Needed ICMP types
|
?COMMENT Needed ICMP types
|
||||||
|
|
||||||
|
@@ -1,13 +1,15 @@
|
|||||||
#
|
#
|
||||||
# Shorewall version 4 - Audited DropDNSrep Macro
|
# Shorewall version 4 - Audited DropDNSrep Macro
|
||||||
#
|
#
|
||||||
# /usr/share/shorewall/macro.ADropDNSrep
|
# /usr/share/shorewall/macro.A_DropDNSrep
|
||||||
#
|
#
|
||||||
# This macro silently audites and drops DNS UDP replies
|
# This macro silently audites and drops DNS UDP replies
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
|
|
||||||
?COMMENT Late DNS Replies
|
?COMMENT Late DNS Replies
|
||||||
|
|
||||||
|
@@ -1,13 +1,15 @@
|
|||||||
#
|
#
|
||||||
# Shorewall version 4 - ADropUPnP Macro
|
# Shorewall version 4 - ADropUPnP Macro
|
||||||
#
|
#
|
||||||
# /usr/share/shorewall/macro.ADropUPnP
|
# /usr/share/shorewall/macro.A_DropUPnP
|
||||||
#
|
#
|
||||||
# This macro silently drops UPnP probes on UDP port 1900
|
# This macro silently drops UPnP probes on UDP port 1900
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
|
|
||||||
?COMMENT UPnP
|
?COMMENT UPnP
|
||||||
|
|
||||||
|
@@ -6,8 +6,10 @@
|
|||||||
# This macro ACCEPTs needed ICMP types
|
# This macro ACCEPTs needed ICMP types
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
|
|
||||||
?COMMENT Needed ICMP types
|
?COMMENT Needed ICMP types
|
||||||
|
|
||||||
|
@@ -9,11 +9,12 @@
|
|||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
?FORMAT 2
|
?FORMAT 2
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
###############################################################################
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
|
|
||||||
?if ( __CT_TARGET && ! $AUTOHELPERS && __AMANDA_HELPER )
|
?if ( __CT_TARGET && ! $AUTOHELPERS && __AMANDA_HELPER )
|
||||||
PARAM - - udp 10080 ; helper=amanda
|
PARAM - - udp 10080 { helper=amanda }
|
||||||
?else
|
?else
|
||||||
PARAM - - udp 10080
|
PARAM - - udp 10080
|
||||||
?endif
|
?endif
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles Auth (identd) traffic.
|
# This macro handles Auth (identd) traffic.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 113
|
PARAM - - tcp 113
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles BGP4 traffic.
|
# This macro handles BGP4 traffic.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 179 # BGP4
|
PARAM - - tcp 179 # BGP4
|
||||||
|
@@ -6,8 +6,10 @@
|
|||||||
# This macro handles blacklisting using BLACKLIST_DISPOSITION and BLACKLIST_LOGLEVEL
|
# This macro handles blacklisting using BLACKLIST_DISPOSITION and BLACKLIST_LOGLEVEL
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
?if $BLACKLIST_LOGLEVEL
|
?if $BLACKLIST_LOGLEVEL
|
||||||
blacklog
|
blacklog
|
||||||
?else
|
?else
|
||||||
|
@@ -7,9 +7,12 @@
|
|||||||
#
|
#
|
||||||
# If you are running BitTorrent 3.2 or later, you should use the
|
# If you are running BitTorrent 3.2 or later, you should use the
|
||||||
# BitTorrent32 macro.
|
# BitTorrent32 macro.
|
||||||
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 6881:6889
|
PARAM - - tcp 6881:6889
|
||||||
#
|
#
|
||||||
# It may also be necessary to allow UDP traffic:
|
# It may also be necessary to allow UDP traffic:
|
||||||
|
@@ -6,8 +6,10 @@
|
|||||||
# This macro handles BitTorrent traffic for BitTorrent 3.2 and later.
|
# This macro handles BitTorrent traffic for BitTorrent 3.2 and later.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 6881:6999
|
PARAM - - tcp 6881:6999
|
||||||
#
|
#
|
||||||
# It may also be necessary to allow UDP traffic:
|
# It may also be necessary to allow UDP traffic:
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles connections to the CVS pserver.
|
# This macro handles connections to the CVS pserver.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 2401
|
PARAM - - tcp 2401
|
||||||
|
@@ -6,9 +6,11 @@
|
|||||||
# This macro handles Citrix/ICA traffic (ICA, ICA Browser, CGP a.k.a.
|
# This macro handles Citrix/ICA traffic (ICA, ICA Browser, CGP a.k.a.
|
||||||
# ICA Session Reliability)
|
# ICA Session Reliability)
|
||||||
#
|
#
|
||||||
####################################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 1494 # ICA
|
PARAM - - tcp 1494 # ICA
|
||||||
PARAM - - udp 1604 # ICA Browser
|
PARAM - - udp 1604 # ICA Browser
|
||||||
PARAM - - tcp 2598 # CGP Session Reliabilty
|
PARAM - - tcp 2598 # CGP Session Reliabilty
|
||||||
|
@@ -7,7 +7,9 @@
|
|||||||
# The protocol is used by iTunes, Rythmbox and other similar daemons.
|
# The protocol is used by iTunes, Rythmbox and other similar daemons.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 3689
|
PARAM - - tcp 3689
|
||||||
PARAM - - udp 3689
|
PARAM - - udp 3689
|
||||||
|
@@ -7,6 +7,8 @@
|
|||||||
# DCC is a distributed spam filtering mechanism.
|
# DCC is a distributed spam filtering mechanism.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - udp 6277
|
PARAM - - udp 6277
|
||||||
|
@@ -6,7 +6,9 @@
|
|||||||
# This macro (bidirectional) handles forwarded DHCP traffic
|
# This macro (bidirectional) handles forwarded DHCP traffic
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - udp 67:68 67:68 # DHCP
|
PARAM - - udp 67:68 67:68 # DHCP
|
||||||
PARAM DEST SOURCE udp 67:68 67:68 # DHCP
|
PARAM DEST SOURCE udp 67:68 67:68 # DHCP
|
||||||
|
@@ -6,7 +6,9 @@
|
|||||||
# This macro handles DNS traffic.
|
# This macro handles DNS traffic.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - udp 53
|
PARAM - - udp 53
|
||||||
PARAM - - tcp 53
|
PARAM - - tcp 53
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles connections to the Distributed Compiler service.
|
# This macro handles connections to the Distributed Compiler service.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 3632
|
PARAM - - tcp 3632
|
||||||
|
@@ -11,12 +11,14 @@
|
|||||||
# Drop net all
|
# Drop net all
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
#
|
#
|
||||||
# Don't log 'auth' REJECT
|
# Don't log 'auth' DROP
|
||||||
#
|
#
|
||||||
REJECT - - tcp 113
|
DROP - - tcp 113
|
||||||
#
|
#
|
||||||
# Drop Broadcasts so they don't clutter up the log
|
# Drop Broadcasts so they don't clutter up the log
|
||||||
# (broadcasts must *not* be rejected).
|
# (broadcasts must *not* be rejected).
|
||||||
|
@@ -6,8 +6,10 @@
|
|||||||
# This macro silently drops DNS UDP replies
|
# This macro silently drops DNS UDP replies
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
|
|
||||||
?COMMENT Late DNS Replies
|
?COMMENT Late DNS Replies
|
||||||
|
|
||||||
|
@@ -6,8 +6,10 @@
|
|||||||
# This macro silently drops UPnP probes on UDP port 1900
|
# This macro silently drops UPnP probes on UDP port 1900
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
|
|
||||||
?COMMENT UPnP
|
?COMMENT UPnP
|
||||||
|
|
||||||
|
@@ -28,7 +28,9 @@
|
|||||||
# applications such as aMule WebServer or aMuleCMD.
|
# applications such as aMule WebServer or aMuleCMD.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 4662
|
PARAM - - tcp 4662
|
||||||
PARAM - - udp 4665
|
PARAM - - udp 4665
|
||||||
|
@@ -7,10 +7,11 @@
|
|||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
?FORMAT 2
|
?FORMAT 2
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
###############################################################################
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
?if ( __CT_TARGET && ! $AUTOHELPERS && __FTP_HELPER )
|
?if ( __CT_TARGET && ! $AUTOHELPERS && __FTP_HELPER )
|
||||||
PARAM - - tcp 21 ; helper=ftp
|
PARAM - - tcp 21 { helper=ftp }
|
||||||
?else
|
?else
|
||||||
PARAM - - tcp 21
|
PARAM - - tcp 21
|
||||||
?endif
|
?endif
|
||||||
|
@@ -7,6 +7,8 @@
|
|||||||
# your finger information to internet.
|
# your finger information to internet.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 79
|
PARAM - - tcp 79
|
||||||
|
@@ -6,8 +6,10 @@
|
|||||||
# This macro handles GNUnet (secure peer-to-peer networking) traffic.
|
# This macro handles GNUnet (secure peer-to-peer networking) traffic.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 2086
|
PARAM - - tcp 2086
|
||||||
PARAM - - udp 2086
|
PARAM - - udp 2086
|
||||||
PARAM - - tcp 1080
|
PARAM - - tcp 1080
|
||||||
|
@@ -7,7 +7,9 @@
|
|||||||
# traffic (RFC 1701)
|
# traffic (RFC 1701)
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - 47 # GRE
|
PARAM - - 47 # GRE
|
||||||
PARAM DEST SOURCE 47 # GRE
|
PARAM DEST SOURCE 47 # GRE
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles Git traffic.
|
# This macro handles Git traffic.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 9418
|
PARAM - - tcp 9418
|
||||||
|
@@ -6,7 +6,9 @@
|
|||||||
# This macro handles Gnutella traffic.
|
# This macro handles Gnutella traffic.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 6346
|
PARAM - - tcp 6346
|
||||||
PARAM - - udp 6346
|
PARAM - - udp 6346
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles OpenPGP HTTP keyserver protocol traffic.
|
# This macro handles OpenPGP HTTP keyserver protocol traffic.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 11371
|
PARAM - - tcp 11371
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles plaintext HTTP (WWW) traffic.
|
# This macro handles plaintext HTTP (WWW) traffic.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 80
|
PARAM - - tcp 80
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles HTTPS (WWW over SSL) traffic.
|
# This macro handles HTTPS (WWW over SSL) traffic.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 443
|
PARAM - - tcp 443
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles Internet Cache Protocol V2 (Squid) traffic
|
# This macro handles Internet Cache Protocol V2 (Squid) traffic
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - udp 3130
|
PARAM - - udp 3130
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles ICQ, now called AOL Instant Messenger (or AIM).
|
# This macro handles ICQ, now called AOL Instant Messenger (or AIM).
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 5190
|
PARAM - - tcp 5190
|
||||||
|
23
Shorewall/Macros/macro.ILO
Normal file
23
Shorewall/Macros/macro.ILO
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
#
|
||||||
|
# Shorewall version 4 - ILO Macro
|
||||||
|
#
|
||||||
|
# /usr/share/shorewall/macro.ILO
|
||||||
|
#
|
||||||
|
# This macro handles console redirection with HP ILO 2+,
|
||||||
|
# Use this macro to open access to your ILO interface from management
|
||||||
|
# workstations.
|
||||||
|
#
|
||||||
|
###############################################################################
|
||||||
|
?FORMAT 2
|
||||||
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
|
PARAM - - tcp 3002 # Raw serial data
|
||||||
|
PARAM - - tcp 9300 # Shared Remote Console
|
||||||
|
PARAM - - tcp 17988 # Virtual Media
|
||||||
|
PARAM - - tcp 17990 # Console Replay
|
||||||
|
HTTP
|
||||||
|
HTTPS
|
||||||
|
RDP
|
||||||
|
SSH
|
||||||
|
Telnet # Remote Console/Telnet
|
@@ -7,6 +7,8 @@
|
|||||||
# see macro.IMAPS.
|
# see macro.IMAPS.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 143
|
PARAM - - tcp 143
|
||||||
|
@@ -7,6 +7,8 @@
|
|||||||
# (not recommended), see macro.IMAP.
|
# (not recommended), see macro.IMAP.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 993
|
PARAM - - tcp 993
|
||||||
|
@@ -6,7 +6,9 @@
|
|||||||
# This macro (bidirectional) handles IPIP capsulation traffic
|
# This macro (bidirectional) handles IPIP capsulation traffic
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - 94 # IPIP
|
PARAM - - 94 # IPIP
|
||||||
PARAM DEST SOURCE 94 # IPIP
|
PARAM DEST SOURCE 94 # IPIP
|
||||||
|
26
Shorewall/Macros/macro.IPMI
Normal file
26
Shorewall/Macros/macro.IPMI
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
#
|
||||||
|
# Shorewall version 4 - IPMI Macro
|
||||||
|
#
|
||||||
|
# /usr/share/shorewall/macro.IPMI
|
||||||
|
#
|
||||||
|
# This macro handles IPMI console redirection with Asus (AMI),
|
||||||
|
# Dell DRAC5+ (Avocent), and Supermicro (Aten or AMI).
|
||||||
|
# Use this macro to open access to your IPMI interface from management
|
||||||
|
# workstations.
|
||||||
|
#
|
||||||
|
###############################################################################
|
||||||
|
?FORMAT 2
|
||||||
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
|
PARAM - - tcp 623 # RMCP
|
||||||
|
PARAM - - tcp 3668,3669 # Virtual Media, Secure (Dell)
|
||||||
|
PARAM - - tcp 5120,5123 # CD, floppy (Asus, Aten)
|
||||||
|
PARAM - - tcp 5900,5901 # Remote Console (Aten, Dell)
|
||||||
|
PARAM - - tcp 7578 # Remote Console (AMI)
|
||||||
|
PARAM - - udp 623 # RMCP
|
||||||
|
HTTP
|
||||||
|
HTTPS
|
||||||
|
SNMP
|
||||||
|
SSH # Serial over Lan
|
||||||
|
Telnet
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles Internet Printing Protocol (IPP).
|
# This macro handles Internet Printing Protocol (IPP).
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 631
|
PARAM - - tcp 631
|
||||||
|
@@ -6,7 +6,10 @@
|
|||||||
# This macro handles Internet Printing Protocol (IPP) broadcasts.
|
# This macro handles Internet Printing Protocol (IPP) broadcasts.
|
||||||
# If you also need to handle TCP 631 connections in the opposite
|
# If you also need to handle TCP 631 connections in the opposite
|
||||||
# direction, use the IPPserver Macro
|
# direction, use the IPPserver Macro
|
||||||
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - udp 631
|
PARAM - - udp 631
|
||||||
|
@@ -23,7 +23,9 @@
|
|||||||
# IPPserver/ACCEPT $FW loc
|
# IPPserver/ACCEPT $FW loc
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM SOURCE DEST tcp 631
|
PARAM SOURCE DEST tcp 631
|
||||||
PARAM DEST SOURCE udp 631
|
PARAM DEST SOURCE udp 631
|
||||||
|
@@ -6,8 +6,10 @@
|
|||||||
# This macro (bidirectional) handles IPsec traffic
|
# This macro (bidirectional) handles IPsec traffic
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - udp 500 500 # IKE
|
PARAM - - udp 500 500 # IKE
|
||||||
PARAM - - 50 # ESP
|
PARAM - - 50 # ESP
|
||||||
PARAM DEST SOURCE udp 500 500 # IKE
|
PARAM DEST SOURCE udp 500 500 # IKE
|
||||||
|
@@ -7,8 +7,10 @@
|
|||||||
# This is insecure. You should use ESP with encryption for security.
|
# This is insecure. You should use ESP with encryption for security.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - udp 500 500 # IKE
|
PARAM - - udp 500 500 # IKE
|
||||||
PARAM - - 51 # AH
|
PARAM - - 51 # AH
|
||||||
PARAM DEST SOURCE udp 500 500 # IKE
|
PARAM DEST SOURCE udp 500 500 # IKE
|
||||||
|
@@ -6,8 +6,10 @@
|
|||||||
# This macro (bidirectional) handles IPsec traffic and Nat-Traversal
|
# This macro (bidirectional) handles IPsec traffic and Nat-Traversal
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - udp 500 # IKE
|
PARAM - - udp 500 # IKE
|
||||||
PARAM - - udp 4500 # NAT-T
|
PARAM - - udp 4500 # NAT-T
|
||||||
PARAM - - 50 # ESP
|
PARAM - - 50 # ESP
|
||||||
|
@@ -7,11 +7,12 @@
|
|||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
?FORMAT 2
|
?FORMAT 2
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
###############################################################################
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
|
|
||||||
?if ( __CT_TARGET && ! $AUTOHELPERS && __IRC_HELPER )
|
?if ( __CT_TARGET && ! $AUTOHELPERS && __IRC_HELPER )
|
||||||
PARAM - - tcp 6667 ; helper=irc
|
PARAM - - tcp 6667 { helper=irc }
|
||||||
?else
|
?else
|
||||||
PARAM - - tcp 6667
|
PARAM - - tcp 6667
|
||||||
?endif
|
?endif
|
||||||
|
@@ -8,8 +8,10 @@
|
|||||||
# to browse anonymously!
|
# to browse anonymously!
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 8080 # HTTP port
|
PARAM - - tcp 8080 # HTTP port
|
||||||
PARAM - - tcp 6544 # HTTP port
|
PARAM - - tcp 6544 # HTTP port
|
||||||
PARAM - - tcp 6543 # InfoService port
|
PARAM - - tcp 6543 # InfoService port
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro accepts Jabber traffic (plaintext).
|
# This macro accepts Jabber traffic (plaintext).
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#TARGET SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 5222
|
PARAM - - tcp 5222
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro accepts Jabber traffic (ssl).
|
# This macro accepts Jabber traffic (ssl).
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#TARGET SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 5223
|
PARAM - - tcp 5223
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro accepts Jabberd intercommunication traffic
|
# This macro accepts Jabberd intercommunication traffic
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#TARGET SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 5269
|
PARAM - - tcp 5269
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles HP Jetdirect printing.
|
# This macro handles HP Jetdirect printing.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 9100
|
PARAM - - tcp 9100
|
||||||
|
@@ -6,7 +6,9 @@
|
|||||||
# This macro handles Kerberos traffic.
|
# This macro handles Kerberos traffic.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 88
|
PARAM - - tcp 88
|
||||||
PARAM - - udp 88
|
PARAM - - udp 88
|
||||||
|
@@ -7,7 +7,9 @@
|
|||||||
# (RFC 2661)
|
# (RFC 2661)
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - udp 1701 # L2TP
|
PARAM - - udp 1701 # L2TP
|
||||||
PARAM DEST SOURCE udp 1701 # L2TP
|
PARAM DEST SOURCE udp 1701 # L2TP
|
||||||
|
@@ -11,6 +11,8 @@
|
|||||||
# Consult your LDAP server documentation for details.
|
# Consult your LDAP server documentation for details.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 389
|
PARAM - - tcp 389
|
||||||
|
@@ -11,6 +11,8 @@
|
|||||||
# Consult your LDAP server documentation for details.
|
# Consult your LDAP server documentation for details.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 636
|
PARAM - - tcp 636
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles MSNP (MicroSoft Notification Protocol)
|
# This macro handles MSNP (MicroSoft Notification Protocol)
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 1863
|
PARAM - - tcp 1863
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles MSSQL (Microsoft SQL Server)
|
# This macro handles MSSQL (Microsoft SQL Server)
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 1433
|
PARAM - - tcp 1433
|
||||||
|
@@ -12,8 +12,10 @@
|
|||||||
# the POP3 or IMAP macros.
|
# the POP3 or IMAP macros.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 25
|
PARAM - - tcp 25
|
||||||
PARAM - - tcp 465
|
PARAM - - tcp 465
|
||||||
PARAM - - tcp 587
|
PARAM - - tcp 587
|
||||||
|
13
Shorewall/Macros/macro.MongoDB
Normal file
13
Shorewall/Macros/macro.MongoDB
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#
|
||||||
|
# Shorewall version 4 - MongoDB Macro
|
||||||
|
#
|
||||||
|
# /usr/share/shorewall/macro.MongoDB
|
||||||
|
#
|
||||||
|
# This macro handles MongoDB Daemon/Router traffic.
|
||||||
|
#
|
||||||
|
###############################################################################
|
||||||
|
?FORMAT 2
|
||||||
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
|
PARAM - - tcp 27017
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles Munin networked resource monitoring traffic
|
# This macro handles Munin networked resource monitoring traffic
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 4949
|
PARAM - - tcp 4949
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles connections to the MySQL server.
|
# This macro handles connections to the MySQL server.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 3306
|
PARAM - - tcp 3306
|
||||||
|
@@ -7,6 +7,8 @@
|
|||||||
# encrypted NNTP, see macro.NNTPS.
|
# encrypted NNTP, see macro.NNTPS.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 119
|
PARAM - - tcp 119
|
||||||
|
@@ -7,6 +7,8 @@
|
|||||||
# plaintext NNTP, see macro.NNTP.
|
# plaintext NNTP, see macro.NNTP.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 563
|
PARAM - - tcp 563
|
||||||
|
@@ -7,6 +7,8 @@
|
|||||||
# For broadcast NTP traffic, use NTPbrd Macro.
|
# For broadcast NTP traffic, use NTPbrd Macro.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - udp 123
|
PARAM - - udp 123
|
||||||
|
@@ -6,7 +6,9 @@
|
|||||||
# This macro handles bi-directional NTP (for NTP peers)
|
# This macro handles bi-directional NTP (for NTP peers)
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - udp 123
|
PARAM - - udp 123
|
||||||
PARAM DEST SOURCE udp 123
|
PARAM DEST SOURCE udp 123
|
||||||
|
@@ -11,7 +11,9 @@
|
|||||||
# Netfilter doesn't track connections for broadcast traffic.
|
# Netfilter doesn't track connections for broadcast traffic.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - udp 123
|
PARAM - - udp 123
|
||||||
PARAM - - udp 1024: 123
|
PARAM - - udp 1024: 123
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles OSPF multicast traffic
|
# This macro handles OSPF multicast traffic
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - 89 # OSPF
|
PARAM - - 89 # OSPF
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles OpenVPN traffic.
|
# This macro handles OpenVPN traffic.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - udp 1194
|
PARAM - - udp 1194
|
||||||
|
@@ -6,7 +6,9 @@
|
|||||||
# This macro handles PCAnywere (tm)
|
# This macro handles PCAnywere (tm)
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - udp 5632
|
PARAM - - udp 5632
|
||||||
PARAM - - tcp 5631
|
PARAM - - tcp 5631
|
||||||
|
@@ -7,6 +7,8 @@
|
|||||||
# see macro.POP3S.
|
# see macro.POP3S.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 110
|
PARAM - - tcp 110
|
||||||
|
@@ -7,6 +7,8 @@
|
|||||||
# see macro.POP3.
|
# see macro.POP3.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 995 # Secure POP3
|
PARAM - - tcp 995 # Secure POP3
|
||||||
|
@@ -7,13 +7,14 @@
|
|||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
?FORMAT 2
|
?FORMAT 2
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
###############################################################################
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - 47
|
PARAM - - 47
|
||||||
PARAM DEST SOURCE 47
|
PARAM DEST SOURCE 47
|
||||||
|
|
||||||
?if ( __CT_TARGET && ! $AUTOHELPERS && __PPTP_HELPER )
|
?if ( __CT_TARGET && ! $AUTOHELPERS && __PPTP_HELPER )
|
||||||
PARAM - - tcp 1723 ; helper=pptp
|
PARAM - - tcp 1723 { helper=pptp }
|
||||||
?else
|
?else
|
||||||
PARAM - - tcp 1723
|
PARAM - - tcp 1723
|
||||||
?endif
|
?endif
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles 'ping' requests.
|
# This macro handles 'ping' requests.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - icmp 8
|
PARAM - - icmp 8
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles connections to the PostgreSQL server.
|
# This macro handles connections to the PostgreSQL server.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 5432
|
PARAM - - tcp 5432
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles Line Printer protocol printing.
|
# This macro handles Line Printer protocol printing.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 515
|
PARAM - - tcp 515
|
||||||
|
@@ -7,6 +7,8 @@
|
|||||||
# management system.
|
# management system.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 8140
|
PARAM - - tcp 8140
|
||||||
|
@@ -6,6 +6,8 @@
|
|||||||
# This macro handles Microsoft RDP (Remote Desktop) traffic.
|
# This macro handles Microsoft RDP (Remote Desktop) traffic.
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
PARAM - - tcp 3389
|
PARAM - - tcp 3389
|
||||||
|
@@ -6,8 +6,9 @@
|
|||||||
# This macro handles RIP (Routing Information Protocol) - bidirectional
|
# This macro handles RIP (Routing Information Protocol) - bidirectional
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
?FORMAT 2
|
||||||
# PORT(S) PORT(S) LIMIT GROUP
|
###############################################################################
|
||||||
PARAM - - udp 520
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
||||||
PARAM DEST SOURCE udp 520
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
||||||
|
PARAM - - udp 520
|
||||||
|
PARAM DEST SOURCE udp 520
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user