Iptables / What is the difference between connmark and mark?

9,547

MARK associates "marks" with packets. CONNMARK associates "marks" with connections. The second one is useful because you can mark all the packets of a connection or related to a connection with the same mark (for example, FTP). Another usefull use of CONNMARK is that you can mark packets using the criteria that only matches with the first packet.

Share:
9,547

Related videos on Youtube

ibrahim
Author by

ibrahim

Updated on September 18, 2022

Comments

  • ibrahim
    ibrahim over 1 year

    While adding iptables rules, I couldn't understand what is the difference between connmark and mark? If anyone explains it with detailed explanations, I will be appreciated.