This issue pisses me quite frankly off since ages, but now at least people are starting to wake up slowly. I have nothing against legal immigrants that make a net contribution towards the given economy they are staying in, I am a German of Turkish immigrant background and my family immigrated to Egypt in the past decade and started a business there, so I am clearly the last to be against legal immigration or a racist.
However, the fact that Europe opens the flood gates to refugees who bring all sorts of social external costs is unacceptable and these people have to be send back straight away or prevented from arriving in the first place no matter how. The problem only can be solved by fixing the problem at its root and this is destroying political and economic instability in the third world.
My suggestion of addressing this is by temporarily welcoming these people into Europe give them military training and education to give them the means to take back their country and establish a functioning government and of course we will give them the weapons and material to start their conquest. This would cost a few billions in the short run but in the long run with socio-economic cooperation and investment into these countries will be able to stand on their own feet and unlike the mistake committed in Afghanistan they will be re-established as working countries by 'their own' people for their 'own' people, then we will reap the rewards, especially considering that Europe's economy is stagnating and we need new markets to export to so within 10-20 years the third world could be a better place and we would have new trading partners.
I am vouching on this, it would work. If Eritrean refugees for example truly escaped and left their families behind in order to live in a place with stability and no corruption, I am sure they would like nothing more than to go back and make the country a better place for their families and future generations. Unlike arming existing rebels groups in like Syria and Libya, these people's intentions are clear and are isolated, so we can indoctrinate them with the right ideals and give them the right knowledge and even more importantly means to accomplish what has to be done. Otherwise, we will just have to accept more and more of them, and eventually even go there ourselves to feed the poor guys that don't manage to escape and have a bigger tap in the end both economic and social terms.
But these is just my 50 cents and of course I am gonna get attacked for this idea, because fixing the problem at its root is seemingly not the most apparent solution to most of the people out there. These people that flee are the only peace loving and stability desiring once left in that country and eventually those places will be dominated by bad guys (such as Syria and ISIS) and we will be forced to act militarily anyways, so why not just empower the good people to start the good fight and not give the bad guys the propaganda material of the white man colonizing their place?
EDIT:
And if you say that these refugees might not be willing to fight for their country or are scared, they either are frauds or do not deserve help. Because I love my country and I would die for it as a patriot if it had to be, and generally people that do not want to help themselves do not deserve any to begin with.