The IDF Chief Rabbi, Eyal Krim says raping Gentiles is permitted:

“It is permitted to satisfy the evil inclination by lying with attractive Gentile women against their will, out of consideration for the difficulties faced by the soldiers and for overall success."
18.1K