2002-05-01 01:13:15 +02:00
|
|
|
#
|
2003-02-15 01:09:44 +01:00
|
|
|
# Shorewall version 1.4 - Traffic Control Rules File
|
2002-05-01 01:13:15 +02:00
|
|
|
#
|
|
|
|
# /etc/shorewall/tcrules
|
|
|
|
#
|
|
|
|
# Entries in this file cause packets to be marked as a means of
|
2002-08-05 00:55:17 +02:00
|
|
|
# classifying them for traffic control or policy routing.
|
2002-05-01 01:13:15 +02:00
|
|
|
#
|
2002-11-24 16:59:01 +01:00
|
|
|
# I M P O R T A N T ! ! ! !
|
|
|
|
#
|
|
|
|
# FOR ENTRIES IN THIS FILE TO HAVE ANY EFFECT, YOU MUST SET
|
|
|
|
# TC_ENABLED=Yes in /etc/shorewall/shorewall.conf
|
|
|
|
#
|
2002-05-01 01:13:15 +02:00
|
|
|
# Columns are:
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# MARK The mark value which is an
|
|
|
|
# integer in the range 1-255
|
|
|
|
#
|
2003-01-24 00:18:40 +01:00
|
|
|
# May optionally be followed by ":P" or ":F"
|
|
|
|
# where ":P" indicates that marking should occur in
|
|
|
|
# the PREROUTING chain and ":F" indicates that marking
|
|
|
|
# should occur in the FORWARD chain. If neither
|
|
|
|
# ":P" nor ":F" follow the mark value then the chain is
|
|
|
|
# determined by the setting of MARK_IN_FORWARD_CHAIN in
|
|
|
|
# /etc/shorewall/shorewall.conf.
|
|
|
|
#
|
2002-05-01 01:13:15 +02:00
|
|
|
# SOURCE Source of the packet. A comma-separated list of
|
2003-02-23 15:10:37 +01:00
|
|
|
# interface names, IP addresses, MAC addresses
|
2002-05-01 01:13:15 +02:00
|
|
|
# and/or subnets. Use $FW if the packet originates on
|
2003-01-24 00:18:40 +01:00
|
|
|
# the firewall in which case the MARK column may NOT
|
2003-02-23 15:10:37 +01:00
|
|
|
# specify either ":P" or ":F" (marking always occurs
|
2003-01-24 02:20:53 +01:00
|
|
|
# in the OUTPUT chain).
|
2002-05-01 01:13:15 +02:00
|
|
|
#
|
|
|
|
# MAC addresses must be prefixed with "~" and use
|
|
|
|
# "-" as a separator.
|
|
|
|
#
|
|
|
|
# Example: ~00-A0-C9-15-39-78
|
|
|
|
#
|
|
|
|
# DEST Destination of the packet. Comma separated list of
|
|
|
|
# IP addresses and/or subnets.
|
|
|
|
#
|
|
|
|
# PROTO Protocol - Must be "tcp", "udp", "icmp", a number,
|
|
|
|
# or "all".
|
|
|
|
#
|
|
|
|
# PORT(S) Destination Ports. A comma-separated list of Port
|
|
|
|
# names (from /etc/services), port numbers or port
|
|
|
|
# ranges; if the protocol is "icmp", this column is
|
|
|
|
# interpreted as the destination icmp-type(s).
|
|
|
|
#
|
|
|
|
# This column is ignored if PROTOCOL = all but must be
|
|
|
|
# entered if any of the following field is supplied.
|
|
|
|
# In that case, it is suggested that this field contain
|
|
|
|
# "-"
|
|
|
|
#
|
|
|
|
# CLIENT PORT(S) (Optional) Port(s) used by the client. If omitted,
|
|
|
|
# any source port is acceptable. Specified as a comma-
|
|
|
|
# separated list of port names, port numbers or port
|
|
|
|
# ranges.
|
2004-01-22 21:24:56 +01:00
|
|
|
#
|
|
|
|
# USER This column may only be non-empty if the SOURCE is
|
|
|
|
# the firewall itself.
|
|
|
|
#
|
|
|
|
# When this column is non-empty, the rule applies only
|
|
|
|
# if the program generating the output is running under
|
|
|
|
# the effective user and/or group.
|
|
|
|
#
|
|
|
|
# It may contain :
|
|
|
|
#
|
|
|
|
# [<user name or number>]:[<group name or number>]
|
|
|
|
#
|
|
|
|
# The colon is optionnal when specifying only a user.
|
|
|
|
# Examples : john: / john / :users / john:users
|
|
|
|
#
|
2002-05-01 01:13:15 +02:00
|
|
|
##############################################################################
|
2004-01-22 21:24:56 +01:00
|
|
|
#MARK SOURCE DEST PROTO PORT(S) CLIENT USER
|
2003-08-14 23:41:55 +02:00
|
|
|
# PORT(S)
|
2002-05-01 01:13:15 +02:00
|
|
|
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
|