I have seen connmark or ctinfo could work for this but couldn't find a simple effective command to make it work (Not familiar within this area).
The command can be applied to the TCP termination node or any linux node as intermediary router.
iptables -t mangle -A PREROUTING -m dscp --dscp-class AF12 -j CONNMARK --set-xmark 12
iptables -t mangle -A POSTROUTING -m connmark --mark 12 -j DSCP --set-dscp-class AF12
(not 100% dynamic as the DSCP value need to be known in advance in order to get a match)