2009-04-17 20:30:30 +02:00
|
|
|
#
|
2015-10-13 00:02:50 +02:00
|
|
|
# Shorewall - Sample Rules File for one-interface configuration.
|
2014-07-06 22:44:34 +02:00
|
|
|
# Copyright (C) 2006-2014 by the Shorewall Team
|
2006-03-17 03:07:39 +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.
|
2007-02-23 19:51:55 +01:00
|
|
|
#------------------------------------------------------------------------------------------------------------
|
|
|
|
# For information on entries in this file, type "man shorewall-rules"
|
2012-12-13 18:26:09 +01:00
|
|
|
######################################################################################################################################################################################################
|
|
|
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGINAL RATE USER/ MARK CONNLIMIT TIME HEADERS SWITCH HELPER
|
2005-09-21 18:19:38 +02:00
|
|
|
# PORT PORT(S) DEST LIMIT GROUP
|
2014-04-19 16:48:42 +02:00
|
|
|
?SECTION ALL
|
|
|
|
?SECTION ESTABLISHED
|
|
|
|
?SECTION RELATED
|
|
|
|
?SECTION INVALID
|
|
|
|
?SECTION UNTRACKED
|
2013-11-24 16:58:02 +01:00
|
|
|
?SECTION NEW
|
2005-08-22 05:10:35 +02:00
|
|
|
|
2012-06-28 00:16:16 +02:00
|
|
|
# Drop packets in the INVALID state
|
|
|
|
|
|
|
|
Invalid(DROP) net $FW tcp
|
|
|
|
|
2008-05-17 02:15:26 +02:00
|
|
|
# Drop Ping from the "bad" net zone.. and prevent your log from being flooded..
|
2005-08-22 05:10:35 +02:00
|
|
|
|
2009-08-07 16:25:57 +02:00
|
|
|
Ping(DROP) net $FW
|
2005-08-22 05:10:35 +02:00
|
|
|
|
|
|
|
# Permit all ICMP traffic FROM the firewall TO the net zone
|
|
|
|
|
2005-09-21 18:19:38 +02:00
|
|
|
ACCEPT $FW net icmp
|