2006-11-03 23:56:50 +01:00
|
|
|
###############################################################################
|
|
|
|
#
|
2015-10-13 00:02:50 +02:00
|
|
|
# Shorewall - Sample shorewall.conf for two-interface
|
2009-04-18 03:59:53 +02:00
|
|
|
# configuration.
|
2014-07-06 22:44:34 +02:00
|
|
|
# Copyright (C) 2006-2014 by the Shorewall Team
|
2006-11-03 23:56:50 +01:00
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2.1 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# See the file README.txt for further details.
|
2006-12-20 18:22:23 +01:00
|
|
|
#
|
|
|
|
# For information about the settings in this file, type "man shorewall.conf"
|
|
|
|
#
|
2012-04-24 23:52:57 +02:00
|
|
|
# The manpage is also online at
|
2007-11-29 18:03:23 +01:00
|
|
|
# http://shorewall.net/manpages/shorewall.conf.html
|
2009-04-18 03:59:53 +02:00
|
|
|
#
|
2006-11-03 23:56:50 +01:00
|
|
|
###############################################################################
|
|
|
|
# S T A R T U P E N A B L E D
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
STARTUP_ENABLED=No
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# V E R B O S I T Y
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
VERBOSITY=1
|
|
|
|
|
2016-03-02 17:32:49 +01:00
|
|
|
###############################################################################
|
|
|
|
# P A G E R
|
|
|
|
###############################################################################
|
|
|
|
|
2016-03-02 22:04:47 +01:00
|
|
|
PAGER=
|
2016-03-02 17:32:49 +01:00
|
|
|
|
2007-07-03 22:32:01 +02:00
|
|
|
###############################################################################
|
2011-05-28 21:38:12 +02:00
|
|
|
# L O G G I N G
|
2007-07-03 22:32:01 +02:00
|
|
|
###############################################################################
|
|
|
|
|
2013-02-12 16:47:02 +01:00
|
|
|
BLACKLIST_LOG_LEVEL=
|
2006-11-03 23:56:50 +01:00
|
|
|
|
2013-01-24 17:33:59 +01:00
|
|
|
INVALID_LOG_LEVEL=
|
|
|
|
|
2014-09-25 00:26:13 +02:00
|
|
|
LOG_BACKEND=
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
LOG_MARTIANS=Yes
|
2007-12-05 19:52:04 +01:00
|
|
|
|
2009-10-03 01:10:14 +02:00
|
|
|
LOG_VERBOSITY=2
|
2007-12-05 19:52:04 +01:00
|
|
|
|
2011-05-29 04:12:34 +02:00
|
|
|
LOGALLNEW=
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
LOGFILE=/var/log/messages
|
|
|
|
|
2006-11-03 23:56:50 +01:00
|
|
|
LOGFORMAT="Shorewall:%s:%s:"
|
|
|
|
|
|
|
|
LOGTAGONLY=No
|
|
|
|
|
2010-07-27 15:44:10 +02:00
|
|
|
LOGLIMIT=
|
2006-11-03 23:56:50 +01:00
|
|
|
|
|
|
|
MACLIST_LOG_LEVEL=info
|
|
|
|
|
2011-12-06 02:45:09 +01:00
|
|
|
RELATED_LOG_LEVEL=
|
|
|
|
|
2012-07-15 19:05:32 +02:00
|
|
|
RPFILTER_LOG_LEVEL=info
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
SFILTER_LOG_LEVEL=info
|
2006-11-03 23:56:50 +01:00
|
|
|
|
|
|
|
SMURF_LOG_LEVEL=info
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
STARTUP_LOG=/var/log/shorewall-init.log
|
|
|
|
|
|
|
|
TCP_FLAGS_LOG_LEVEL=info
|
2006-11-03 23:56:50 +01:00
|
|
|
|
2013-01-25 00:42:01 +01:00
|
|
|
UNTRACKED_LOG_LEVEL=
|
|
|
|
|
2006-11-03 23:56:50 +01:00
|
|
|
###############################################################################
|
|
|
|
# L O C A T I O N O F F I L E S A N D D I R E C T O R I E S
|
|
|
|
###############################################################################
|
|
|
|
|
2013-01-04 18:17:57 +01:00
|
|
|
ARPTABLES=
|
|
|
|
|
2012-04-01 19:47:24 +02:00
|
|
|
CONFIG_PATH=${CONFDIR}/shorewall:${SHAREDIR}/shorewall
|
2011-05-28 21:38:12 +02:00
|
|
|
|
2012-05-25 16:05:38 +02:00
|
|
|
GEOIPDIR=/usr/share/xt_geoip/LE
|
2012-05-20 17:59:59 +02:00
|
|
|
|
2006-11-03 23:56:50 +01:00
|
|
|
IPTABLES=
|
|
|
|
|
2009-05-21 01:29:23 +02:00
|
|
|
IP=
|
|
|
|
|
|
|
|
IPSET=
|
|
|
|
|
2012-04-16 16:21:06 +02:00
|
|
|
LOCKFILE=
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
MODULESDIR=
|
|
|
|
|
2012-07-28 20:21:16 +02:00
|
|
|
NFACCT=
|
|
|
|
|
2010-07-05 22:11:52 +02:00
|
|
|
PERL=/usr/bin/perl
|
|
|
|
|
2006-11-03 23:56:50 +01:00
|
|
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
RESTOREFILE=restore
|
|
|
|
|
2006-11-03 23:56:50 +01:00
|
|
|
SHOREWALL_SHELL=/bin/sh
|
|
|
|
|
2009-02-18 16:16:40 +01:00
|
|
|
SUBSYSLOCK=
|
2006-11-03 23:56:50 +01:00
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
TC=
|
2007-07-03 22:32:01 +02:00
|
|
|
|
2006-11-03 23:56:50 +01:00
|
|
|
###############################################################################
|
|
|
|
# D E F A U L T A C T I O N S / M A C R O S
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
ACCEPT_DEFAULT="none"
|
2011-05-28 21:38:12 +02:00
|
|
|
DROP_DEFAULT="Drop"
|
2007-12-10 22:18:54 +01:00
|
|
|
NFQUEUE_DEFAULT="none"
|
2011-05-28 21:38:12 +02:00
|
|
|
QUEUE_DEFAULT="none"
|
|
|
|
REJECT_DEFAULT="Reject"
|
2006-11-03 23:56:50 +01:00
|
|
|
|
|
|
|
###############################################################################
|
2007-07-03 22:32:01 +02:00
|
|
|
# R S H / R C P C O M M A N D S
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
RCP_COMMAND='scp ${files} ${root}@${system}:${destination}'
|
2011-05-28 21:38:12 +02:00
|
|
|
RSH_COMMAND='ssh ${root}@${system} ${command}'
|
2007-07-03 22:32:01 +02:00
|
|
|
|
|
|
|
###############################################################################
|
2006-11-03 23:56:50 +01:00
|
|
|
# F I R E W A L L O P T I O N S
|
|
|
|
###############################################################################
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
ACCOUNTING=Yes
|
|
|
|
|
|
|
|
ACCOUNTING_TABLE=filter
|
2006-11-03 23:56:50 +01:00
|
|
|
|
2010-02-02 17:16:41 +01:00
|
|
|
ADD_IP_ALIASES=No
|
2006-11-03 23:56:50 +01:00
|
|
|
|
|
|
|
ADD_SNAT_ALIASES=No
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
ADMINISABSENTMINDED=Yes
|
2006-11-03 23:56:50 +01:00
|
|
|
|
2012-08-02 20:06:41 +02:00
|
|
|
AUTOCOMMENT=Yes
|
|
|
|
|
2012-08-12 16:25:11 +02:00
|
|
|
AUTOHELPERS=Yes
|
|
|
|
|
2016-05-06 17:46:11 +02:00
|
|
|
AUTOMAKE=Yes
|
2006-11-03 23:56:50 +01:00
|
|
|
|
2016-10-03 00:14:31 +02:00
|
|
|
BASIC_FILTERS=No
|
|
|
|
|
2013-01-30 17:00:47 +01:00
|
|
|
BLACKLIST="NEW,INVALID,UNTRACKED"
|
2011-05-28 21:38:12 +02:00
|
|
|
|
2013-04-21 16:30:31 +02:00
|
|
|
CHAIN_SCRIPTS=No
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
CLAMPMSS=Yes
|
2010-01-21 19:38:32 +01:00
|
|
|
|
2006-11-03 23:56:50 +01:00
|
|
|
CLEAR_TC=Yes
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
COMPLETE=No
|
2006-11-03 23:56:50 +01:00
|
|
|
|
2013-01-13 22:23:38 +01:00
|
|
|
DEFER_DNS_RESOLUTION=Yes
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
DISABLE_IPV6=No
|
2006-11-03 23:56:50 +01:00
|
|
|
|
2016-02-20 02:42:54 +01:00
|
|
|
DOCKER=No
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
DELETE_THEN_ADD=Yes
|
2006-11-03 23:56:50 +01:00
|
|
|
|
|
|
|
DETECT_DNAT_IPADDRS=No
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
DONT_LOAD=
|
2006-11-03 23:56:50 +01:00
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
DYNAMIC_BLACKLIST=Yes
|
2006-11-03 23:56:50 +01:00
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
EXPAND_POLICIES=Yes
|
2006-11-03 23:56:50 +01:00
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
EXPORTMODULES=Yes
|
2006-11-03 23:56:50 +01:00
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
FASTACCEPT=No
|
2006-11-03 23:56:50 +01:00
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
FORWARD_CLEAR_MARK=
|
2006-11-03 23:56:50 +01:00
|
|
|
|
2012-08-03 19:53:20 +02:00
|
|
|
HELPERS=
|
|
|
|
|
2016-10-03 00:14:31 +02:00
|
|
|
IGNOREUNKNOWNVARIABLES=No
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
IMPLICIT_CONTINUE=No
|
2006-11-03 23:56:50 +01:00
|
|
|
|
2013-12-14 22:35:01 +01:00
|
|
|
INLINE_MATCHES=Yes
|
|
|
|
|
2012-03-18 21:36:23 +01:00
|
|
|
IPSET_WARNINGS=Yes
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
IP_FORWARDING=On
|
2006-11-03 23:56:50 +01:00
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
KEEP_RT_TABLES=No
|
2006-11-03 23:56:50 +01:00
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
LOAD_HELPERS_ONLY=Yes
|
2006-11-03 23:56:50 +01:00
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
MACLIST_TABLE=filter
|
2006-11-03 23:56:50 +01:00
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
MACLIST_TTL=
|
2006-11-03 23:56:50 +01:00
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
MANGLE_ENABLED=Yes
|
2007-02-09 19:10:52 +01:00
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
MAPOLDACTIONS=No
|
2007-07-20 17:26:23 +02:00
|
|
|
|
2016-04-01 17:57:08 +02:00
|
|
|
MINIUPNPD=No
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
MARK_IN_FORWARD_CHAIN=No
|
2007-11-29 18:03:23 +01:00
|
|
|
|
2015-02-06 21:56:35 +01:00
|
|
|
MODULE_SUFFIX="ko ko.xz"
|
2007-11-29 18:03:23 +01:00
|
|
|
|
|
|
|
MULTICAST=No
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
MUTEX_TIMEOUT=60
|
2009-05-21 01:29:23 +02:00
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
NULL_ROUTE_RFC1918=No
|
2009-05-21 01:29:23 +02:00
|
|
|
|
2013-07-29 19:08:35 +02:00
|
|
|
OPTIMIZE=All
|
2009-03-31 19:31:23 +02:00
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
OPTIMIZE_ACCOUNTING=No
|
2009-04-20 22:26:47 +02:00
|
|
|
|
2013-09-01 18:14:10 +02:00
|
|
|
REJECT_ACTION=
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
REQUIRE_INTERFACE=No
|
2009-10-20 22:24:17 +02:00
|
|
|
|
2015-10-12 20:45:58 +02:00
|
|
|
RESTART=restart
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
RESTORE_DEFAULT_ROUTE=Yes
|
2009-11-10 23:12:55 +01:00
|
|
|
|
2012-10-11 16:34:57 +02:00
|
|
|
RESTORE_ROUTEMARKS=Yes
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
RETAIN_ALIASES=No
|
2010-01-17 17:50:32 +01:00
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
ROUTE_FILTER=No
|
2010-01-17 17:50:32 +01:00
|
|
|
|
2013-01-04 18:17:57 +01:00
|
|
|
SAVE_ARPTABLES=No
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
SAVE_IPSETS=No
|
2010-01-17 17:50:32 +01:00
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
TC_ENABLED=Internal
|
2010-01-21 18:58:04 +01:00
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
TC_EXPERT=No
|
2010-06-23 21:52:54 +02:00
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
TC_PRIOMAP="2 3 3 3 2 3 1 1 2 2 2 2 2 2 2 2"
|
2010-07-05 00:58:37 +02:00
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
TRACK_PROVIDERS=Yes
|
2010-08-01 17:36:56 +02:00
|
|
|
|
2013-07-24 16:22:51 +02:00
|
|
|
TRACK_RULES=No
|
|
|
|
|
2014-03-09 15:42:22 +01:00
|
|
|
USE_DEFAULT_RT=Yes
|
2011-01-22 17:13:17 +01:00
|
|
|
|
2011-12-21 01:03:56 +01:00
|
|
|
USE_PHYSICAL_NAMES=No
|
|
|
|
|
2013-03-24 18:56:38 +01:00
|
|
|
USE_RT_NAMES=No
|
|
|
|
|
2016-04-30 17:00:56 +02:00
|
|
|
VERBOSE_MESSAGES=Yes
|
|
|
|
|
2012-12-27 18:58:45 +01:00
|
|
|
WARNOLDCAPVERSION=Yes
|
|
|
|
|
2015-06-06 16:56:14 +02:00
|
|
|
WORKAROUNDS=No
|
|
|
|
|
2016-09-27 01:04:26 +02:00
|
|
|
ZERO_MARKS=No
|
|
|
|
|
2014-04-12 05:44:15 +02:00
|
|
|
ZONE2ZONE=-
|
2011-05-23 02:42:50 +02:00
|
|
|
|
2006-11-03 23:56:50 +01:00
|
|
|
###############################################################################
|
|
|
|
# P A C K E T D I S P O S I T I O N
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
BLACKLIST_DISPOSITION=DROP
|
|
|
|
|
2013-01-24 17:33:59 +01:00
|
|
|
INVALID_DISPOSITION=CONTINUE
|
|
|
|
|
2006-11-03 23:56:50 +01:00
|
|
|
MACLIST_DISPOSITION=REJECT
|
|
|
|
|
2011-12-06 02:45:09 +01:00
|
|
|
RELATED_DISPOSITION=ACCEPT
|
|
|
|
|
2012-07-15 19:05:32 +02:00
|
|
|
RPFILTER_DISPOSITION=DROP
|
|
|
|
|
2011-05-23 02:42:50 +02:00
|
|
|
SMURF_DISPOSITION=DROP
|
|
|
|
|
2011-05-28 21:38:12 +02:00
|
|
|
SFILTER_DISPOSITION=DROP
|
|
|
|
|
|
|
|
TCP_FLAGS_DISPOSITION=DROP
|
|
|
|
|
2013-01-25 00:42:01 +01:00
|
|
|
UNTRACKED_DISPOSITION=CONTINUE
|
|
|
|
|
2011-11-20 00:29:07 +01:00
|
|
|
################################################################################
|
|
|
|
# P A C K E T M A R K L A Y O U T
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
TC_BITS=
|
|
|
|
|
|
|
|
PROVIDER_BITS=
|
|
|
|
|
|
|
|
PROVIDER_OFFSET=
|
|
|
|
|
|
|
|
MASK_BITS=
|
|
|
|
|
|
|
|
ZONE_BITS=0
|
|
|
|
|
2009-08-05 16:59:32 +02:00
|
|
|
#LAST LINE -- DO NOT REMOVE
|