What sort of border controls would medieval European countries have had?

by Franky_Tops

Would it have been feasible for them to control their borders, or would someone be able to simply walk in and out of countries unmolested?

Mr_sludge