Before I enter the details, I do not expect this to be cheap or easy. But the rise of Islam will cause problems for centuries and it is therefore an absolute necessity we keep Muslims out of our country. If we have to pay WTO fines, so be it. If this damages EU enterprises, so be it. If we have to stop eating meat to dedicate vast surfaces to fuel production (agrofuel or hydrogen through solar power), so be it. If everyone points fingers at us, so be it. Islam is a civilization-scale problem and we need a more radical mindset to fix our situation.
France will be more beautiful, happier, safer and wealthier for the centuries to come if it is not ethnically divided between Muslims and koufars, if Islam has as little influence as possible.
The details:
a) Use aggressive policies and increase border surveillance to pressure the countries where refugees are, to make sure they keep them. Turkey has a lot of trade with the EU, if we need to stop it to convince them to do so, so be it. The current deal is a complete submission from the EU. Turkey and Russia have grabbed our parts, probably because they could stop the oil pipelines, this is a situation we must remedy, both by demonstrating to Turkey that we are ready to go at war if they push us too far, then by starting to produce expensive fuel in Europe.
b) For the remaining refugees, bargain with other countries to make them take the refugees. Some Arab countries may be convinced to host them for money.
c) For the remaining ones, build small comfortable detention camps far from cities. We will first have to legalize indefinite detention and DNA identification, but anyway this is needed so we can deport again every illegal immigrant we do not want
d) If after all this the number of refugees is still too big, deport them back to Syria. I am sorry for them but Islam will turn France into Syria if we massively let them in.
e) As for the situation in Syria, I do not think we can do much more than we are already doing.