A prisoner from Ipswich, who is one of Britain’s most dangerous inmates, has been locked up indefinitely after attacking prison staff.