Two British servicemen shot dead by a rogue Afghan soldier at the entrance to the UK headquarters in Helmand Province were both fathers of young children.
Sergeant Luke Taylor, 33, of the Royal Marines, and Lance Corporal Michael Foley, 25, of the Adjutant General's Corps, were killed at the base in Lashkar Gah on Monday.
Defence Secretary Philip Hammond led tributes to the "true and devoted family men", saying they "died in the service of their country".
The shooting was the latest in a string of "green on blue" attacks in which members of the Afghan security forces have opened fire on international allies.
The Afghan soldier killed the British men at the main entrance to the base in Helmand's capital before being shot dead himself.
Sgt Taylor, from Bournemouth, Dorset, leaves behind his wife Nicola and their son Roan, while L/Cpl Foley, from Burnley, Lancashire, was married to Sophie and had three sons, Calum, Warren and Jake.
It is understood that Sgt Taylor, who worked in intelligence, had only arrived in Afghanistan four weeks before his death.
The Royal Marine's commanding officer, who cannot be named because of the nature of his work, described him as "a natural leader with inspirational flair who was devoted to his family".
He added: "Sgt Luke Taylor was one of those very unique soldiers who combined the highest professional standards with a completely disarming and relaxed personality.
"Always an absolute pleasure to work with. You knew that Sgt Taylor would deliver first time, every time."
Another colleague said: "He had one of those infectious charismas, always able to talk himself out of a situation. For me, like so many, Luke was simply an inspiration."