The government will offer six months of amnesty to the large numbers of illegal foreigners in the country.