It is quite similar to what I have tried to do here Using separate rtcMinPort/rtcMaxPort setting for PlainTransport (Implementing separate rtcMinPort/rtcMaxPort setting for PlainTransport · vpalmisano/mediasoup@bcfb1f8 · GitHub), but with the complication that you need to specify this option for each transport.