How do porous international borders affect the security and socio-economic dynamics of neighboring regions?

The news of a Sri Lankan man being held while trying to cross the Indo-Nepal border highlights the challenges posed by porous borders. I want to understand the broader implications of such borders on security, local economy, and society.