Macedonia has lifted restrictions on the entry of refugees from the Greek border after Macedonian taxi drivers ended a five-day protest that had closed a key railway line, slowing migrant flows to Serbia.

Macedonian railways official Kire Dimoski said the railway service, which migrants use to head north through the Balkans, has been functioning normally since early Wednesday.

Taxi drivers blocked the tracks demanding that authorities allow them to carry transient migrants to Serbia even if there are available train and bus seats. During the protest, only small numbers of migrants were allowed to enter Macedonia.

Macedonia accepts people only from war-affected zones who declare Austria or Germany as their final destination.

More than 55,000 migrants have passed through Macedonia this year.