Indeed, tunnels could also be sort of tied to a point in space so that one can only travel through them to another planet at a specific time when the orbit carries it through that space, otherwise they end up in a vacuum and die. I guess the end of the tunnel could act like a snap to grid and when the planet is close enough it snaps to whatever node exists there.