Optimizing communication in a virtual private network during blocking of an exit internet protocol address
A method including configuring a VPN server to assign, based on establishing a VPN connection, a first exit IP address to be utilized for retrieving information during the VPN connection; configuring the VPN server to determine, during the established VPN connection, a host device that is likely to block communication from the first exit IP address; configuring the VPN server to modify associated DNS settings to return communication information associated with the VPN server itself when the information is to be retrieved from the host device; configuring the VPN server to receive, during the established VPN connection, the information retrieved from the host device based on utilizing a second exit IP address associated with a secondary server; and configuring the VPN server to transmit, during the established VPN connection, the information to a user device in accordance with the modified DNS settings is disclosed. Various other aspects are contemplated.
1 . A virtual private network (VPN) infrastructure device, comprising:
a memory; and
a processor communicatively coupled to the memory, the memory and the processor being configured to:
configure a VPN server to assign, based at least in part on establishing a VPN connection with a user device, a first exit internet protocol (IP) address to be utilized for retrieving information requested by the user device during the VPN connection;
configure the VPN server to determine, during the established VPN connection, a host device that is to block communication from the first exit IP address;
configure the VPN server to modify, based at least in part on determining that the host device is to block the communication from the first exit IP address, associated domain name system (DNS) settings of a DNS server associated with the VPN server to return communication information associated with the VPN server itself when the information is to be retrieved from the host device;
configure the VPN server to receive, during the established VPN connection, the information retrieved from the host device based at least in part on utilizing a second exit IP address associated with a secondary server; and
configure the VPN server to transmit, during the established VPN connection, the information to the user device in accordance with the modified DNS settings.
2 . The VPN infrastructure device of claim 1 , wherein, to configure the VPN server to assign the first exit IP address, the memory and the processor are configured to configure the VPN server to select the first exit IP address from among a pool of exit IP addresses available to the VPN server.
3 . The VPN infrastructure device of claim 1 , wherein, to configure the VPN server to modify the associated DNS settings, the memory and the processor are configured to configure the VPN server to modify a configuration file of the DNS server to return the communication information associated with the VPN server instead of communication information associated with the secondary server when the information is to be retrieved from the host device.
4 . The VPN infrastructure device of claim 1 , wherein the memory and the processor are configured to:
configure the VPN server to receive, during the established VPN connection, a data request from the user device to retrieve the information from the host device.
5 . The VPN infrastructure device of claim 1 , wherein the memory and the processor are configured to:
configure the VPN server to establish a secure connection between the VPN server and the secondary server to enable utilization of the second exit IP address for retrieving the information from the host device.
6 . The VPN infrastructure device of claim 1 , wherein the memory and the processor are configured to:
configure the VPN server to receive, during the established VPN connection, a data request for retrieving other information from another host device; and
configure the VPN server to utilize, during the established VPN connection, the first exit IP address to retrieve the other information from the other host device.
7 . The VPN infrastructure device of claim 1 , wherein the memory and the processor are configured to:
configure the VPN server to store, in an associated memory, a positive correlation between the second exit IP address and the host device to indicate that the second exit IP address is available to retrieve data from the host device and a negative correlation between the first exit IP address and the host device to indicate that the first exit IP address is unavailable to retrieve data from the host device.
8 . A method in a virtual private network (VPN), the method comprising:
configuring a VPN server to assign, based at least in part on establishing a VPN connection with a user device, a first exit internet protocol (IP) address to be utilized for retrieving information requested by the user device during the VPN connection;
configuring the VPN server to determine, during the established VPN connection, a host device that is to block communication from the first exit IP address;
configuring the VPN server to modify, based at least in part on determining that the host device is to block the communication from the first exit IP address, associated domain name system (DNS) settings of a DNS server associated with the VPN server to return communication information associated with the VPN server itself when the information is to be retrieved from the host device;
configuring the VPN server to receive, during the established VPN connection, the information retrieved from the host device based at least in part on utilizing a second exit IP address associated with a secondary server; and
configuring the VPN server to transmit, during the established VPN connection, the information to the user device in accordance with the modified DNS settings.
9 . The method of claim 8 , wherein configuring the VPN server to assign the first exit IP address includes configuring the VPN server to select the first exit IP address from among a pool of exit IP addresses available to the VPN server.
10 . The method of claim 8 , wherein configuring the VPN server to modify the associated DNS settings includes configuring the VPN server to modify a configuration file of the DNS server to return the communication information associated with the VPN server instead of communication information associated with the secondary server when the information is to be retrieved from the host device.
11 . The method of claim 8 , further comprising:
configuring the VPN server to receive, during the established VPN connection, a data request from the user device to retrieve the information from the host device.
12 . The method of claim 8 , further comprising:
configuring the VPN server to establish a secure connection between the VPN server and the secondary server to enable utilization of the second exit IP address for retrieving the information from the host device.
13 . The method of claim 8 , further comprising:
configuring the VPN server to receive, during the established VPN connection, a data request for retrieving other information from another host device; and
configuring the VPN server to utilize, during the established VPN connection, the first exit IP address to retrieve the other information from the other host device.
14 . The method of claim 8 , further comprising:
configuring the VPN server to store, in an associated memory, a positive correlation between the second exit IP address and the host device to indicate that the second exit IP address is available to retrieve data from the host device and a negative correlation between the first exit IP address and the host device to indicate that the first exit IP address is unavailable to retrieve data from the host device.
15 . A non-transitory computer-readable medium configured to store instructions, which when executed by a processor associated with a virtual private network (VPN) infrastructure device, configure the processor to:
configure a VPN server to assign, based at least in part on establishing a VPN connection with a user device, a first exit internet protocol (IP) address to be utilized for retrieving information requested by the user device during the VPN connection;
configure the VPN server to determine, during the established VPN connection, a host device that is to block communication from the first exit IP address;
configure the VPN server to modify, based at least in part on determining that the host device is to block the communication from the first exit IP address, associated domain name system (DNS) settings of a DNS server associated with the VPN server to return communication information associated with the VPN server itself when the information is to be retrieved from the host device;
configure the VPN server to receive, during the established VPN connection, the information retrieved from the host device based at least in part on utilizing a second exit IP address associated with a secondary server; and
configure the VPN server to transmit, during the established VPN connection, the information to the user device in accordance with the modified DNS settings.
16 . The non-transitory computer-readable medium of claim 15 , wherein, to configure the VPN server to assign the first exit IP address, the processor is configured to configure the VPN server to select the first exit IP address from among a pool of exit IP addresses available to the VPN server.
17 . The non-transitory computer-readable medium of claim 15 , wherein, to configure the VPN server to modify the associated DNS settings, the processor is configured to configure the VPN server to modify a configuration file of the DNS server to return the communication information associated with the VPN server instead of communication information associated with the secondary server when the information is to be retrieved from the host device.
18 . The non-transitory computer-readable medium of claim 15 , wherein the processor is configured to:
configure the VPN server to receive, during the established VPN connection, a data request from the user device to retrieve the information from the host device.
19 . The non-transitory computer-readable medium of claim 15 , wherein the processor is configured to:
configure the VPN server to establish a secure connection between the VPN server and the secondary server to enable utilization of the second exit IP address for retrieving the information from the host device.
20 . The non-transitory computer-readable medium of claim 15 , wherein the processor is configured to:
configure the VPN server to receive, during the established VPN connection, a data request for retrieving other information from another host device; and
configure the VPN server to utilize, during the established VPN connection, the first exit IP address to retrieve the other information from the other host device.