mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 22:30:58 +01:00
Add IPv6 'Universal' configuration
This commit is contained in:
parent
1765474fab
commit
375010d602
12
Samples6/Universal/interfaces
Normal file
12
Samples6/Universal/interfaces
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#
|
||||||
|
# Shorewall version 4 - Interfaces File
|
||||||
|
#
|
||||||
|
# For information about entries in this file, type "man shorewall-interfaces"
|
||||||
|
#
|
||||||
|
# The manpage is also online at
|
||||||
|
# http://www.shorewall.net/manpages/shorewall-interfaces.html
|
||||||
|
#
|
||||||
|
###############################################################################
|
||||||
|
#ZONE INTERFACE BROADCAST OPTIONS
|
||||||
|
world all - dhcp,physical=+,routeback
|
||||||
|
|
14
Samples6/Universal/policy
Normal file
14
Samples6/Universal/policy
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#
|
||||||
|
# Shorewall version 4 - Policy File
|
||||||
|
#
|
||||||
|
# For information about entries in this file, type "man shorewall-policy"
|
||||||
|
#
|
||||||
|
# The manpage is also online at
|
||||||
|
# http://www.shorewall.net/manpages/shorewall-policy.html
|
||||||
|
#
|
||||||
|
###############################################################################
|
||||||
|
#SOURCE DEST POLICY LOG LIMIT: CONNLIMIT:
|
||||||
|
# LEVEL BURST MASK
|
||||||
|
fw world ACCEPT
|
||||||
|
world all DROP
|
||||||
|
|
17
Samples6/Universal/rules
Normal file
17
Samples6/Universal/rules
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#
|
||||||
|
# Shorewall version 4 - Rules File
|
||||||
|
#
|
||||||
|
# For information on the settings in this file, type "man shorewall-rules"
|
||||||
|
#
|
||||||
|
# The manpage is also online at
|
||||||
|
# http://www.shorewall.net/manpages/shorewall-rules.html
|
||||||
|
#
|
||||||
|
####################################################################################################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGINAL RATE USER/ MARK CONNLIMIT TIME
|
||||||
|
# PORT PORT(S) DEST LIMIT GROUP
|
||||||
|
#SECTION ESTABLISHED
|
||||||
|
#SECTION RELATED
|
||||||
|
SECTION NEW
|
||||||
|
|
||||||
|
SSH(ACCEPT) world $FW
|
||||||
|
Ping(ACCEPT) world $FW
|
164
Samples6/Universal/shorewall6.conf
Normal file
164
Samples6/Universal/shorewall6.conf
Normal file
@ -0,0 +1,164 @@
|
|||||||
|
###############################################################################
|
||||||
|
#
|
||||||
|
# Shorewall Version 4 -- /etc/shorewall6/shorewall6.conf
|
||||||
|
#
|
||||||
|
# For information about the settings in this file, type "man shorewall6.conf"
|
||||||
|
#
|
||||||
|
# Manpage also online at
|
||||||
|
# http://www.shorewall.net/manpages6/shorewall6.conf.html
|
||||||
|
###############################################################################
|
||||||
|
# S T A R T U P E N A B L E D
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
STARTUP_ENABLED=Yes
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# V E R B O S I T Y
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
VERBOSITY=1
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# L O G G I N G
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
LOGFILE=/var/log/messages
|
||||||
|
|
||||||
|
STARTUP_LOG=/var/log/shorewall6-init.log
|
||||||
|
|
||||||
|
LOG_VERBOSITY=2
|
||||||
|
|
||||||
|
LOGFORMAT="Shorewall:%s:%s:"
|
||||||
|
|
||||||
|
LOGTAGONLY=No
|
||||||
|
|
||||||
|
LOGLIMIT=
|
||||||
|
|
||||||
|
LOGALLNEW=
|
||||||
|
|
||||||
|
BLACKLIST_LOGLEVEL=
|
||||||
|
|
||||||
|
TCP_FLAGS_LOG_LEVEL=info
|
||||||
|
|
||||||
|
SMURF_LOG_LEVEL=info
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# 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
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
IP6TABLES=
|
||||||
|
|
||||||
|
IP=
|
||||||
|
|
||||||
|
TC=
|
||||||
|
|
||||||
|
IPSET=
|
||||||
|
|
||||||
|
PERL=/usr/bin/perl
|
||||||
|
|
||||||
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
|
||||||
|
|
||||||
|
SHOREWALL_SHELL=/bin/sh
|
||||||
|
|
||||||
|
SUBSYSLOCK=/var/lock/subsys/shorewall
|
||||||
|
|
||||||
|
MODULESDIR=
|
||||||
|
|
||||||
|
CONFIG_PATH=/usr/share/shorewall6:/usr/share/shorewall
|
||||||
|
|
||||||
|
RESTOREFILE=
|
||||||
|
|
||||||
|
LOCKFILE=
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# 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"
|
||||||
|
NFQUEUE_DEFAULT="none"
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# 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}'
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# F I R E W A L L O P T I O N S
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
IP_FORWARDING=Off
|
||||||
|
|
||||||
|
TC_ENABLED=No
|
||||||
|
|
||||||
|
TC_EXPERT=No
|
||||||
|
|
||||||
|
TC_PRIOMAP="2 3 3 3 2 3 1 1 2 2 2 2 2 2 2 2"
|
||||||
|
|
||||||
|
CLEAR_TC=No
|
||||||
|
|
||||||
|
MARK_IN_FORWARD_CHAIN=No
|
||||||
|
|
||||||
|
CLAMPMSS=No
|
||||||
|
|
||||||
|
MUTEX_TIMEOUT=60
|
||||||
|
|
||||||
|
ADMINISABSENTMINDED=Yes
|
||||||
|
|
||||||
|
BLACKLISTNEWONLY=Yes
|
||||||
|
|
||||||
|
MODULE_SUFFIX=ko
|
||||||
|
|
||||||
|
FASTACCEPT=No
|
||||||
|
|
||||||
|
IMPLICIT_CONTINUE=No
|
||||||
|
|
||||||
|
HIGH_ROUTE_MARKS=No
|
||||||
|
|
||||||
|
OPTIMIZE=15
|
||||||
|
|
||||||
|
EXPORTPARAMS=Yes
|
||||||
|
|
||||||
|
EXPAND_POLICIES=Yes
|
||||||
|
|
||||||
|
KEEP_RT_TABLES=Yes
|
||||||
|
|
||||||
|
DELETE_THEN_ADD=Yes
|
||||||
|
|
||||||
|
DONT_LOAD=
|
||||||
|
|
||||||
|
AUTO_COMMENT=Yes
|
||||||
|
|
||||||
|
MANGLE_ENABLED=Yes
|
||||||
|
|
||||||
|
AUTOMAKE=No
|
||||||
|
|
||||||
|
WIDE_TC_MARKS=No
|
||||||
|
|
||||||
|
TRACK_PROVIDERS=No
|
||||||
|
|
||||||
|
ZONE2ZONE=2
|
||||||
|
|
||||||
|
ACCOUNTING=Yes
|
||||||
|
|
||||||
|
OPTIMIZE_ACCOUNTING=No
|
||||||
|
|
||||||
|
DYNAMIC_BLACKLIST=Yes
|
||||||
|
|
||||||
|
LOAD_HELPERS_ONLY=No
|
||||||
|
|
||||||
|
FORWARD_CLEAR_MARK=yes
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# P A C K E T D I S P O S I T I O N
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
BLACKLIST_DISPOSITION=DROP
|
||||||
|
|
||||||
|
TCP_FLAGS_DISPOSITION=DROP
|
||||||
|
|
||||||
|
#LAST LINE -- DO NOT REMOVE
|
14
Samples6/Universal/zones
Normal file
14
Samples6/Universal/zones
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#
|
||||||
|
# Shorewall version 4 - Zones File
|
||||||
|
#
|
||||||
|
# For information about this file, type "man shorewall-zones"
|
||||||
|
#
|
||||||
|
# The manpage is also online at
|
||||||
|
# http://www.shorewall.net/manpages/shorewall-zones.html
|
||||||
|
#
|
||||||
|
###############################################################################
|
||||||
|
#ZONE TYPE OPTIONS IN OUT
|
||||||
|
# OPTIONS OPTIONS
|
||||||
|
fw firewall
|
||||||
|
world ip
|
||||||
|
|
Loading…
Reference in New Issue
Block a user