need help to make 2 gateways

//i want 30% bandwidth will use gateway A and 70% for gateway B. I m using V3.13


//i made mangle rules:

add action=mark-connection chain=prerouting comment=A connection-state=new
disabled=no in-interface=lan new-connection-mark=A_con nth=3,1
passthrough=yes
add action=mark-routing chain=prerouting comment=“” connection-mark=A_con
disabled=no new-routing-mark=A passthrough=no
add action=mark-connection chain=prerouting comment=B connection-state=new
disabled=no in-interface=lan new-connection-mark=B_con nth=3,2
passthrough=yes
add action=mark-routing chain=prerouting comment=“” connection-mark=B_con
disabled=no new-routing-mark=B passthrough=no

//ip address:
add address=xxxxxxxA1/29 broadcast=xxxxxxxA comment=
“DO NOT TOUCH ==>> WAN IP <<==” disabled=no interface=wan network=
xxxxxxxA
add address=xxxxxxxB1/29 broadcast=xxxxxxxB comment=“another wan”
disabled=no interface=ether1 network=xxxxxxxxB


//Routes:

add comment=“added by setup” disabled=no distance=1 dst-address=0.0.0.0/0
gateway=xxxxxxxxA routing-mark=A scope=255 target-scope=10
add comment=“” disabled=no distance=1 dst-address=0.0.0.0/0 gateway=
xxxxxxxB routing-mark=B scope=30 target-scope=10

//My existing NAT rules:

add action=masquerade chain=srcnat comment=proxy disabled=no out-interface=
wan src-address=192.168.15.0/24
add action=masquerade chain=srcnat comment=“” disabled=no out-interface=wan
src-address=192.168.16.0/24
add action=redirect chain=dstnat comment=“” disabled=no dst-address=
!192.168.15.1 dst-port=80 protocol=tcp to-ports=8080


//What should be the new NAT rules to make two gateways?

//i have tested with below rules:But packet is not going through this rule

add action=src-nat chain=srcnat comment=A connection-mark=A_con disabled=no
to-addresses=xxxxxxA
add action=src-nat chain=srcnat comment=B connection-mark=B_con disabled=no
to-addresses=xxxxxxB

I advise you to use ‘random=’ instead of ‘nth=’