Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Mangle is a kind of 'marker' that marks packets for future processing with special marks.

Many other
facilities in RouterOS make use of these marks, e.g. queue trees, NAT, routing. They identify a
packet based on its mark and process it accordingly. The mangle marks exist only within the router,
they are not transmitted across the network.
Additionally, the mangle facility is used to modify some fields in the IP header, like TOS (DSCP) and
TTL fields.

Properties
Property D
action (action name; Default: accept) Action to take if packet is matched by the rule

 accept - accept the packet.


 add-dst-to-address-li
by  address-list  paramet
 add-src-to-address-li
by  address-list  paramet
 change-dscp - change Diff
specified by the new-dscp pa
 change-mss - change Maxi
specified by the new-mss pa
 change-ttl - change Time
the new-ttl parameter
 clear-df - clear 'Do Not Fr
 fasttrack-connection -
 jump - jump to the user defin
target  parameter
 log - add a message to the
interface, src-mac, protocol,
packet is matched it is passe
 mark-connection - place
on the entire connection that
 mark-packet - place a mar
packet that matches the rule
 mark-routing - place a ma
packet. This kind of marks is
 passthrough - if packet is
rule (useful for statistics).
 return - pass control back
 route - forces packets to a
(prerouting chain only)
 set-priority - set priority
sent out through a link that is
enabled wireless interface). 
 sniff-pc - send a packet t
 sniff-tzsp - send packet
Wireshark). Set remote targe
port  parameters (Wireshar
 strip-ipv4-options - st
actually remove IPv4 options
matcher with ipv4-options=a

address-list (string; Default: ) Name of the address list to be used. Applicab


src-to-address-list

address-list-timeout (none-dynamic | none-static | time; Time interval after which the address will be r
Default: none-dynamic) list  parameter. Used in conjunction with  ad
address-list  actions

 Value of none-dynamic ( 0
reboot
 Value of none-static will
included in configuration exp

chain (name; Default: ) Specifies to which chain the rule will be added


defined chain, a new chain will be created.

comment (string; Default: ) Descriptive comment for the rule.

connection-bytes (integer-integer; Default: ) Matches packets only if a given amount of by


connection. 0 - means infinity, for example  co
matches if more than 2MB (upload and down
connection

connection-limit (integer,netmask; Default: ) Matches connections per address or address

connection-mark (no-mark | string; Default: ) Matches packets marked via mangle facility w


will match any unmarked connection.

connection-nat-state (srcnat | dstnat; Default: ) Can match connections that are srcnatted, ds


connections connection-nat-state is determine
tracking needs to use dst-nat to deliver this co
connection-nat-state=dstnat even if there are

connection-rate (Integer 0..4294967295; Default: ) Connection Rate is a firewall matcher that allo


the connection.  Read more >>

You might also like