#
# Shorewall version 4.0 - Sample Rules File for one-interface configuration.
# 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.
#------------------------------------------------------------------------------------------------------------
# For information on entries in this file, type "man shorewall-rules"
#
# For more information, see http://www.shorewall.net/Documentation.htm#Zones
#
#############################################################################################################
#ACTION		SOURCE		DEST		PROTO	DEST	SOURCE		ORIGINAL	RATE		USER/	MARK
#							PORT	PORT(S)		DEST		LIMIT		GROUP
#ACCEPT	        all	        all	   tcp	    ssh
Limit:info:SSHA,3,60   net               loc           tcp         22
Rfc1918(DROP)         net     all
# Reject Ping from the "bad" net zone.. and prevent your log from being flooded..
#Ping/REJECT	net		$FW
# Permit all ICMP traffic FROM the firewall TO the net zone
ACCEPT	        all		all            icmp
#ACCEPT		$FW		net		icmp
ACCEPT 		all	all  ospf
ACCEPT  $FW     all     tcp     http,https      -
ACCEPT  $FW     net     udp     domain,ntp      -
ACCEPT  $FW     net     tcp     ssh,smtp,domain        -       -       -       -
#SSH/ACCEPT      all	all   
DNS/ACCEPT      $FW             net
AllowICMPs/ACCEPT	all	all
REDIRECT        net     22      tcp     1022    -       -       -       -
#next are copied from old firewall
ACCEPT  loc     $FW     udp     snmp
#limit dns lookups
Limit:none:DNSA,6,60   net               $FW           udp         53
#ACCEPT net      $FW     udp     domain
ACCEPT  net     $FW     tcp     domain  -
# next 2 for iperf
#ACCEPT  $FW     net     tcp     5001
#ACCEPT  net     $FW     tcp     5001
## for oshkosh
DNAT    net:!192.168.0.0/16     loc:192.168.1.1 tcp     ssh,http        -       69.128.2.138       -       -
DNAT    net:!192.168.0.0/16     loc:192.168.1.1 tcp     ssh,http        -        24.123.94.102       -       -
## oshpbx
DNAT    net:!192.168.0.0/16     loc:192.168.1.15 tcp     ssh        -       69.128.2.139      -       -
#DNAT    net:!192.168.0.0/16     loc:192.168.1.15 udp     sip,5061        -       69.128.2.139       -       -

#DNAT    net:!192.168.0.0/16     loc:192.168.1.15 udp     sip,5061,iax        -    69.128.2.139       -       -
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
