You need a MIDI merger to do this.

According to the MIDI specifications, the MIDI Thru port should be an exact and direct copy of what comes in at the MIDI In port.