INPUT:
INPUT[0]="ACCEPT tcp 25,80,443,22 0.0.0.0/0=>0.0.0.0/0" INPUT[1]="DROP ALL 0.0.0.0/0=>0.0.0.0/0"This will accept only http, https, smtp (mail transfer) and ssh access to the firewall itself. Any other packet originating from the zone destined to the firewall itself will be discarded.
FORWARD:
OUTPUT[0]="ACCEPT tcp 22 0.0.0.0/0=>0.0.0.0/0" OUTPUT[1]="REJECT ALL 0.0.0.0/0=>0.0.0.0/0"This will allow the firewall only to initiate ssh communication to machines located within the zone. All other communication initiated by the firewall to machines in this zone is prohibited, and packets are blocked.
FORWARD:
FORWARD[0]="ALL ACCEPT tcp 22 0.0.0.0/0=>0.0.0.0/0" FORWARD[1]="DROP ALL 0.0.0.0/0=>0.0.0.0/0"Machines located in other zones are only allowed to initiate ssh communication to machines located in this zone. Any other communication initiated by machines in zones different from this zone to machines in the present zone are silently dropped.
The first argument specifies the response to the connection
attempt. The 2. argument serves as conditions of the rule. A special
'tcp-reset' can be used, only if the protocol is specified as tcp.
REPLY_AUTH="EXT tcp-reset tcp auth 0.0.0.0/0=>0.0.0.0/0"This example specifies that queries to the auth daemon should be responded by
tcp-reset. Many services on the
Internet makes an auth request on hosts that makes use of the
services. The first line speeds this process up by resetting the
connection, instead of silently dropping packets.
<limit>, as given below.
The <rate> and <policy> specifies the maximum average
matching rate, and the initial packets to match. The <zone>
specifies the source zone for packets that can be matched by this
rule. If the source zone equals that zone for which the rule is
specified, then the rule is applied for requests to the firewall
itself.
LIMIT_PING="EXT DROP 1/second 3 icmp echo-request \ 0.0.0.0/0=>0.0.0.0/0"This example will drop ping's arriving faster than one per second, with a maximum of three.
Anders Peter Fugmann 2011-03-20