BANGOR, Maine — A federal judge Friday ordered a Massachusetts man to pay more than $60,000 in back child support for his teenage son.

U.S. District Judge John Woodcock sentenced Dennis E. Allain to five years of probation, the maximum allowed under the law, and ordered him to pay $60,212, according to court documents.

Allain, 45, of Worcester, Mass., waived indictment and pleaded guilty in September to one count of failure to pay child support obligations. He was arrested in June and has been free on $5,000 unsecured bail since then.

Allain is employed in Massachusetts, according to the U.S. attorney’s office.

Federal prosecutors handle the prosecution of cases where child support is in arrears when the parent owing the support does not reside in the same state as the parent who has primary custody of the child or children.

Allain was ordered to pay child support to the mother of his son after a 1997 paternity hearing in Bangor District Court, according to court documents filed in federal court in Bangor. The boy was born in November 1995.

Allain, who was ordered to pay $77 per week, had paid a total of $461 as of December 2011, when the complaint was filed.

He and the child’s mother never married, it said.

She and the boy, now 17, live in Old Town, according to a previously published report. The last time Allain made a payment was in March 1998 for $19, according to court documents.

Allain faced up to two years in prison and a fine of up to $250,000.