Hello,
I have an issue with mark-connection being overwritten in my mangle rules.
Please see below mangle rules;
361-363 are layer 3, PBR on source and destination IP Addresses.
361 chain=prerouting action=mark-connection
new-connection-mark=GOOGLE DRIVE passthrough=yes
dst-address-list=GOOGLE DRIVE log=no log-prefix=""
362 chain=prerouting action=mark-packet
new-packet-mark=GOOGLE DRIVE passthrough=yes
connection-mark=GOOGLE DRIVE log=no log-prefix=""
363 chain=prerouting action=mark-routing
new-routing-mark=MultiWAN passthrough=no
src-address=10.80.0.0/16 packet-mark=GOOGLE DRIVE
log=no log-prefix=""
395-397 are layer 4, PBR based on destination port
395
chain=prerouting action=mark-connection
new-connection-mark=HTTP-HTTPS BROWSING passthrough=yes
protocol=tcp port=80,443 log=no log-prefix=""
396 chain=prerouting action=mark-packet
new-packet-mark=HTTP-HTTPS BROWSING passthrough=yes
connection-mark=HTTP-HTTPS BROWSING log=no log-prefix=""
397 chain=prerouting action=mark-routing
new-routing-mark=ECMP passthrough=no
src-address=10.80.0.0/16 packet-mark=HTTP-HTTPS BROWSING
log=no log-prefix=""
If traffic going to an IP Address in the destination address list ‘GOOGLE DRIVE’ is establishing a connection on port 80 or 443, the connection-mark will be overwritten with HTTP-HTTPS BROWSING this then causes issues with routing via different ISP’s and queuing.
Does anyone know why this happens? Is there a correlation between how RoS processes mangle rules and the OSI model?
Thank you.