主权项 |
1. A virtual private network (VPN) service apparatus configured to receive a first public key and a second public key, wherein the first public key is received from a VPN server and provides access by a user device to a private network, and the second public key is received from the user device, the apparatus comprising:
A memory and processor operable to perform operations comprising: storing the first public key and the second public key, wherein the second public key is generated by the user device when the user device is authenticated by the VPN server; authenticating the VPN server using the stored first public key and to authenticate the user device using the stored second public key; generating a first VPN tunnel and a second VPN tunnel which respectively relay data between the user device and the VPN server, wherein the first VPN tunnel is configured to relay the data between the VPN server and the VPN service apparatus based on the authentication of the VPN server by the authentication unit, and wherein the second VPN tunnel is configured to relay the data between the VPN service apparatus and the user device based on the authentication of the user device by the authentication unit; determining whether to connect the VPN server to the user device based on whether a load resulting from access of the user device would be equally distributed among the plurality of VPN servers having the same ID, wherein if a request to access the VPN server is received from the user device, and the VPN server is included among a plurality of VPN servers having a same identification (ID), wherein each of the plurality of VPN servers has a different sub-ID. |