how to create a rigid wall

I am simulating the diffusion of gas into polymer, how to create a thin layer rigid wall which is unpermeable for gas.