Enemies charging a War Machine lose all charge bonuses (including bonus from special rules).
At the start of the Close Combat phase, before any blows are struck, the player whose unit(s) are attacking the war machine must choose models worth up to Unit Strength 6 who will fight in the combat. This is regardless of the number of units that are fighting the war machine. Note that you may always allocate a minimum of one model to fight, regardless of their actual Unit Size.
All models chosen for the fight are considered to be in base contact with the war machine. Models that are in base contact with other enemies cannot be chosen to attack the war machine.
The combat is otherwise resolved normally. In particular, casualties are taken from the 'back' of the unit as normal. All surviving crew model fight as normal using their Weapon Skill, Strength, Initiative and Attacks. Enemy models strike against the crew normally, resolving their attacks against the crew's Weapon Skill and Toughness. The crew can then take any saves they might have.
A war machine does not have any flanks or a rear for the purposes of combat results. If a war machine manages to win its combat, it is not allowed to pursue and restrains pursuit automatically. The crew always hold their ground. If the war machine loses the combat and fails its Break test it is destroyed.