One of the main technical challenges when integrating magnetic resonance imaging (MRI) systems with medical linear accelerator is the strong interference of fringe magnetic fields from the MRI system with the electron beams of linear accelerator, making the linear accelerator not to work properly. In order to minimize the interference of magnetic fields, a magnetic shielding cylinder with an open structure made of high permeability materials is designed. ANSYS Maxwell was used to simulate Helmholtz coil which generate uniform magnetic field instead of the fringe magnetic fields which affect accelerator gun. The parameters of shielding tube, such as permeability, radius, length, side thickness, bottom thickness and fringe magnetic fields strength are simulated, and the data is processed by MATLAB to compare the shielding performance. This article gives out a list of magnetic shielding effectiveness with different side thickness and bottom thickness under the optimal radius and length, which showes that this design can meet the shielding requirement for the MRI-linear accelerator system.