Libya’s embattled government has reached an agreement with rebel forces to reopen two oil terminals in the east of the country closed since July 2013.

Federalist forces under the command of Ibrahim Jathran agreed to open the Zuetina and Hariga oil ports, according to the Libyan news agency, LANA.

Local media report that the two ports will be handed over to government control immediately, while the El-Sidra and Ras Lanuf ports will be transferred within a month.

The forces currently control as much as 600,000 barrels a day (b/d) of Libya’s crude oil export capacity, about half the country’s total.

Jathran’s self-declared Cyrenaica Transitional Council is seeking greater autonomy for the eastern region of Libya and has even attempted to sell crude independently.

In March, a North Korean flagged ship loaded approximately 200,000 b/d from the El-Sidra port, defying a naval blockade. It was boarded by US forces in the Mediterranean, however.