Dynamics inside an ellipsoidal DM halo