2002-05-01 00:42:57 +02:00
|
|
|
#
|
2007-07-03 22:32:01 +02:00
|
|
|
# Shorewall version 4.0 - Sample Policy File for two-interface configuration.
|
2006-03-17 03:07:39 +01:00
|
|
|
# Copyright (C) 2006 by the Shorewall Team
|
|
|
|
#
|
|
|
|
# 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.
|
2007-02-23 19:51:55 +01:00
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# For information about entries in this file, type "man shorewall-policy"
|
2006-03-17 03:07:39 +01:00
|
|
|
#
|
2005-09-21 18:50:49 +02:00
|
|
|
# See http://shorewall.net/Documentation.htm#Policy for additional information.
|
2002-05-01 00:42:57 +02:00
|
|
|
#
|
|
|
|
###############################################################################
|
2002-05-18 21:48:34 +02:00
|
|
|
#SOURCE DEST POLICY LOG LEVEL LIMIT:BURST
|
2006-02-23 23:51:58 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Note about policies and logging:
|
|
|
|
# This file contains an explicit policy for every combination of
|
|
|
|
# zones defined in this sample. This is solely for the purpose of
|
|
|
|
# providing more specific messages in the logs. This is not
|
|
|
|
# necessary for correct operation of the firewall, but greatly
|
|
|
|
# assists in diagnosing problems.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Policies for traffic originating from the local LAN (loc)
|
|
|
|
#
|
|
|
|
# If you want to force clients to access the Internet via a proxy server
|
2006-03-17 08:19:37 +01:00
|
|
|
# on your firewall, change the loc to net policy to REJECT info.
|
2002-05-01 00:42:57 +02:00
|
|
|
loc net ACCEPT
|
2006-02-23 23:51:58 +01:00
|
|
|
loc $FW REJECT info
|
|
|
|
loc all REJECT info
|
|
|
|
|
|
|
|
#
|
|
|
|
# Policies for traffic originating from the firewall ($FW)
|
|
|
|
#
|
|
|
|
# If you want open access to the Internet from your firewall, change the
|
2006-03-17 08:19:37 +01:00
|
|
|
# $FW to net policy to ACCEPT and remove the 'info' LOG LEVEL.
|
2006-03-03 01:03:44 +01:00
|
|
|
# This may be useful if you run a proxy server on the firewall.
|
2006-02-23 23:51:58 +01:00
|
|
|
$FW net REJECT info
|
|
|
|
$FW loc REJECT info
|
|
|
|
$FW all REJECT info
|
|
|
|
|
|
|
|
#
|
|
|
|
# Policies for traffic originating from the Internet zone (net)
|
|
|
|
#
|
|
|
|
net $FW DROP info
|
|
|
|
net loc DROP info
|
2002-05-01 00:42:57 +02:00
|
|
|
net all DROP info
|
2006-02-23 23:51:58 +01:00
|
|
|
|
2003-10-06 22:20:34 +02:00
|
|
|
# THE FOLLOWING POLICY MUST BE LAST
|
2002-05-01 00:42:57 +02:00
|
|
|
all all REJECT info
|
2006-02-23 23:51:58 +01:00
|
|
|
|
2003-03-12 21:55:17 +01:00
|
|
|
#LAST LINE -- ADD YOUR ENTRIES ABOVE THIS LINE -- DO NOT REMOVE
|