Eleven people, including a man from Walton and another man from Cobham, pleaded guilty to a number of offences.
The police investigation dates back to October 2019.
The gang leader was already serving time in prison for previous drug offences and was directing the group from his cell.