Method for establishing virtual private network connection and network device
AssigneeASUSTeK COMPUTER INC.
InventorWei-Sheng Teng
Life of this patent
Estimating the term…
Abstract
A method for establishing a virtual private network (VPN) connection and a network device are disclosed. The method includes the following steps. The network device establishes a connection with a main routing device to construct a mesh network. The network device is a sub-routing device of the mesh network. The network device receives a VPN configuration from the main routing device. The main routing device is a VPN server corresponding to the VPN configuration. The network device determines whether to be connected to Internet through the main routing device. In response to not being connected to the Internet through the main routing device, the network device determines to establish a VPN connection with the main routing device according to the VPN configuration.
Claims10
A method for establishing a virtual private network (VPN) connection, comprising:
- establishing, by a network device, a connection with a main routing device in a first place to construct a mesh network, wherein the network device is a sub-routing device of the mesh network;
- receiving, by the network device, a VPN configuration from the main routing device, wherein the main routing device is a VPN server corresponding to the VPN configuration;
- determining, by the network device, whether to be connected to Internet through the main routing device, wherein the step of determining whether to be connected to the Internet through the main routing device comprises:
- determining, by the network device, whether to be connected to the Internet through the main routing device according to a routing path of a packet by determining whether the routing path of the packet includes a network address of the main routing device;
- and
- in response to the sub-routing device being moved from the first place to a second place and the sub-routing device not being connected to the Internet through the main routing device in the second place, deciding, by the network device, to establish a VPN connection with the main routing device according to the VPN configuration.
A network device, comprising:
- a transceiver;
- a storage device;
- and
- a processor coupled to the transceiver and the storage device, and configured to:
- establish a connection with a main routing device in a first place to construct a mesh network, wherein the network device is a sub-routing device of the mesh network;
- receive a VPN configuration from the main routing device, wherein the main routing device is a VPN server corresponding to the VPN configuration;
- determine whether to be connected to Internet through the main routing device;
- and
- in response to the sub-routing device being moved from the first place to a second place and the sub-routing device not being connected to the Internet through the main routing device in the second place, decide to establish a VPN connection with the main routing device according to the VPN configuration,
- wherein the processor is further configured to:
- determine whether to be connected to the Internet through the main routing device according to a routing path of a packet by determining whether the routing path of the packet includes a network address of the main routing device, and
- in response to the routing path of the packet including the network address of the main routing device, determine that the sub-routing device is connected to the Internet through the main routing device.
A method for establishing a virtual private network (VPN) connection, comprising:
- establishing, by a network device, a connection with a main routing device in a first place to construct a mesh network, wherein the network device is a sub-routing device of the mesh network;
- receiving, by the network device, a VPN configuration from the main routing device, wherein the main routing device is a VPN server corresponding to the VPN configuration;
- determining, by the network device, whether to be connected to Internet through the main routing device, wherein the step of determining whether to be connected to the Internet through the main routing device comprises:
- determining, by the network device, whether to be connected to the Internet through the main routing device according to a routing path of a packet by determining whether the routing path of the packet includes a network address of the main routing device, and
- in response to determining that the routing path of the packet does not include the network address of the main routing device, the network device determines that the network device is not connected to the Internet through the main routing device;
- and
- in response to the sub-routing device being moved from the first place to a second place and the routing path of the packet not including the network address of the main routing device corresponding to the sub-routing device not being connected to the Internet through the main routing device in the second place, deciding, by the network device, to establish a VPN connection with the main routing device according to the VPN configuration.
Dependencies are inferred from the claim text.