firehol-classify(5)

NAME

firehol-classify - classify traffic for traffic shaping tools

SYNOPSIS

{ classify | classify46 } class [rule-params]

classify4 class [rule-params]

classify6 class [rule-params]

DESCRIPTION

The classify helper command puts matching traffic into the specified traffic shaping class.

The class is a class as used by iptables(8) and tc(8) (e.g. MAJOR:MINOR).

The rule-params define a set of rule parameters to match the traffic that is to be classified. See firehol-params(5) for more details.

Any classify commands will affect all traffic matched. They must be declared before the first router or interface.

EXAMPLES

     # Put all smtp traffic leaving via eth1 in class 1:1
     classify 1:1 outface eth1 proto tcp dport 25

SEE ALSO

•   firehol-params(5) - optional rule parameters

•   iptables(8) (http://ipset.netfilter.org/iptables.man.html) - administration tool for IPv4 firewalls

•   ip6tables(8) (http://ipset.netfilter.org/ip6tables.man.html) - administration tool for IPv6 firewalls

•   tc(8) - show / manipulate traffic control settings

•   FireHOL Website (http://firehol.org/)

•   FireHOL Online PDF Manual (http://firehol.org/firehol-manual.pdf)

•   FireHOL Online Documentation (http://firehol.org/documentation/)

•   Linux Advanced Routing & Traffic Control HOWTO (http://lartc.org/howto/) n the IPv6 firewall rules. > > Writing client46 is equivalent to writing both client and ensures > this subcommand is applied in both the IPv4 and IPv6 firewall rules; > it cannot be used as part an interface or router that is IPv4 or IPv6 > only. > > The default client inherits its behaviour from the enclosing > interface or router.

EXAMPLES

    client smtp accept
    client "smtp pop3" accept
    client smtp accept src 192.0.2.1
    client smtp accept log "mail packet" src 192.0.2.1

SEE ALSO

•   firehol(1) - FireHOL program

•   firehol.conf(5) - FireHOL configuration

•   firehol-modifiers(5) - ipv4/ipv6 selection

•   firehol-services(5) - services list

•   firehol-actions(5) - actions for rules

•   firehol-params(5) - optional rule parameters

•   firehol-server(5) - server subcommand

•   firehol-interface(5) - interface definition

•   firehol-router(5) - router definition

•   FireHOL Website (http://firehol.org/)

•   FireHOL Online PDF Manual (http://firehol.org/firehol-manual.pdf)

•   FireHOL Online Documentation (http://firehol.org/documentation/)

AUTHORS
FireHOL Team.