Connect to a remote network through a middle server