Abstract: An apparatus and method for filtering oil. The apparatus being an oil pan having an integrated oil filter unit, wherein part of the oil pan forms the bottom of the oil filter unit. The oil filter unit is fastened on the oil pan at least by means of a sealing component and one or more punch rivets. A method of fastening an oil filter unit on an oil pan, the method including introducing a seal and an adhesive between the oil filter means and the oil pan and joining the oil pan and the filter means, including the layer there between, by means of punch rivets.