Diffusion of cosmic rays in a multiphase interstellar medium swept-up by a supernova remnant blast wave