User Manual for NOP1840 PEP-Box Server
Appendix A – Expressions for Shaping Rules (Premium Only)
Newtec proprietary
Version 1.0
Confidentiality :
Unrestricted
Page 92 / 96
11
Appendix A – Expressions for Shaping Rules
(Premium Only)
11.1 Syntax
expression=expression and expression
expression=expression && expression
expression=expression or expression
expression=expression || expression
expression=not expression
expression=!expression
expression=(expression)
expression=protocol
expression=field value
expression=protocol field value
expression=always
expression=never
Example
expression=dst host 10.1.1.1 and tos 1
expression=udp port 53
11.2 Protocol Fields
For matching of packets to rules, the shaper allows to use expressions which combine conditions logically
using "and", "or" or "not". The elementary conditions can match on a protocol or a protocol field with a
specific value or value range. Following is a list of all protocol fields:
capture
type
<
capturetype
>
arp operation <operation>
capture interface <interface>
arp src ether <mac>
ethernet dst ether <mac>
arp dst ether <mac>
ethernet src ether <mac>
arp src host <address>
ethernet unicast
arp src net <address>-<address>
ethernet unicast-this-host
arp src net <address> mask <netmask>
ethernet unicast-other-host
arp src net <address>/<bits>
ethernet multicast
arp dst host <address>
ethernet broadcast
arp dst net <address>-<address>
ethernet this-host
arp dst net <address> mask <netmask>
ethernet protocol <ethertype>
arp dst net <address>/<bits>
ip4 tos <tos>
ip4 dscp <dscp>
ip4 protocol <protocol>
ip4 src host <address>