Hello
We have a CCR1009 with two wans. In the DMZ we have some services and we wanted to serve them from both wans, therefore we did this in mangle for keep which wan we need to remember to answer requests:
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; Input: Fibra1->ROS
chain=input action=mark-connection new-connection-mark=Fibra1->ROS passthrough=no in-interface=pppoe-fibra1 connection-mark=no-mark log=no log-prefix=“”
1 ;;; Input: Fibra2->ROS
chain=input action=mark-connection new-connection-mark=Fibra2->ROS passthrough=no in-interface=pppoe-fibra2 connection-mark=no-mark log=no log-prefix=“”
2 ;;; Output: ROS → Fibra1
chain=output action=mark-routing new-routing-mark=Fibra1_Route passthrough=no connection-mark=Fibra1->ROS log=no log-prefix=“”
3 ;;; Output: ROS → Fibra2
chain=output action=mark-routing new-routing-mark=Fibra2_Route passthrough=no connection-mark=Fibra2->ROS log=no log-prefix=“”
4 ;;; Forward: Fibra1->LAN
chain=forward action=mark-connection new-connection-mark=Fibra1->LAN passthrough=no in-interface=pppoe-fibra1 connection-mark=no-mark log=no log-prefix=“”
5 ;;; Forward: Fibra2->LAN
chain=forward action=mark-connection new-connection-mark=Fibra2->LAN passthrough=no in-interface=pppoe-fibra2 connection-mark=no-mark log=no log-prefix=“”
6 ;;; Forward: LAN->Fibra1
chain=prerouting action=mark-routing new-routing-mark=Fibra1_Route passthrough=no src-address-list=lan_address connection-mark=Fibra1->LAN log=no log-prefix=“”
7 ;;; Forward: LAN->Fibra2
chain=prerouting action=mark-routing new-routing-mark=Fibra2_Route passthrough=no src-address-list=lan_address connection-mark=Fibra2->LAN log=no log-prefix=“”
And it’s working like a champ.
Now we would like to priorize traffic in a Tree Queue therefor we need to mark packets and connections, The question is: How whe should do it without break double wan mangle? Because if we mark connections and packets for different traffic (http, smtp, pop …) we will lose mark and routerBoard won’t know which wan should choose for answering requests.
Thanks a lot