| CPC H04L 61/256 (2013.01) [G06F 9/45558 (2013.01); H04L 49/3009 (2013.01); H04L 61/2503 (2013.01); H04L 61/2517 (2013.01); H04L 61/2535 (2013.01); H04L 61/255 (2013.01); H04L 67/1001 (2022.05); H04L 69/16 (2013.01); H04L 69/22 (2013.01); G06F 2009/45595 (2013.01); H04L 2101/604 (2022.05)] | 20 Claims |

|
1. A computer-implemented method when executed by data processing hardware of a gateway module associated with a virtual private network causes the data processing hardware to perform operations comprising:
receiving, from a client external to the virtual private network, a packet to be sent to one of a plurality of virtual machines executing on the virtual private network, each respective virtual machine associated with a corresponding internal internet protocol (IP) address, the packet comprising:
a destination IP address associated with the gateway module; and
a destination port;
determining a load balancing scheme based on the destination port;
selecting a respective one of the virtual machines from among the plurality of virtual machines based on the load balancing scheme;
replacing the destination IP address of the packet with the corresponding internal IP address associated with the respective one of the virtual machines; and
sending the packet to the corresponding internal IP address associated with the respective one of the virtual machines.
|