How to filter MIDI through only for external devices?

I had turned off midi through cause it wreaked havoc on my old Clavia NordLead. That lead to the fact that I could not route midi from VSTs in Cubase. Anybody know of a way to just disable midi though to some tracks or some devices?