CN115695168A - VPN networking method, device and equipment - Google Patents
VPN networking method, device and equipment Download PDFInfo
- Publication number
- CN115695168A CN115695168A CN202110824672.4A CN202110824672A CN115695168A CN 115695168 A CN115695168 A CN 115695168A CN 202110824672 A CN202110824672 A CN 202110824672A CN 115695168 A CN115695168 A CN 115695168A
- Authority
- CN
- China
- Prior art keywords
- vpn
- configuration information
- dialing
- networking configuration
- backup
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000006855 networking Effects 0.000 title claims abstract description 284
- 238000000034 method Methods 0.000 title claims abstract description 69
- 230000001960 triggered effect Effects 0.000 claims description 14
- 230000004044 response Effects 0.000 claims description 8
- 230000008569 process Effects 0.000 description 18
- 238000004590 computer program Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 9
- 238000012544 monitoring process Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000004048 modification Effects 0.000 description 6
- 238000012986 modification Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 3
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000011084 recovery Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000001364 causal effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application discloses a VPN networking method, a VPN networking device and VPN networking equipment, wherein the method comprises the following steps: responding to the dialing request, and acquiring current VPN networking configuration information configured on a network side; dialing by using the current VPN networking configuration information, and requesting to access a corresponding VPN server; when dialing fails by using the current VPN networking configuration information and the backup VPN networking configuration information is determined to be locally stored, dialing is carried out by using the backup VPN networking configuration information to request to access a corresponding VPN server; and when the current VPN networking configuration information is used for dialing successfully, the current VPN networking configuration information is used as backup VPN networking configuration information to be stored. Therefore, the problem that the site is lost and cannot be accessed to the VPN network due to the fact that the VPN configuration is wrong in the prior art is solved.
Description
Technical Field
The present invention relates to the field of virtual private network technologies, and in particular, to a VPN networking method, device, and apparatus.
Background
Along with the development of the internet of things and wireless technology, more and more unattended stations and equipment are accessed to the unified centralized monitoring center. Many of these sites and monitoring centers use VPN (Virtual Private Network) technology for networking, so as to facilitate management.
In the VPN networking, VPN networking related configurations such as VPN intranet addresses of a VPN server and a platform application server need to be configured to these unattended sites. Due to the requirement of load migration caused by the increase of access sites or the change of the VPN server, the VPN networking related configuration of the unattended site is required to be dynamically modified in the operation process.
During the dynamic VPN networking related configuration modification process for an unattended site, the following problems may exist:
due to instability of the internet of things or a wireless network, interruption of the VPN network is likely to occur in the process of related configuration of VPN networking, so that the related configuration of new VPN networking is not modified, an unattended site can use wrong related configuration of VPN networking subsequently, the site can not be accessed to the VPN network, site loss is caused, offline processing is required, and cost is high.
Disclosure of Invention
The application aims to provide a VPN networking method, a VPN networking device and VPN networking equipment. The method is used for solving the problem that the site is lost and can not be accessed into the VPN network due to the error of VPN configuration in the prior art.
In a first aspect, an embodiment of the present application provides a VPN networking method, which is applied to a site, where the method includes:
responding to the dialing request, and acquiring current VPN networking configuration information configured on a network side;
dialing by using the current VPN networking configuration information to request to access a corresponding VPN server;
when dialing fails by using the current VPN networking configuration information and the backup VPN networking configuration information is determined to be locally stored, dialing is carried out by using the backup VPN networking configuration information to request to access a corresponding VPN server;
and when the current VPN networking configuration information is used for dialing successfully, the current VPN networking configuration information is used as backup VPN networking configuration information to be stored.
In some possible embodiments, the method further comprises:
when the current VPN networking configuration information is failed to dial, and the backup VPN networking configuration information is not locally stored, or when the backup VPN networking configuration information is failed to dial, the stored default VPN networking configuration information is obtained;
and dialing by using the default VPN networking configuration information, and requesting to access a corresponding VPN server.
In some possible embodiments, the current/backup/default VPN networking configuration information includes a primary VPN server configuration and a backup VPN server configuration, and dialing is performed using the current/backup/default VPN networking configuration information, including:
dialing by utilizing the configuration of the main VPN server to request to access the corresponding main VPN server;
and when the dialing configuration by using the main VPN server fails, dialing is performed by using the backup VPN server configuration, and the access to a corresponding backup VPN server is requested.
In some possible embodiments, the method further comprises:
after accessing the backup VPN server, checking whether the main VPN server can be accessed;
and when the main VPN server is determined to be accessible, disconnecting the backup VPN server, and reusing the configuration of the main VPN server for dialing.
In some possible embodiments, the method further comprises:
sending a configuration request to a network side and receiving VPN networking configuration information issued by the network side;
determining whether the serial number SN of the site carried by the network side when issuing the VPN networking configuration information is consistent with the SN of the site;
and if the VPN networking configuration information is consistent with the VPN networking configuration information, updating the current VPN networking configuration information into VPN networking configuration information issued by the network side.
In some possible embodiments, the method further comprises:
and triggering the site to restart when the dialing fails by utilizing the default VPN networking configuration information.
Responding to the dialing request, and acquiring the current VPN networking configuration information configured by the network side, wherein the current VPN networking configuration information comprises the following steps:
in some possible embodiments, in response to a dialing request triggered when a site is started, current VPN networking configuration information configured on a network side is acquired; or
And responding to a dialing request triggered after receiving the VPN networking configuration information issued by the network side, and acquiring the current VPN networking configuration information configured by the network side.
In a second aspect, an embodiment of the present application provides a VPN networking device, where the VPN networking device includes:
the configuration acquisition module is used for responding to the dialing request and acquiring the current VPN networking configuration information configured on the network side;
the first dialing module is used for dialing by utilizing the current VPN networking configuration information and requesting to access a corresponding VPN server;
the second dialing module is used for dialing by using the backup VPN networking configuration information when the dialing by using the current VPN networking configuration information fails and the backup VPN networking configuration information is determined to be locally stored, and requesting to access a corresponding VPN server;
and the configuration backup module is used for taking the current VPN networking configuration information as backup VPN networking configuration information to store when the current VPN networking configuration information is used for dialing successfully.
In some possible embodiments, the method further comprises:
the third dialing module is used for acquiring stored default VPN networking configuration information when dialing by using the current VPN networking configuration information fails and the backup VPN networking configuration information is not locally stored, or when dialing by using the backup VPN networking configuration information fails; and dialing by using the default VPN networking configuration information, and requesting to access a corresponding VPN server.
In some possible embodiments, the current/backup/default VPN networking configuration information includes a primary VPN server configuration and a backup VPN server configuration, and the first dialing module performs dialing using the current VPN networking configuration information/the second dialing module performs dialing using the backup VPN networking configuration information/the third dialing module performs dialing using the default VPN networking configuration information, including:
dialing by utilizing the configuration of the main VPN server and requesting to access the corresponding main VPN server;
and when the dialing configuration by using the main VPN server fails, dialing is performed by using the backup VPN server configuration, and the access to a corresponding backup VPN server is requested.
In some possible embodiments, the apparatus further comprises:
the connection checking module is used for checking whether the main VPN server can be accessed after the backup VPN server is accessed;
and the dialing switching module is used for disconnecting the connection with the backup VPN server and reusing the configuration of the main VPN server for dialing when the main VPN server can be accessed.
In some possible embodiments, the apparatus further comprises:
the configuration request acquisition module is used for sending a configuration request to a network side and receiving VPN networking configuration information issued by the network side;
the SN comparison module is used for determining whether the SN of the site carried by the network side when the network side issues the VPN networking configuration information is consistent with the SN of the site;
and the configuration updating module is used for determining consistency and updating the current VPN networking configuration information into VPN networking configuration information issued by the network side.
In some possible embodiments, the apparatus further comprises:
and the site restarting module is used for triggering the site to restart when the dialing of the default VPN networking configuration information fails.
In some possible embodiments, the obtaining, by the configuration obtaining module, current VPN networking configuration information configured on the network side in response to the dialing request includes:
responding to a dialing request triggered when a site is started, and acquiring current VPN networking configuration information configured on a network side; or
And responding to a dialing request triggered after receiving the VPN networking configuration information issued by the network side, and acquiring the current VPN networking configuration information configured by the network side.
In a third aspect, another embodiment of the present application further provides a VPN networking device, including at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of any VPN networking method provided by the embodiments of the present application.
In a fourth aspect, another embodiment of the present application further provides a computer storage medium, where a computer program is stored in the computer storage medium, and the computer program is configured to enable a computer to execute any VPN networking method provided in the embodiment of the present application.
According to the embodiment of the application, the VPN networking configuration information which is dialed successfully is backed up, so that the current VPN networking configuration information can not be accessed into a VPN network, the backed-up VPN networking configuration information can be accessed into the network, a VPN configuration recovery mechanism is provided, and the usability of a VPN system is enhanced.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments of the present application will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an application environment according to one embodiment of the present invention;
fig. 2 is a flowchart illustrating a VPN networking method according to an embodiment of the present invention;
fig. 3 is a detailed flowchart of a VPN networking method according to an embodiment of the present invention;
fig. 4 is a block diagram of a VPN networking device according to one embodiment of the present invention;
fig. 5 is a diagram of a VPN networking device architecture according to one embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described in detail and clearly with reference to the accompanying drawings. In the description of the embodiments of the present application, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; the "and/or" in the text is only an association relation describing the association object, and indicates that three relations may exist, for example, a and/or B may indicate: three cases of a alone, a and B both, and B alone exist, and in addition, "a plurality" means two or more than two in the description of the embodiments of the present application.
In the description of the embodiments of the present application, the term "plurality" means two or more unless otherwise specified, and other terms and the like should be understood as meaning that the preferred embodiments described herein are only for the purpose of illustration and explanation of the present application and are not intended to limit the present application, and that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
To further illustrate the technical solutions provided by the embodiments of the present application, the following detailed description is made with reference to the accompanying drawings and the detailed description. Although the embodiments of the present application provide method operation steps as shown in the following embodiments or figures, more or fewer operation steps may be included in the method based on conventional or non-inventive labor. In steps where no necessary causal relationship exists logically, the order of execution of these steps is not limited to the order of execution provided by the embodiments of the present application. The method can be executed in the order of the embodiments or the method shown in the drawings or in parallel in the actual process or the control device.
In view of the instability of the internet of things or the wireless network in the related technology, the interruption of the VPN network is likely to occur in the process of the related configuration of the VPN networking, so that the related configuration of the new VPN networking is not modified and completed, and the unattended site can subsequently use the wrong related configuration of the VPN networking, and can not access the VPN network, so that the problem of site loss is caused. The application provides a recovery mechanism capable of carrying out VPN configuration, and the success rate of accessing sites to a VPN network is improved.
In view of the above, the inventive concept of the present application is: responding to the dialing request, and acquiring current VPN networking configuration information configured on a network side; dialing by using the current VPN networking configuration information to request to access a corresponding VPN server; when dialing fails by using the current VPN networking configuration information and the backup VPN networking configuration information is determined to be locally stored, dialing is carried out by using the backup VPN networking configuration information to request to access a corresponding VPN server; and when the current VPN networking configuration information is used for dialing successfully, the current VPN networking configuration information is used as backup VPN networking configuration information to be stored.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The following describes in detail a searching method of a monitoring node in the embodiment of the present application with reference to the drawings.
Referring to fig. 1, a schematic diagram of an application environment according to an embodiment of the application is shown.
As shown in fig. 1, the application environment may include, for example, a VPN network 10, a server 20, and an unattended site 30, where the VPN networking related configuration information on the network side is configured in the site, and a matching relationship between the site and the server is established, so that each site dials using the VPN networking related configuration information, establishes a connection with the corresponding matched server, and is managed by the corresponding server.
The description in this application is detailed in terms of only a single site, but it will be understood by those skilled in the art that the illustrated server 20, unattended site 30 is intended to represent the operation of the server 20, unattended site 30 to which the solution of the present application relates. It should be noted that the underlying concepts of the example embodiments of the present application may not be altered if additional modules are added or removed from the illustrated environments.
Fig. 2 is a flowchart illustrating a VPN networking method according to an embodiment of the present application, where the method is applied to a site, and includes:
step 201: responding to the dialing request, and acquiring current VPN networking configuration information configured on a network side;
the method comprises the steps that a site sends a dialing request to a network side to request the network side to distribute a corresponding IP address for the site, the site accesses a VPN network by using the distributed IP address, when the site sends the dialing request, the site specifically needs to obtain current VPN networking configuration information configured by the network side, the current VPN networking configuration information comprises a server address, the site sends the dialing request carrying a user name and a password of dialing, and the site requests to establish connection with a corresponding server.
The current VPN networking configuration information related to the embodiment of the invention is VPN networking configuration information configured by a network side and is VPN networking configuration information used for the first time when a site dials currently.
The site triggers to generate a dialing request, which may be a dialing request actively triggered when a set condition is met, or a dialing request triggered according to the instruction of a user.
As an optional implementation manner, in response to the dialing request, the current VPN networking configuration information configured on the network side is obtained, which may be any of the following manners:
1) Responding to a dialing request triggered when a site is started, and acquiring current VPN networking configuration information configured on a network side;
when a station is started each time, a dialing request is sent to a network side, the dialing request carries a serial number SN of the station, and the network side receives the dialing request and then allocates a corresponding IP address for the station.
2) And acquiring the current VPN networking configuration information configured by the network side in response to a dialing request triggered after receiving the VPN networking configuration information issued by the network side.
The network side can configure and modify VPN networking configuration information for the site, the network side issues the VPN networking configuration information to the site after completing and modifying the configuration, and the site determines that the VPN networking configuration information is updated after receiving the VPN networking configuration information from the network side every time, triggers and generates a dialing request so as to dial by using the updated VPN networking configuration information.
the current VPN networking configuration information includes the address of the configured VPN server, dialing is performed by using the current VPN networking configuration information, and the process of requesting access to the corresponding VPN server is an existing process, which is not described in detail herein.
when the current VPN networking configuration information is used for dialing, if a corresponding VPN server is accessed in a preset time period, the dialing is considered to be successful, otherwise, the dialing is considered to be failed.
In the embodiment of the invention, when the current VPN networking configuration information is failed to dial, whether the backup VPN networking configuration information is stored locally or not is checked, and the backup VPN networking configuration information is the VPN networking configuration information stored when the last dialing is successful.
And if the backup VPN networking configuration information is stored, dialing by using the backup VPN networking configuration information and requesting to access a corresponding VPN server.
And 204, when the current VPN networking configuration information is used for dialing successfully, saving the current VPN networking configuration information as backup VPN networking configuration information.
When the current VPN networking configuration information is used for dialing successfully, the current VPN networking configuration information is used as backup VPN networking configuration information to be stored, and therefore, when the next dialing fails, the backup VPN networking configuration information can be used for dialing.
By using the VPN networking method provided by the embodiment of the invention, since the site local stores the VPN networking configuration information which is successfully dialed at the last time, if the VPN network is interrupted in the process of the related configuration of the VPN networking due to the instability of the internet of things or the wireless network, the related configuration of the new VPN networking is not modified and completed.
As an optional implementation manner, when dialing fails by using the current VPN networking configuration information and it is determined that backup VPN networking configuration information is not locally stored, acquiring stored default VPN networking configuration information; and dialing by using the default VPN networking configuration information, and requesting to access a corresponding VPN server.
For the situation that a site initially accesses a VPN network, if the site initially fails to dial by using current VPN networking configuration information, backup VPN networking configuration information is not locally stored in the site.
The default VPN networking configuration information is VPN networking configuration information preset in a site when the site leaves a factory, and the default VPN networking configuration information configures an address of a public VPN server, so that the site can be ensured to be correctly accessed to a VPN network.
As an optional implementation manner, when dialing fails by using the backup VPN networking configuration information, acquiring stored default VPN networking configuration information;
and dialing by using the default VPN networking configuration information to request to access a corresponding VPN server.
If the corresponding server modifies the matching relation with the site after the last dialing is successful, the dialing fails when the backup VPN networking configuration information is used for dialing, and in order to ensure that the site can be correctly accessed into a VPN network, the embodiment of the invention utilizes the default VPN networking configuration information for dialing at the moment and requests to access the corresponding VPN server.
As an optional implementation manner, when a site is initially started, because current VPN networking configuration information configured on a network side is not obtained, dialing may be performed by using default VPN networking configuration information to request access to a corresponding VPN server.
When the network side configures the VPN networking configuration information, in order to prevent the VPN networking configuration information from being wrong due to wrong input configuration information, so that a site cannot access a VPN network by using the current wrong VPN networking configuration information, the current/backup/default VPN networking configuration information in the embodiment of the invention comprises main VPN server configuration and backup VPN server configuration, and the current/backup/default VPN networking configuration information is used for dialing, and the method comprises the following steps:
dialing by utilizing the configuration of the main VPN server and requesting to access the corresponding main VPN server;
and when the dialing configuration by using the main VPN server fails, dialing is performed by using the backup VPN server configuration, and the access to a corresponding backup VPN server is requested.
As an optional implementation manner, after the site accesses the backup VPN server, it checks whether the site can access the primary VPN server;
and when the main VPN server is determined to be accessible, disconnecting the backup VPN server, and reusing the configuration of the main VPN server for dialing.
The embodiment of the invention realizes the VPN active-standby mechanism and enhances the usability of the VPN network. In some scenarios, if the backup VPN server is used to connect normally, it is further required to check whether the network of the primary VPN server is connected, and if the network of the primary VPN server is accessible, it is required to disconnect the current backup VPN server and try to establish a VPN connection with the primary VPN server.
Specifically, in the embodiment of the present invention, the current VPN networking configuration information includes an address of the first primary server and an address of the first backup server, and the dialing is performed by using the current VPN networking configuration information, where the dialing includes:
dialing by utilizing the configuration of the first main VPN server to request to access the corresponding first main VPN server;
and when the dialing configuration by using the first main VPN server fails, dialing is performed by using the configuration of the first backup VPN server, and the corresponding first backup VPN server is requested to be accessed.
As an optional implementation manner, since the backup VPN networking configuration information is VPN networking configuration information that has been dialed last time successfully, in the embodiment of the present invention, the backup VPN networking configuration information includes an address of the second master server and an address of the second backup server, and dialing is performed by using the backup VPN networking configuration information, including:
dialing by utilizing the configuration of the second main VPN server to request to access the corresponding second main VPN server;
and when the dialing configuration by using the second main VPN server fails, dialing is performed by using the configuration of the second backup VPN server, and the corresponding second backup VPN server is requested to be accessed.
Further, in the embodiment of the present invention, the default VPN networking configuration information includes an address of a third primary server and an address of a third backup server, and dialing is performed by using the default VPN networking configuration information, where the dialing includes:
dialing by utilizing the configuration of the third main VPN server to request to access the corresponding third main VPN server;
and when the dialing configuration by using the third main VPN server fails, dialing is performed by using the third backup VPN server configuration, and the corresponding third backup VPN server is requested to be accessed.
The embodiment of the invention modifies the VPN networking configuration information of the site, and only modifies the current VPN networking configuration information. Even if the VPN networking configuration information is wrongly modified, after the VPN dialing fails for a period of time, the backup VPN networking configuration information (if the backup VPN networking configuration information is locally stored) or the default VPN networking configuration information (if the backup VPN networking configuration information is not locally stored) which is originally and successfully dialed and stored can be used for connecting an original VPN server (after the new VPN server is deployed, the original VPN server needs to be removed after all equipment is migrated to the new VPN server).
As an optional implementation, the method further comprises: and triggering the site to restart when the dialing fails by utilizing the default VPN networking configuration information.
In the related art, due to instability of the internet of things or a wireless network, it is likely that an unattended site performs VPN redialing in a VPN networking related configuration process, for example, when a network side performs VPN networking related configuration on a site B, the site B releases an IP address, the site a performs redialing, and the site a uses the IP address released by the site B, the configuration of the site B is modified to the site a according to the existing manner.
The method for networking a VPN provided in the embodiment of the present invention further includes:
sending a configuration request to a network side, receiving VPN networking configuration information issued by the network side, and specifically uploading a program and a configuration file related to the VPN networking configuration information to a site by the network side;
determining whether a serial number SN of a site carried when the network side issues VPN networking configuration information is consistent with an SN of the site, receiving a relevant program and a configuration file by the site, operating the program, reading an incoming parameter SN by the program, and judging whether the site SN read by the program is consistent with a local site SN or not;
and if the VPN configuration information is consistent with the VPN configuration information, updating the current VPN networking configuration information to VPN networking configuration information issued by the network side.
The SN code is a unique identification code of the station. When the program is transmitted to the site, if the VPN IP of the site is changed, the program can compare the incoming parameter (site SN code) with the site self-solidified SN code to determine whether the site is a target site, and if the site is not the target site, the program does not execute operation to prevent the site from mismatching.
A detailed flowchart of the VPN networking method according to the embodiment of the present invention is given below with reference to fig. 3, and as shown in fig. 3, the method includes:
311, dialing by using the configuration of the second backup server, and requesting to access to a corresponding second backup VPN server;
at step 318, the station restarts.
The above process is a dialing process, wherein the configuration process and the dialing process are two independent processes, the current VPN networking configuration information modified in the configuration process can participate in the dialing process to dial, and the configuration process specifically includes:
step 301', sending a configuration request to a network side;
step 302', receiving VPN networking configuration information issued by a network side;
step 303', the running program reads a serial number SN of a site carried by a network side when the network side issues VPN configuration information;
step 304', judging whether the read SN is consistent with the SN of the local site, if so, executing step 305', otherwise, executing step 306';
step 305', updating the current VPN networking configuration information into VPN networking configuration information issued by the network side;
step 306', determining that the VPN networking configuration information issued by the network side is invalid, and ending.
Based on the same inventive concept, the present application further provides a VPN networking device 400, as shown in fig. 4, the device includes:
a configuration obtaining module 401, configured to respond to the dialing request, and obtain current VPN networking configuration information configured on the network side;
a first dialing module 402, configured to dial by using the current VPN networking configuration information, and request to access a corresponding VPN server;
a second dialing module 403, configured to, when dialing by using the current VPN networking configuration information fails and it is determined that backup VPN networking configuration information is locally stored, dial by using the backup VPN networking configuration information and request access to a corresponding VPN server;
and a configuration backup module 404, configured to, when the current VPN networking configuration information is used for successful dialing, save the current VPN networking configuration information as backup VPN networking configuration information.
In some possible embodiments, the apparatus further comprises:
the third dialing module is used for acquiring the stored default VPN networking configuration information when the dialing by using the current VPN networking configuration information fails and the backup VPN networking configuration information is not locally stored, or when the dialing by using the backup VPN networking configuration information fails; and dialing by using the default VPN networking configuration information, and requesting to access a corresponding VPN server.
In some possible embodiments, the current/backup/default VPN networking configuration information includes a primary VPN server configuration and a backup VPN server configuration, the first dialing module performs dialing using the current VPN networking configuration information/the second dialing module performs dialing using the backup VPN networking configuration information/the third dialing module performs dialing using the default VPN networking configuration information, including:
dialing by utilizing the configuration of the main VPN server and requesting to access the corresponding main VPN server;
and when the dialing configuration by using the main VPN server fails, dialing is performed by using the backup VPN server configuration, and the access to a corresponding backup VPN server is requested.
In some possible embodiments, the apparatus further comprises:
the connection checking module is used for checking whether the main VPN server can be accessed after the backup VPN server is accessed;
and the dialing switching module is used for disconnecting the connection with the backup VPN server and reusing the configuration of the main VPN server for dialing when the main VPN server can be accessed is determined.
In some possible embodiments, the method further comprises:
the configuration request acquisition module is used for sending a configuration request to a network side and receiving VPN networking configuration information issued by the network side;
the SN comparison module is used for determining whether the SN of the site carried by the network side when the network side issues the VPN configuration information is consistent with the SN of the site;
and the configuration updating module is used for determining consistency and updating the current VPN networking configuration information into VPN networking configuration information issued by the network side.
In some possible embodiments, the apparatus further comprises:
and the site restarting module is used for triggering the site to restart when the dialing of the default VPN networking configuration information fails.
In some possible embodiments, the configuration obtaining module, in response to the dialing request, obtains current VPN networking configuration information configured at the network side, including:
responding to a dialing request triggered when a site is started, and acquiring current VPN networking configuration information configured on a network side; or
And acquiring the current VPN networking configuration information configured by the network side in response to a dialing request triggered after receiving the VPN networking configuration information issued by the network side.
Having described the monitoring node search method and apparatus according to an exemplary embodiment of the present application, an electronic device according to another exemplary embodiment of the present application is described next.
As will be appreciated by one skilled in the art, aspects of the present application may be embodied as a system, method or program product. Accordingly, various aspects of the present application may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
In some possible implementations, an electronic device according to the present application may include at least one processor, and at least one memory. The memory stores therein program code which, when executed by the processor, causes the processor to perform the steps of the method for searching for a monitoring node according to various exemplary embodiments of the present application described above in the present specification. For example, the processor may perform steps in a search method as the monitoring node.
A VPN networking apparatus 150 according to this embodiment of the present application is described below with reference to fig. 5. The VPN networked device 150 shown in fig. 5 is merely an example, and should not impose any limitations on the functionality or scope of use of embodiments of the present application.
As shown in fig. 5, the VPN networked device 150 is in the form of a general purpose electronic device. Components of VPN networked device 150 may include, but are not limited to: the at least one processor 151, the at least one memory 152, and a bus 153 connecting the various system components (including the memory 152 and the processor 151).
Bus 153 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
The memory 152 may include readable media in the form of volatile memory, such as Random Access Memory (RAM) 1521 and/or cache memory 1522, and may further include Read Only Memory (ROM) 1523.
Memory 152 may also include a program/utility 1525 having a set (at least one) of program modules 1524, such program modules 1524 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may comprise an implementation of a network environment.
The electronic device 150 may also communicate with one or more external devices 154 (e.g., keyboard, pointing device, etc.), with one or more devices that enable a user to interact with the electronic device 150, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 150 to communicate with one or more other electronic devices. Such communication may occur via an input/output (I/O) interface 155. Also, the electronic device 150 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 156. As shown, the network adapter 156 communicates with other modules for the electronic device 150 over the bus 153. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 150, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
In some possible embodiments, the various aspects of a method for VPN networking provided herein may also be embodied in a form of a program product including program code for causing a computer device to perform the steps in one of the monitoring methods according to various exemplary embodiments of the present application described above in this specification when the program product is run on the computer device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The program product for monitoring of the embodiments of the present application may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on an electronic device. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the consumer electronic device, partly on the consumer electronic device, as a stand-alone software package, partly on the consumer electronic device and partly on a remote electronic device, or entirely on the remote electronic device or server. In the case of remote electronic devices, the remote electronic devices may be connected to the consumer electronic device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external electronic device (e.g., through the internet using an internet service provider).
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functions of two or more of the units described above may be embodied in one unit, according to embodiments of the application. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.
Further, while the operations of the methods of the present application are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and block diagrams, and combinations of flows and blocks in the flowchart illustrations and block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the present application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
Claims (15)
1. A VPN networking method applied to a site, the method comprising:
responding to the dialing request, and acquiring current VPN networking configuration information configured on a network side;
dialing by using the current VPN networking configuration information to request to access a corresponding VPN server;
when the dialing by using the current VPN networking configuration information fails and the backup VPN networking configuration information is determined to be locally stored, dialing is performed by using the backup VPN networking configuration information to request to access a corresponding VPN server;
and when the current VPN networking configuration information is used for dialing successfully, saving the current VPN networking configuration information as backup VPN networking configuration information.
2. The method of claim 1, further comprising:
when the current VPN networking configuration information is failed to dial, and the backup VPN networking configuration information is not locally stored, or when the backup VPN networking configuration information is failed to dial, the stored default VPN networking configuration information is obtained;
and dialing by using the default VPN networking configuration information, and requesting to access a corresponding VPN server.
3. The method of claim 1 or 2, wherein said current/backup/default VPN networking configuration information includes a primary VPN server configuration and a backup VPN server configuration, and wherein dialing using said current/backup/default VPN networking configuration information comprises:
dialing by utilizing the configuration of the main VPN server and requesting to access the corresponding main VPN server;
and when the dialing configuration by using the main VPN server fails, dialing is performed by using the backup VPN server configuration, and the access to a corresponding backup VPN server is requested.
4. The method of claim 3, further comprising:
after accessing the backup VPN server, checking whether the main VPN server can be accessed;
and when the main VPN server is determined to be accessible, disconnecting the backup VPN server, and reusing the configuration of the main VPN server for dialing.
5. The method of claim 1 or 2, further comprising:
sending a configuration request to a network side, and receiving VPN networking configuration information issued by the network side;
determining whether the serial number SN of the site carried by the network side when issuing the VPN networking configuration information is consistent with the SN of the site;
and if the VPN configuration information is consistent with the VPN configuration information, updating the current VPN networking configuration information to VPN networking configuration information issued by the network side.
6. The method of claim 2, further comprising:
and triggering the site to restart when the dialing fails by utilizing the default VPN networking configuration information.
7. The method according to claim 1 or 2, wherein the obtaining of the current VPN networking configuration information configured on the network side in response to the dialing request comprises:
responding to a dialing request triggered when a site is started, and acquiring current VPN networking configuration information configured on a network side; or
And responding to a dialing request triggered after receiving the VPN networking configuration information issued by the network side, and acquiring the current VPN networking configuration information configured by the network side.
8. A VPN networking apparatus, comprising:
the configuration acquisition module is used for responding to the dialing request and acquiring the current VPN networking configuration information configured on the network side;
the first dialing module is used for dialing by utilizing the current VPN networking configuration information and requesting to access a corresponding VPN server;
the second dialing module is used for dialing by using the backup VPN networking configuration information when the current VPN networking configuration information is failed to dial and the backup VPN networking configuration information is determined to be locally stored, and requesting to access a corresponding VPN server;
and the configuration backup module is used for taking the current VPN networking configuration information as backup VPN networking configuration information to store when the current VPN networking configuration information is used for dialing successfully.
9. The apparatus of claim 8, further comprising:
the third dialing module is used for acquiring the stored default VPN networking configuration information when the dialing by using the current VPN networking configuration information fails and the backup VPN networking configuration information is not locally stored, or when the dialing by using the backup VPN networking configuration information fails; and dialing by using the default VPN networking configuration information, and requesting to access a corresponding VPN server.
10. The apparatus of claim 8 or 9, wherein the current/backup/default VPN networking configuration information includes a primary VPN server configuration and a backup VPN server configuration, and wherein the first dialing module dials using the current VPN networking configuration information/the second dialing module dials using the backup VPN networking configuration information/the third dialing module dials using the default VPN networking configuration information, comprises:
dialing by utilizing the configuration of the main VPN server to request to access the corresponding main VPN server;
and when the dialing configuration by using the main VPN server fails, dialing is performed by using the backup VPN server configuration, and the access to a corresponding backup VPN server is requested.
11. The apparatus of claim 10, further comprising:
the connection checking module is used for checking whether the main VPN server can be accessed after the backup VPN server is accessed;
and the dialing switching module is used for disconnecting the connection with the backup VPN server and reusing the configuration of the main VPN server for dialing when the main VPN server can be accessed.
12. The apparatus of claim 8 or 9, further comprising:
the configuration request acquisition module is used for sending a configuration request to a network side and receiving VPN networking configuration information issued by the network side;
the SN comparison module is used for determining whether the SN of the site carried by the network side when the network side issues the VPN networking configuration information is consistent with the SN of the site;
and the configuration updating module is used for determining consistency and updating the current VPN networking configuration information into the VPN networking configuration information issued by the network side.
13. The apparatus of claim 9, further comprising:
and the site restarting module is used for triggering the site to restart when the dialing of the default VPN networking configuration information fails.
14. The apparatus according to claim 8 or 9, wherein the configuration obtaining module obtains current VPN networking configuration information configured on the network side in response to the dialing request, and includes:
responding to a dialing request triggered when a site is started, and acquiring current VPN networking configuration information configured on a network side; or
And responding to a dialing request triggered after receiving the VPN networking configuration information issued by the network side, and acquiring the current VPN networking configuration information configured by the network side.
15. An apparatus for VPN networking, comprising at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110824672.4A CN115695168A (en) | 2021-07-21 | 2021-07-21 | VPN networking method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110824672.4A CN115695168A (en) | 2021-07-21 | 2021-07-21 | VPN networking method, device and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115695168A true CN115695168A (en) | 2023-02-03 |
Family
ID=85044721
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110824672.4A Pending CN115695168A (en) | 2021-07-21 | 2021-07-21 | VPN networking method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115695168A (en) |
-
2021
- 2021-07-21 CN CN202110824672.4A patent/CN115695168A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101970839B1 (en) | Replaying jobs at a secondary location of a service | |
US8082344B2 (en) | Transaction manager virtualization | |
CN114138754B (en) | Software deployment method and device based on Kubernetes platform | |
CN109039788B (en) | Port configuration method and device of network equipment and storage medium | |
CN108984349B (en) | Method and device for electing master node, medium and computing equipment | |
CN103500111A (en) | Information configuration method and device based on zookeeper | |
US10721335B2 (en) | Remote procedure call using quorum state store | |
CN108347339B (en) | A service recovery method and device | |
CN105450759A (en) | System mirror image management method and device | |
US20140280799A1 (en) | Managing virtual computing services | |
WO2017049997A1 (en) | Virtual machine monitoring method, apparatus and system based on cloud computing service | |
CN110995481A (en) | Configuration method, server and computer-readable storage medium | |
US9614716B2 (en) | Controller maintenance in a network-attached storage system | |
KR20150111608A (en) | Method for duplication of virtualization server and Virtualization control apparatus thereof | |
US20200145284A1 (en) | Validating Network Configuration Using Shadow Databases | |
CN113515316A (en) | Novel edge cloud operating system | |
CN112948008A (en) | Ironic based physical bare computer management method | |
CN102567050B (en) | The method and apparatus of B/S system remote deploying projects | |
CN114095343A (en) | Disaster recovery method, device, equipment and storage medium based on double-active system | |
US20230336407A1 (en) | Automated server restoration construct for cellular networks | |
CN112291081A (en) | Method, system and storage medium for auditing controller cluster data by cloud management platform | |
CN117768291A (en) | Service providing method, device, equipment and storage medium | |
CN115695168A (en) | VPN networking method, device and equipment | |
CN114691304B (en) | Method, device, equipment and medium for realizing high availability of cluster virtual machine | |
CN115827148A (en) | Resource management method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |