I am waiting for our governments plan to fall apart at the seams, if that happens they are hopefully finished as a ruling government.
As people have said here, claiming Asylum is NOT illegal, it is a right under the UN human rights charter thing.
Provide safe routes in to other countries, (esp if life is at immediate risk) claim asylum there if need be, if you have family in another country they could claim asylum in the 3rd country from there surely.
In the case of natural disaster or war, we really do have a duty to help people.
There are better ways to do this, some of these people are in dire need, to turn them away and send them home could be interesting if they escape say iran for protesting agsinst the government, and face the death penalty, what happens if we send them home and they are then executed, the ban on re-entry to the UK won't be needed, but as a country we will have facilitated in the death, as a country we will be both complicit and accessory.
Not sure if we have an embassy or consulate in Iran, but if not how else are people meant to claim asylum in a safe country, most people around the world seem to learn English as a 2nd language, ( a legacy of Empire that, I guess) , so it is probably understandable that they seek asylum here or other English speaking country, the same could be said for former french colonies, where the language is French, refugees seek asylum in France due to language(s) spoken.
Another plan may be to figure out how to fix the countries people are coming from so they are safer, not at war and rewarded in some way (e.g trade, investment) for doing the right thing for their own people.