If it is an ideal gas, its exit temperature will be the same as its inlet temperature. Regarding the pressure change, the porous plug has tiny passages through which the gas flows. So there will be a viscous pressure drop between the inlet side and the outlet side of the plug. Flow through a porous medium is typically described using Darcy's law: $$\frac{dp}{dx}=-\frac{\mu}{k}v$$ where p is the pressure, x is the axial distance along the plug, v is the volume flow rate divided by the cross sectional area of the plug, k is the "permeability" of the plug (a physical property related to the microscopic geometry of the pore channels), and ##\mu## is the viscosity of the gas.