2006-11-03 23:56:50 +01:00
|
|
|
###############################################################################
|
|
|
|
#
|
2009-04-18 03:59:53 +02:00
|
|
|
# Shorewall version 4.0 - Sample shorewall.conf for two-interface
|
|
|
|
# configuration.
|
2007-07-03 22:32:01 +02:00
|
|
|
# Copyright (C) 2006,2007 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"
|
|
|
|
#
|
2007-11-29 18:03:23 +01:00
|
|
|
# The manpage is also online at
|
|
|
|
# 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
|
|
|
|
|
2007-07-03 22:32:01 +02:00
|
|
|
###############################################################################
|
|
|
|
# C O M P I L E R
|
|
|
|
# (setting this to 'perl' requires installation of Shorewall-perl)
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
SHOREWALL_COMPILER=
|
|
|
|
|
2006-11-03 23:56:50 +01:00
|
|
|
###############################################################################
|
|
|
|
# L O G G I N G
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
LOGFILE=/var/log/messages
|
|
|
|
|
2007-12-05 19:52:04 +01:00
|
|
|
STARTUP_LOG=
|
|
|
|
|
|
|
|
LOG_VERBOSITY=
|
|
|
|
|
2006-11-03 23:56:50 +01:00
|
|
|
LOGFORMAT="Shorewall:%s:%s:"
|
|
|
|
|
|
|
|
LOGTAGONLY=No
|
|
|
|
|
|
|
|
LOGRATE=
|
|
|
|
|
2006-12-20 18:22:23 +01:00
|
|
|
LOGBURST=
|
2006-11-03 23:56:50 +01:00
|
|
|
|
|
|
|
LOGALLNEW=
|
|
|
|
|
|
|
|
BLACKLIST_LOGLEVEL=
|
|
|
|
|
|
|
|
MACLIST_LOG_LEVEL=info
|
|
|
|
|
|
|
|
TCP_FLAGS_LOG_LEVEL=info
|
|
|
|
|
|
|
|
RFC1918_LOG_LEVEL=info
|
|
|
|
|
|
|
|
SMURF_LOG_LEVEL=info
|
|
|
|
|
2008-03-01 04:03:21 +01:00
|
|
|
LOG_MARTIANS=Yes
|
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
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
IPTABLES=
|
|
|
|
|
2009-05-21 01:29:23 +02:00
|
|
|
IP=
|
|
|
|
|
|
|
|
TC=
|
|
|
|
|
|
|
|
IPSET=
|
|
|
|
|
2006-11-03 23:56:50 +01:00
|
|
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
|
|
|
|
|
|
|
|
SHOREWALL_SHELL=/bin/sh
|
|
|
|
|
2009-02-18 16:16:40 +01:00
|
|
|
SUBSYSLOCK=
|
2006-11-03 23:56:50 +01:00
|
|
|
|
|
|
|
MODULESDIR=
|
|
|
|
|
|
|
|
CONFIG_PATH=/etc/shorewall:/usr/share/shorewall
|
|
|
|
|
|
|
|
RESTOREFILE=
|
|
|
|
|
|
|
|
IPSECFILE=zones
|
|
|
|
|
2007-07-03 22:32:01 +02:00
|
|
|
LOCKFILE=
|
|
|
|
|
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
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
DROP_DEFAULT="Drop"
|
|
|
|
REJECT_DEFAULT="Reject"
|
|
|
|
ACCEPT_DEFAULT="none"
|
|
|
|
QUEUE_DEFAULT="none"
|
2007-12-10 22:18:54 +01:00
|
|
|
NFQUEUE_DEFAULT="none"
|
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
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
RSH_COMMAND='ssh ${root}@${system} ${command}'
|
|
|
|
RCP_COMMAND='scp ${files} ${root}@${system}:${destination}'
|
|
|
|
|
|
|
|
###############################################################################
|
2006-11-03 23:56:50 +01:00
|
|
|
# F I R E W A L L O P T I O N S
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
IP_FORWARDING=On
|
|
|
|
|
|
|
|
ADD_IP_ALIASES=Yes
|
|
|
|
|
|
|
|
ADD_SNAT_ALIASES=No
|
|
|
|
|
|
|
|
RETAIN_ALIASES=No
|
|
|
|
|
|
|
|
TC_ENABLED=Internal
|
|
|
|
|
|
|
|
TC_EXPERT=No
|
|
|
|
|
|
|
|
CLEAR_TC=Yes
|
|
|
|
|
|
|
|
MARK_IN_FORWARD_CHAIN=No
|
|
|
|
|
2009-03-02 21:01:07 +01:00
|
|
|
CLAMPMSS=Yes
|
2006-11-03 23:56:50 +01:00
|
|
|
|
|
|
|
ROUTE_FILTER=No
|
|
|
|
|
|
|
|
DETECT_DNAT_IPADDRS=No
|
|
|
|
|
|
|
|
MUTEX_TIMEOUT=60
|
|
|
|
|
|
|
|
ADMINISABSENTMINDED=Yes
|
|
|
|
|
|
|
|
BLACKLISTNEWONLY=Yes
|
|
|
|
|
|
|
|
DELAYBLACKLISTLOAD=No
|
|
|
|
|
|
|
|
MODULE_SUFFIX=
|
|
|
|
|
|
|
|
DISABLE_IPV6=Yes
|
|
|
|
|
|
|
|
BRIDGING=No
|
|
|
|
|
|
|
|
DYNAMIC_ZONES=No
|
|
|
|
|
|
|
|
PKTTYPE=Yes
|
|
|
|
|
|
|
|
RFC1918_STRICT=No
|
|
|
|
|
|
|
|
MACLIST_TABLE=filter
|
|
|
|
|
|
|
|
MACLIST_TTL=
|
|
|
|
|
|
|
|
SAVE_IPSETS=No
|
|
|
|
|
|
|
|
MAPOLDACTIONS=No
|
|
|
|
|
|
|
|
FASTACCEPT=No
|
|
|
|
|
2008-02-24 17:33:46 +01:00
|
|
|
IMPLICIT_CONTINUE=No
|
2006-11-03 23:56:50 +01:00
|
|
|
|
|
|
|
HIGH_ROUTE_MARKS=No
|
|
|
|
|
|
|
|
USE_ACTIONS=Yes
|
|
|
|
|
|
|
|
OPTIMIZE=1
|
|
|
|
|
2007-02-09 19:10:52 +01:00
|
|
|
EXPORTPARAMS=No
|
|
|
|
|
2009-04-18 04:02:35 +02:00
|
|
|
EXPAND_POLICIES=Yes
|
2007-07-20 17:26:23 +02:00
|
|
|
|
2007-11-29 18:03:23 +01:00
|
|
|
KEEP_RT_TABLES=No
|
|
|
|
|
|
|
|
DELETE_THEN_ADD=Yes
|
|
|
|
|
|
|
|
MULTICAST=No
|
|
|
|
|
|
|
|
DONT_LOAD=
|
|
|
|
|
2008-02-23 19:48:00 +01:00
|
|
|
AUTO_COMMENT=Yes
|
|
|
|
|
2008-03-24 23:49:53 +01:00
|
|
|
MANGLE_ENABLED=Yes
|
|
|
|
|
2009-05-21 01:29:23 +02:00
|
|
|
USE_DEFAULT_RT=No
|
|
|
|
|
|
|
|
RESTORE_DEFAULT_ROUTE=Yes
|
|
|
|
|
2009-03-31 19:31:23 +02:00
|
|
|
AUTOMAKE=No
|
|
|
|
|
2009-04-20 22:26:47 +02:00
|
|
|
WIDE_TC_MARKS=Yes
|
|
|
|
|
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
|
|
|
|
|
|
|
|
MACLIST_DISPOSITION=REJECT
|
|
|
|
|
|
|
|
TCP_FLAGS_DISPOSITION=DROP
|
|
|
|
|
|
|
|
#LAST LINE -- DO NOT REMOVE
|