Bidule, Jack, Energyxt, MidiRouting.. Catanya

For which platform? Solutions are specific to each platform.
For Jack in Linux this is fairly easy. On Windows, this won’t work in Jack though as on Windows, Jack gets assigned all the midi devices once you open it with a parameter to also enable the midi routing option.
In Windows you have free solutions like VST host and VST board.