I want to seperating icmp and non icmp traffic per network subnet via packet marking.
here is my config :
/ip firewall mangle add chain=prerouting src-address=192.168.0.0/24 protocol=icmp action=mark-connection new-connection-mark=icmp-conn passthrough=yes
/ip firewall mangle add chain=forward connection-mark=icmp-conn action=mark-packet new-packet-mark=icmp passthrough=no
And then i want to mark non icmp packet :
-----------------------------------------------------------------------------
OPTION 1.
/ip firewall mangle add chain=prerouting src-address=192.168.0.0/24 action=mark-connection new-connection-mark=local-conn passthrough=yes
/ip firewall mangle add chain=forward connection-mark=local-conn action=mark-packet new-packet-mark=local passthrough=no
-----------------------------------------------------------------------------
OPTION 2.
/ip firewall mangle add chain=prerouting src-address=192.168.0.0/24 packet-mark=!icmp connection-mark=!icmp-conn action=mark-connection new-connection-mark=local-conn passthrough=yes
/ip firewall mangle add chain=forward connection-mark=local-conn action=mark-packet new-packet-mark=local passthrough=no
-----------------------------------------------------------------------------
Which one should works correctly? option 1/2? or maybe there is another options? thx in advance