Mangle
Mangle in RouterOS marks packets for advanced processing using special marks, enabling features like queue trees and NAT. It modifies IP header fields and operates through five predefined chains (PREROUTING, INPUT, OUTPUT, FORWARD, POSTROUTING) to apply rules based on packet marks or connection states.