Lip toward the inside (oil side) of the pan <-} So that any oil or internal pressures push the lips outward to contribute to a better seal.