Inflow-outflow problems for Euler equations in a rectangular cylinder