Boundary and interface conditions in porous media