You need to do Policy Based Routing and you have 3 options:
- mwan3 package
- pbr package
- a set of rules/routes for each internet connection.
Unfortunately the uci implementation of ip rules does not support ports, so you can either do it by matching something else, or by using the nativeip rule add ...
which supports ports, but it is not so much integrated to OpenWrt.