Group by interface, then in/out