Mangle
Home menu level: /ip firewall mangle
Description
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 and NAT. 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.
Property Description
action ( accept | add-dst-to-address-list | add-src-to-address-list | change-mss | change-tos |
change-ttl | jump | log | mark-connection | mark-packet | mark-routing | passthrough | return |
strip-ipv4-options ; default: accept ) - action to undertake if the packet matches the rule
• accept - accept the packet. No action, i.e., the packet is passed through and no more rules are
applied to it
• add-dst-to-address-list - add destination address of an IP packet to the address list specified by
address-list parameter
• add-src-to-address-list - add source address of an IP packet to the address list specified by
address-list parameter
• change-mss - change Maximum Segment Size field value of the packet to a value specified by
the new-mss parameter
• change-tos - change Type of Service field value of the packet to a value specified by the
new-tos parameter
• change-ttl - change Time to Live field value of the packet to a value specified by the new-ttl
parameter
• jump - jump to the chain specified by the value of the jump-target parameter
• log - each match with this action will add a message to the system log
• mark-connection - place a mark specified by the new-connection-mark parameter on the entire
connection that matches the rule
• mark-packet - place a mark specified by the new-packet-mark parameter on a packet that
matches the rule
• mark-routing - place a mark specified by the new-routing-mark parameter on a packet. This
kind of marks is used for policy routing purposes only
• passthrough - ignore this rule go on to the next one
• return - pass control back to the chain from where the jump took place
• strip-ipv4-options - strip IPv4 option fields from the IP packet
address-list ( name ) - specify the name of the address list to collect IP addresses from rules having
action=add-dst-to-address-list or action=add-src-to-address-list actions. These address lists could be
later used for packet matching
address-list-timeout ( time ; default: 00:00:00 ) - time interval after which the address will be
removed from the address list specified by address-list parameter. Used in conjunction with
Page 450 of 695
Copyright 1999-2007, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.