Inter-access method between intranet device and extranet device, routing device and server

By converting the IP address of the internal network device in the NAT routing device and using the verification mechanism of the identity authentication verification server, the security and success rate issues during mutual access between the internal network device and the external network device are solved, and an efficient, Low-cost secure mutual access.

CN116032879BActive Publication Date: 2024-09-20CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211726104.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2024-09-20
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

Existing network address translation methods lack security mechanism guarantees when internal network devices and external network devices communicate with each other, or have low success rates and high implementation costs, failing to take into account security, success rate, and cost.

Method used

By receiving the access request of the internal network device in the NAT routing device and converting its IP address, and using the identity authentication verification server to verify the device identity and IP address of the external network device, mutual access is established only when the verification passes. Channel to achieve secure mutual access between internal network devices and external network devices.

Benefits of technology

It realizes secure mutual access between internal network equipment and external network equipment, with high success rate and low implementation cost, and can take into account security, success rate and cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116032879B
    Figure CN116032879B
Patent Text Reader

Abstract

This invention provides a method for mutual access between intranet devices and extranet devices, a NAT routing device, an identifier authentication and verification server, a computer device, and a storage medium, relating to the field of communication technology. The method includes: the NAT routing device receiving a request from an intranet device to access an extranet device; translating the IP address of the intranet device so that the intranet device can access the extranet device based on the translated IP address and the IP address of the extranet device to be accessed; receiving a request from the extranet device to access the intranet device; sending an identifier verification request to the identifier authentication and verification server to verify the device identifier and IP address of the extranet device; and, in response to successful verification, establishing a mutual access channel between the intranet device and the extranet device to enable the extranet device to access the intranet device. The technical solution provided by this invention can achieve secure mutual access between intranet devices and extranet devices with a high success rate and low implementation cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method for mutual access between an intranet device and an extranet device, a NAT routing device, an identification authentication verification server, a computer device and a computer-readable storage medium. Background Art

[0002] Currently, the Network Address Translation (NAT) method has been widely used to support information communication between devices with intranet IP addresses and devices on the public network. The IP address of the device on the intranet is converted to the public IP address through a router, and various information interactions with devices already on the public network are completed accordingly.

[0003] There are four types of existing network address translation methods, namely: full cone NAT, IP restricted NAT, port restricted NAT, and symmetric NAT. Among them, the obvious feature of full cone NAT is that the internal network device accesses the external network device through NAT routing, and the external network device will record the routing path information. Other external network devices can reuse the routing path information to access the internal network device to establish communication; IP restricted NAT adds an IP address access verification mechanism on the basis of full cone NAT, allowing only public network devices that have completed the communication based on NAT to access the internal network device, and other external network devices cannot access the internal network device even if they know this routing path; port restricted NAT, on the basis of IP restricted NAT verifying the IP of the external network device, adds a port confirmation mechanism, that is, the external network device can only access the internal network device through a fixed port; symmetric NAT is the most stringent verification scheme compared to the first three types of NAT. Under this scheme, each mutual communication between the internal network device and the external network device uses a completely different routing path, and the previous routing path will not be used repeatedly.

[0004] However, full cone NAT lacks a security mechanism to protect against illegal external network devices accessing internal network devices caused by routing path leakage; IP restricted NAT fails to avoid the problem of lack of security mechanism protection for external network devices with the same forged public IP to access internal network devices; although port restricted NAT adds a port verification mechanism based on IP restricted NAT, it cannot completely avoid the security issues caused by the replacement of the access source port; although symmetric NAT has the characteristic of using a single routing path for a single access, when encountering the same type of NAT or port restricted NAT, the success rate will be very low and the implementation cost will increase sharply. Summary of the invention

[0005] The present invention is completed in order to at least partially solve the technical problems in the prior art that when intranet devices and extranet devices access each other, either there is a lack of security mechanism protection, or the success rate is very low and the implementation cost increases sharply, and it is impossible to take into account the security, success rate and implementation cost.

[0006] According to one aspect of the present invention, a method for mutual access between an intranet device and an extranet device is provided, which is applied to a network address translation NAT routing device, and the method comprises:

[0007] Receive a request for accessing an external network device sent by an internal network device, wherein the request for accessing an external network device carries an IP address of the internal network device and an IP address of the external network device to be accessed;

[0008] Converting the IP address of the intranet device so that the intranet device can access the external network device based on the converted IP address and the IP address of the external network device to be accessed;

[0009] Receiving a request for accessing an intranet device sent by the external network device, wherein the request for accessing the intranet device carries a device identifier of the external network device and an IP address of the external network device;

[0010] Sending an identification verification request to an identification authentication verification server, the identification verification request carrying the device identification of the external network device and the IP address of the external network device sent by the external network device to the NAT routing device, so that the identification authentication verification server verifies the device identification of the external network device and the IP address of the external network device carried in the identification verification request, obtains a verification result, and returns the verification result to the NAT routing device; and

[0011] The verification result sent by the identification authentication verification server is received, and in response to the verification being passed, a mutual access channel is established between the intranet device and the extranet device so that the extranet device can access the intranet device.

[0012] Optionally, after receiving the request for accessing the external network device sent by the internal network device, the method further includes:

[0013] Sending an identification query request to an identification authentication verification server, the identification query request carrying the IP address of the external network device to be accessed, so that the identification authentication verification server receives the identification query request, queries the device identification of the external network device corresponding to the IP address of the external network device to be accessed, and returns the device identification of the external network device to the NAT routing device; and

[0014] Receive the device identification of the external network device sent by the identification authentication verification server.

[0015] Optionally, after receiving the device identification of the external network device sent by the identification authentication verification server, the method further includes:

[0016] A device number is generated based on the device identification of the external network device, the device number is sent to the identification authentication verification server, and the device number and the access address of the identification authentication verification server are sent to the external network device, so that the identification authentication verification server receives a server access request sent by the external network device based on the access address of the identification authentication verification server, the server access request carries the device number, and the device identification of the corresponding external network device is queried based on the device number, and the queried device identification of the external network device is sent to the external network device.

[0017] Optionally, after receiving the device identification of the external network device sent by the identification authentication verification server, the method further includes:

[0018] A device number is generated based on the device identification of the external network device, and the device number is sent to the identification authentication verification server, and the device number and the access address of the identification authentication verification server are sent to the external network device, so that the identification authentication verification server receives the server access request sent by the external network device based on the access address of the identification authentication verification server, and the server access request carries the IP address of the external network device, and sends a random password generation request to the random password generation server, and the random password generation request carries the IP address of the external network device, so that the random password generation server generates a random password based on the IP address of the external network device, and sends the random password to the identification authentication verification server respectively. The identification authentication verification server sends a time-limited random password entry request to the external network device, and the external network device sends a device identification acquisition request to the identification authentication verification server within a preset time period, wherein the device identification acquisition request carries the random password received by the external network device from the random password generation server and the device number received by the external network device from the NAT routing device; and the identification authentication verification server responds to receiving the device identification acquisition request within the preset time period, queries the device identification of the corresponding external network device based on the random password and device number carried in the device identification acquisition request, and sends the queried device identification of the external network device to the external network device.

[0019] Optionally, converting the IP address of the intranet device so that the intranet device accesses the external network device based on the converted IP address and the IP address of the external network device to be accessed includes:

[0020] The IP address of the internal network device is replaced with the public network IP address of the NAT routing device, so that the internal network device can access the external network device based on the public network IP address and the IP address of the external network device to be accessed.

[0021] Optionally, after establishing a mutual access channel between the intranet device and the extranet device, the following steps are further included:

[0022] When the intranet device and the extranet device visit each other again, they repeatedly use the established mutual access channel, and before using the mutual access channel each time, the NAT routing device sends an identification verification request to the identification authentication verification server, so that the identification authentication verification server verifies the device identification of the extranet device and the IP address of the extranet device. In response to the verification being passed, the NAT routing device maps the IP address of the intranet device to the converted IP address, and then enables the intranet device to exchange data with the extranet device.

[0023] According to another aspect of the present invention, a method for mutual access between an intranet device and an extranet device is provided, which is applied to an identification authentication verification server, and the method includes:

[0024] Receive an identification verification request sent by a network address translation NAT routing device, wherein the NAT routing device receives a request for accessing an external network device sent by an internal network device, the request for accessing an external network device carries the IP address of the internal network device and the IP address of the external network device to be accessed, converts the IP address of the internal network device so that the internal network device accesses the external network device based on the converted IP address and the IP address of the external network device to be accessed, receives a request for accessing the internal network device sent by the external network device, the request for accessing the internal network device carries the device identification of the external network device and the IP address of the external network device, and sends an identification verification request to an identification authentication verification server, the identification verification request carries the device identification of the external network device and the IP address of the external network device sent by the external network device to the NAT routing device;

[0025] Verify the device identification of the external network device and the IP address of the external network device carried in the identification verification request to obtain a verification result;

[0026] The verification result is returned to the NAT routing device so that the NAT routing device receives the verification result sent by the identification authentication verification server. In response to the verification passing, a mutual access channel is established between the intranet device and the extranet device so that the extranet device can access the intranet device.

[0027] Optionally, before receiving the identification verification request sent by the NAT routing device, the method further includes:

[0028] Receiving an identification query request sent by a NAT routing device, wherein after receiving a request to access an external network device sent by an internal network device, the NAT routing device sends an identification query request to an identification authentication verification server, wherein the identification query request carries the IP address of the external network device to be accessed;

[0029] Query the device identification of the external network device corresponding to the IP address of the external network device to be accessed, and return the device identification of the external network device to the NAT routing device, so that the NAT routing device receives the device identification of the external network device sent by the identification authentication verification server.

[0030] Optionally, after returning the device identifier of the external network device to the NAT routing device, the method further includes:

[0031] Receiving a device number sent by a NAT routing device, wherein after receiving the device identification of the external network device sent by the identification authentication verification server, the NAT routing device generates a device number based on the device identification of the external network device, and sends the device number to the identification authentication verification server, and sends the device number and the access address of the identification authentication verification server to the external network device;

[0032] Receiving a server access request sent by the external network device based on the access address of the identification authentication verification server, wherein the server access request carries the device number;

[0033] The device identification of the corresponding external network device is queried based on the device number, and the queried device identification of the external network device is sent to the external network device.

[0034] Optionally, after returning the device identifier of the external network device to the NAT routing device, the method further includes:

[0035] Receiving a device number sent by a NAT routing device, wherein after receiving the device identification of the external network device sent by the identification authentication verification server, the NAT routing device generates a device number based on the device identification of the external network device, and sends the device number to the identification authentication verification server, and sends the device number and the access address of the identification authentication verification server to the external network device;

[0036] Receiving a server access request sent by the external network device based on the access address of the identification authentication verification server, wherein the server access request carries the IP address of the external network device;

[0037] Sending a random password generation request to a random password generation server, wherein the random password generation request carries the IP address of the external network device, so that the random password generation server generates a random password based on the IP address of the external network device, and sends the random password to the identification authentication verification server and the external network device respectively;

[0038] Sending a time-limited random password entry request to the external network device, so that the external network device sends a device identification acquisition request to the identification authentication verification server within a preset time period, and the device identification acquisition request carries the random password received by the external network device from the random password generation server and the device number received by the external network device from the NAT routing device;

[0039] In response to receiving the device identification acquisition request within the preset time period, the device identification of the corresponding external network device is queried based on the random password and device number carried in the device identification acquisition request, and the queried device identification of the external network device is sent to the external network device.

[0040] According to another aspect of the present invention, there is provided a network address translation NAT routing device, comprising:

[0041] A first receiving module, which is configured to receive a request for accessing an external network device sent by an internal network device, wherein the request for accessing an external network device carries an IP address of the internal network device and an IP address of the external network device to be accessed;

[0042] An address conversion module, which is configured to convert the IP address of the intranet device so that the intranet device can access the external network device based on the converted IP address and the IP address of the external network device to be accessed;

[0043] The first receiving module is further configured to receive a request for accessing an intranet device sent by the external network device, wherein the request for accessing an intranet device carries a device identifier of the external network device and an IP address of the external network device;

[0044] A first sending module, which is configured to send an identification verification request to an identification authentication verification server, wherein the identification verification request carries the device identification of the external network device and the IP address of the external network device sent by the external network device to the NAT routing device, so that the identification authentication verification server verifies the device identification of the external network device and the IP address of the external network device carried by the identification verification request, obtains a verification result, and returns the verification result to the NAT routing device;

[0045] The first receiving module is further configured to receive the verification result sent by the identification authentication verification server; and

[0046] The channel establishment module is configured to establish a mutual access channel between the internal network device and the external network device in response to the verification result being a verification pass, so that the external network device can access the internal network device.

[0047] According to another aspect of the present invention, there is provided an identification authentication verification server, comprising:

[0048] A second receiving module is configured to receive an identification verification request sent by a network address translation NAT routing device, wherein the NAT routing device receives a request for accessing an external network device sent by an internal network device, the request for accessing an external network device carries the IP address of the internal network device and the IP address of the external network device to be accessed, converts the IP address of the internal network device so that the internal network device accesses the external network device based on the converted IP address and the IP address of the external network device to be accessed, receives a request for accessing the internal network device sent by the external network device, the request for accessing the internal network device carries the device identification of the external network device and the IP address of the external network device, and sends an identification verification request to an identification authentication verification server, the identification verification request carries the device identification of the external network device and the IP address of the external network device sent by the external network device to the NAT routing device;

[0049] a verification module, which is configured to verify the device identification of the external network device and the IP address of the external network device carried in the identification verification request to obtain a verification result; and

[0050] The second sending module is configured to return the verification result to the NAT routing device, so that the NAT routing device receives the verification result sent by the identification authentication verification server, and in response to the verification passing, establishes a mutual access channel between the intranet device and the external network device, so that the external network device accesses the intranet device.

[0051] According to another aspect of the present invention, there is provided a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the aforementioned method for mutual access between an intranet device and an extranet device.

[0052] According to another aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the processor executes the aforementioned method for mutual access between an intranet device and an extranet device.

[0053] The technical solution provided by the present invention may include the following beneficial effects:

[0054] The method for mutual access between an intranet device and an extranet device provided by the present invention converts the IP address of the intranet device through a NAT routing device when the intranet device accesses the extranet device, so that the intranet device accesses the extranet device based on the converted IP address and the IP address of the extranet device to be accessed; when the extranet device accesses the intranet device, the device identification of the extranet device and the IP address of the extranet device sent by the extranet device are verified through an identification authentication verification server; once the verification is passed, the NAT routing device can establish a mutual access channel between the intranet device and the extranet device, thereby realizing safe mutual access between the intranet device and the public network device, with high success rate and low implementation cost, and can take into account security, success rate and implementation cost.

[0055] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.

[0057] Figure 1 A flow chart of a method for mutual access between an intranet device and an extranet device provided in an embodiment of the present invention;

[0058] Figure 2 A flowchart of another method for mutual access between an intranet device and an extranet device provided by an embodiment of the present invention;

[0059] Figure 3 A flowchart of another method for mutual access between an intranet device and an extranet device provided by an embodiment of the present invention;

[0060] Figure 4 A schematic diagram of the structure of a NAT routing device provided by an embodiment of the present invention;

[0061] Figure 5 A schematic diagram of the structure of an identification authentication verification server provided by an embodiment of the present invention;

[0062] Figure 6 A schematic diagram of the structure of the mutual access system between the intranet device and the extranet device provided by the embodiment of the present invention;

[0063] Figure 7 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0064] To make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present invention, and is not used to limit the present invention.

[0065] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence; and, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be arbitrarily combined with each other. In the subsequent description, the use of suffixes such as "module", "component" or "unit" used to represent elements is only to facilitate the description of the present invention, and has no specific meaning in itself. Therefore, "module", "component" or "unit" can be used in a mixed manner.

[0066] Taking into account the technical problems existing in the existing four types of network address translation methods, the present invention proposes an optimization scheme that is different from the above four types of network address translation methods and can ensure the access security between internal network devices and external network devices during the network address translation process. Specifically, the device identification of the external network device and the time-limited random password authentication mechanism are added to achieve secure mutual access between the internal network device and the external network device, which is described in detail through specific embodiments below.

[0067] Figure 1 A flow chart of a method for mutual access between an intranet device and an extranet device provided by an embodiment of the present invention. Figure 1 As shown, the method is applied to a NAT routing device, and includes the following steps S101 to S105.

[0068] S101. Receive a request for accessing an external network device sent by an internal network device, wherein the request for accessing an external network device carries an IP address of the internal network device and an IP address of the external network device to be accessed.

[0069] In this step, the intranet device needs to first specify the IP address of the external network device to be accessed, and send a request to access the external network device to the NAT routing device.

[0070] S102. Convert the IP address of the internal network device so that the internal network device can access the external network device based on the converted IP address and the IP address of the external network device to be accessed.

[0071] In this step, the NAT routing device needs to convert the IP address of the internal network device to enable the internal network device to access the external network device, and then the internal network device can access the external network device based on the converted IP address.

[0072] Specifically, the NAT routing device replaces the IP address of the internal network device with the public network IP address of the NAT routing device, so that the internal network device accesses the external network device based on the public network IP address and the IP address of the external network device to be accessed.

[0073] Since the NAT router itself has at least one valid public IP address, the IP address of the intranet device will be replaced with the public IP address of the NAT router when accessing the external network, and the public IP address comes from the valid address in the public address pool of the NAT router. For example, if a device with an intranet IP address of 192.168.2.180 wants to access a public server with an IP address of 123.6.0.1, its intranet IP address 192.168.2.180 will be replaced with the public address 10.0.0.1 at the NAT router, and the communication will be completed after the intranet IP address 192.168.2.180 is mapped to the public IP address 10.0.0.1 to complete the data interaction with the external public IP address 123.6.0.1.

[0074] S103: Receive a request for accessing an internal network device sent by the external network device, wherein the request for accessing an internal network device carries a device identifier of the external network device and an IP address of the external network device.

[0075] In this step, when the external network device wants to access the internal network device, it needs to send the device identification and IP address of the external network device to the NAT routing device through the access request to the internal network device, so as to complete the verification work in the subsequent steps.

[0076] S104. Send an identification verification request to the identification authentication verification server, wherein the identification verification request carries the device identification of the external network device and the IP address of the external network device sent by the external network device to the NAT routing device, so that the identification authentication verification server verifies the device identification of the external network device and the IP address of the external network device carried in the identification verification request, obtains the verification result, and returns the verification result to the NAT routing device.

[0077] In this step, the NAT routing device can send the device identification of the external network device and the IP address of the external network device sent by the external network device to the identification authentication verification server through an identification verification request. The identification authentication verification server uses the stored correspondence between the device identification of the external network device and the IP address of the external network device to complete the verification operation, and returns the verification result to the NAT routing device.

[0078] S105. Receive the verification result sent by the identification authentication verification server, and in response to the verification passing, establish a mutual access channel between the intranet device and the extranet device to enable the extranet device to access the intranet device.

[0079] In this step, the device identification of the external network device and the IP address of the external network device are verified to determine whether the access to the external network device is safe. If the verification passes, a mutual access channel is established between the internal network device and the external network device to achieve secure mutual access between the internal network device and the external network device.

[0080] In an optional implementation, after step S101, the following steps S106 to S107 are also included.

[0081] S106. Send an identification query request to the identification authentication verification server, the identification query request carries the IP address of the external network device to be accessed, so that the identification authentication verification server receives the identification query request, queries the device identification of the external network device corresponding to the IP address of the external network device to be accessed, and returns the device identification of the external network device to the NAT routing device;

[0082] S107: Receive the device identification of the external network device sent by the identification authentication verification server.

[0083] In this embodiment, since the identification authentication verification server stores the correspondence between the device identifications of multiple external network devices and their respective IP addresses, after receiving the identification query request sent by the NAT routing device, the device identification D of the corresponding external network device can be queried based on the IP address of the external network device carried in the request, and then returned to the NAT routing device.

[0084] In a specific implementation, after step S107, the following step S108 is also included.

[0085] S108. Generate a device number based on the device identification of the external network device, send the device number to the identification authentication verification server, and send the device number and the access address of the identification authentication verification server to the external network device, so that the identification authentication verification server receives the server access request sent by the external network device based on the access address of the identification authentication verification server, the server access request carries the device number, queries the device identification of the corresponding external network device based on the device number, and sends the queried device identification of the external network device to the external network device.

[0086] In this embodiment, after receiving the device identification of the external network device returned by the identification authentication verification server, the NAT routing device can use the device identification of the external network device to generate a corresponding device number X, and the device identification is uniquely corresponding to the device number X, and then send the device number X to the identification authentication verification server and the external network device respectively, and also send the access address of the identification authentication verification server to the external network device, so that the external network device can access the identification authentication verification server.

[0087] After receiving the device number X of the external network device sent by the NAT routing device, the identification authentication verification server stores the device identification D of the external network device in correspondence with the device number X. When the external network device accesses the identification authentication verification server, it carries the device number X of the external network device. The identification authentication verification server queries the device identification of the corresponding external network device and returns it to the external network device. The external network device can then send a request to the NAT routing device to access the internal network device, carrying the device identification D of the external network device and the IP address of the external network device (i.e., the aforementioned step S103).

[0088] In another optional implementation, after step S107, the following step S109 is also included.

[0089] S109. Generate a device number based on the device identification of the external network device, send the device number to the identification authentication verification server, and send the device number and the access address of the identification authentication verification server to the external network device, so that the identification authentication verification server receives the server access request sent by the external network device based on the access address of the identification authentication verification server, the server access request carries the IP address of the external network device, sends a random password generation request to the random password generation server, the random password generation request carries the IP address of the external network device, so that the random password generation server generates a random password based on the IP address of the external network device, and sends the random password to the identification authentication verification server respectively. Verify the server and the external network device; and enable the identification authentication verification server to send a time-limited random password entry request to the external network device, and enable the external network device to send a device identification acquisition request to the identification authentication verification server within a preset time period, and the device identification acquisition request carries the random password received by the external network device from the random password generation server and the device number received by the external network device from the NAT routing device; and enable the identification authentication verification server to respond to receiving the device identification acquisition request within the preset time period, query the device identification of the corresponding external network device based on the random password and device number carried in the device identification acquisition request, and send the queried device identification of the external network device to the external network device.

[0090] In this embodiment, in the process of the external network device obtaining the device identification D from the identification authentication verification server, a time-limited random password authentication mechanism may be added to further ensure the secure mutual access between the internal network device and the external network device.

[0091] Specifically, after receiving the device identification of the external network device returned by the identification authentication verification server, the NAT routing device can generate a corresponding device number X using the device identification of the external network device, and the device identification is uniquely corresponding to the device number X, and then send the device number X to the identification authentication verification server and the external network device respectively, and also send the access address of the identification authentication verification server to the external network device so that the external network device can access the identification authentication verification server. After receiving the device number X of the external network device sent by the NAT routing device, the identification authentication verification server stores the device identification D of the external network device in correspondence with the device number X. After receiving the server access request sent by the external network device, the identification authentication verification server sends a random password generation requirement to the random password generation server. The random password generation server then generates a corresponding random password based on the IP address of the external network device carried in the random password generation requirement, and sends it to the identification authentication verification server and the external network device respectively; then the identification authentication verification server sends a time-limited random password entry requirement to the external network device, requiring the external network device to enter a random password and a device number X within a preset time period. If the device identification acquisition request sent by the external network device to the identification authentication verification server within the preset time period carries the random password and the device number X, the device identification D of the corresponding external network device is queried and returned to the external network device. The external network device can then send a request to access the internal network device carrying the device identification D of the external network device and the IP address of the external network device to the NAT routing device (i.e., the aforementioned step S103).

[0092] In a specific implementation manner, after step S105, the following step S110 is further included:

[0093] When the intranet device and the extranet device visit each other again, they repeatedly use the established mutual access channel, and before using the mutual access channel each time, the NAT routing device sends an identification verification request to the identification authentication verification server, so that the identification authentication verification server verifies the device identification of the extranet device and the IP address of the extranet device. In response to the verification being passed, the NAT routing device maps the IP address of the intranet device to the converted IP address, and then enables the intranet device to exchange data with the extranet device.

[0094] In this embodiment, after a mutual access channel is established between the intranet device and the extranet device, the channel can be used repeatedly for mutual access between the two without having to repeatedly establish the mutual access channel. Each time the mutual access channel is used, only the device identification of the extranet device and the IP address verification process of the extranet device need to be executed. After the verification is passed, the intranet device can securely access the extranet device and realize data interaction.

[0095] It should be noted that the order of the above steps is only a specific example provided to illustrate the embodiment of the present invention. The present invention does not limit the order of the above steps, and those skilled in the art may adjust them as needed in practical applications; and the size of the sequence numbers of the above steps does not limit their execution order.

[0096] Figure 2 A flow chart of another method for mutual access between an intranet device and an extranet device provided by an embodiment of the present invention. Figure 2 As shown, the method is applied to an identification authentication verification server, and includes the following steps S201 to S203.

[0097] S201. Receive an identification verification request sent by a network address translation NAT routing device, wherein the NAT routing device receives an access request sent by an intranet device to an external network device, the access request to an external network device carries the IP address of the intranet device and the IP address of the external network device to be accessed, converts the IP address of the intranet device so that the intranet device can access the external network device based on the converted IP address and the IP address of the external network device to be accessed, receives an access request to an intranet device sent by the external network device, the access request to an intranet device carries the device identification of the external network device and the IP address of the external network device, and sends an identification verification request to an identification authentication verification server, the identification verification request carries the device identification of the external network device and the IP address of the external network device sent by the external network device to the NAT routing device;

[0098] S202. Verify the device identifier and IP address of the external network device carried in the identification verification request to obtain the verification result;

[0099] S203. Return the verification result to the NAT routing device, so that the NAT routing device receives the verification result sent by the identification authentication verification server. In response to the verification passing, a mutual access channel is established between the intranet device and the extranet device, so that the extranet device accesses the intranet device.

[0100] In a specific implementation, before step S201, the following steps S204 and S205 are also included.

[0101] S204. Receive an identification query request sent by a NAT routing device, wherein the NAT routing device sends an identification query request to an identification authentication verification server after receiving a request to access an external network device sent by an internal network device, wherein the identification query request carries the IP address of the external network device to be accessed;

[0102] S205. Query the device identification of the external network device corresponding to the IP address of the external network device to be accessed, and return the device identification of the external network device to the NAT routing device, so that the NAT routing device receives the device identification of the external network device sent by the identification authentication verification server.

[0103] In an optional implementation, after step S205, the following steps S206 to S208 are also included.

[0104] S206. Receive the device number sent by the NAT routing device, wherein the NAT routing device generates a device number based on the device identification of the external network device after receiving the device identification of the external network device sent by the identification authentication verification server, and sends the device number to the identification authentication verification server, and sends the device number and the access address of the identification authentication verification server to the external network device;

[0105] S207. Receive a server access request sent by the external network device based on the access address of the identification authentication verification server, the server access request carrying the device number;

[0106] S208. Query the device identification of the corresponding external network device based on the device number, and send the queried device identification of the external network device to the external network device.

[0107] In another optional implementation, after step S205, the following steps S209 to S213 are also included.

[0108] S209. Receive the device number sent by the NAT routing device, wherein after receiving the device identification of the external network device sent by the identification authentication verification server, the NAT routing device generates a device number based on the device identification of the external network device, and sends the device number to the identification authentication verification server, and sends the device number and the access address of the identification authentication verification server to the external network device;

[0109] S210. Receive a server access request sent by the external network device based on the access address of the identification authentication verification server, the server access request carries the IP address of the external network device;

[0110] S211. Send a random password generation request to the random password generation server, the random password generation request carries the IP address of the external network device, so that the random password generation server generates a random password based on the IP address of the external network device, and sends the random password to the identification authentication verification server and the external network device respectively;

[0111] S212. Send a time-limited random password entry request to the external network device, so that the external network device sends a device identification acquisition request to the identification authentication verification server within a preset time period, and the device identification acquisition request carries the random password received by the external network device from the random password generation server and the device number received by the external network device from the NAT routing device;

[0112] S213. In response to receiving the device identification acquisition request within the preset time period, query the device identification of the corresponding external network device based on the random password and device number carried in the device identification acquisition request, and send the queried device identification of the external network device to the external network device.

[0113] It should be noted that the order of the above steps is only a specific example provided to illustrate the embodiment of the present invention. The present invention does not limit the order of the above steps, and those skilled in the art may adjust them as needed in practical applications; and the size of the sequence numbers of the above steps does not limit their execution order.

[0114] Figure 3 A flowchart of another method for mutual access between an intranet device and an extranet device provided by an embodiment of the present invention. Figure 3 As shown, the method includes the following steps S301 to S311.

[0115] S301. The intranet device specifies the IP address of the external network device to be accessed to the NAT routing device;

[0116] S302. The NAT routing device requests the identification authentication verification server to obtain the device identification D corresponding to the external network IP address; the identification authentication verification server returns the identification D to the NAT router; the NAT routing device generates a number X based on the identification D, and sends the number X to the identification authentication verification server;

[0117] S303. The NAT routing device converts the IP address of the intranet device to enable the intranet device to access the external network device, and provides the external network device with the identification authentication verification server access address and number X;

[0118] S304. The external network device requests access to the identification authentication verification server (the message carries the current external network device IP address);

[0119] S305. The identification authentication verification server sends a random password generation request to the random password generation server (the message carries the current external network device IP address);

[0120] S306. The random password generation server returns a random password to the identity authentication verification server; the random password generation server sends a random password to the external network device;

[0121] S307. The authentication verification server sends information to the external network device requesting to enter a random password;

[0122] S308. The external network device enters a random password and number X to obtain the device identification D from the identification authentication verification server;

[0123] S309. The external network device sends a request to the NAT routing device to access the internal network device (with identification D); the NAT routing device requests the identification authentication verification server to verify the identification D and IP address;

[0124] S310. The authentication verification server returns the verification result to the NAT routing device;

[0125] S311. In response to the verification being passed, the NAT routing device establishes a mutual access channel between the intranet device and the extranet device, so that the extranet device can access the intranet device.

[0126] The embodiment of the present invention provides a method for mutual access between an intranet device and an extranet device. When an intranet device accesses an extranet device, the IP address of the intranet device is converted by a NAT routing device, so that the intranet device accesses the extranet device based on the converted IP address and the IP address of the extranet device to be accessed. When an extranet device accesses an intranet device, a device identification and a time-limited random password authentication mechanism is added. The extranet device inputs a random password and a device number X to an identification authentication verification server within a preset time period, and can obtain the device identification D of the corresponding extranet device obtained by querying the identification authentication verification server. Then, the extranet device sends the obtained device identification D and its own IP address to the NAT routing device, which is sent by the NAT routing device to the identification authentication verification server for verification. Once the verification is passed, the NAT routing device can establish a mutual access channel between the intranet device and the extranet device, and realize secure mutual access between the intranet device and the public network device, with a high success rate and low implementation cost, and can take into account security, success rate and implementation cost.

[0127] Figure 4 A schematic diagram of the structure of a NAT routing device provided by an embodiment of the present invention. Figure 4 As shown, the NAT routing device 400 includes: a first receiving module 401 , an address conversion module 402 , a first sending module 403 and a channel establishing module 404 .

[0128] Among them, the first receiving module 401 is configured to receive a request for accessing an external network device sent by an internal network device, and the request for accessing an external network device carries the IP address of the internal network device and the IP address of the external network device to be accessed; the address conversion module 402 is configured to convert the IP address of the internal network device so that the internal network device can access the external network device based on the converted IP address and the IP address of the external network device to be accessed; the first receiving module 401 is also configured to receive a request for accessing an internal network device sent by the external network device, and the request for accessing an internal network device carries the device identification of the external network device and the IP address of the external network device; the first sending module 403 is configured to send a request to the identification authentication verification server Send an identification verification request, the identification verification request carries the device identification of the external network device and the IP address of the external network device sent by the external network device to the NAT routing device, so that the identification authentication verification server verifies the device identification of the external network device and the IP address of the external network device carried by the identification verification request, obtains a verification result, and returns the verification result to the NAT routing device; the first receiving module 401 is also configured to receive the verification result sent by the identification authentication verification server; the channel establishment module 404 is configured to establish a mutual access channel between the intranet device and the external network device in response to the verification result being a verification pass, so that the external network device can access the intranet device.

[0129] In a specific implementation, after the first receiving module 401 receives a request for accessing an external network device sent by an internal network device, the first sending module 403 is also configured to send an identification query request to an identification authentication verification server, wherein the identification query request carries the IP address of the external network device to be accessed, so that the identification authentication verification server receives the identification query request, queries the device identification of the external network device corresponding to the IP address of the external network device to be accessed, and returns the device identification of the external network device to the NAT routing device; the first receiving module 401 is also configured to receive the device identification of the external network device sent by the identification authentication verification server.

[0130] In a specific implementation, the NAT routing device 400 further includes: a number generation module.

[0131] After the first receiving module 401 receives the device identification of the external network device sent by the identification authentication verification server, the number generating module is configured to generate a device number based on the device identification of the external network device; the first sending module 403 is further configured to send the device number to the identification authentication verification server, and send the device number and the access address of the identification authentication verification server to the external network device;

[0132] So that the identification authentication verification server receives the server access request sent by the external network device based on the access address of the identification authentication verification server, the server access request carries the device number, queries the device identification of the corresponding external network device based on the device number, and sends the queried device identification of the external network device to the external network device.

[0133] Alternatively, the identification authentication verification server receives a server access request sent by the external network device based on the access address of the identification authentication verification server, the server access request carries the IP address of the external network device, sends a random password generation request to the random password generation server, the random password generation request carries the IP address of the external network device, the random password generation server generates a random password based on the IP address of the external network device, and sends the random password to the identification authentication verification server and the external network device respectively; and the identification authentication verification server sends a time-limited random password entry request to the external network device, and the external network device sends a device identification acquisition request to the identification authentication verification server within a preset time period, the device identification acquisition request carries the random password received by the external network device from the random password generation server and the device number received by the external network device from the NAT routing device; and the identification authentication verification server, in response to receiving the device identification acquisition request within the preset time period, queries the device identification of the corresponding external network device based on the random password and device number carried in the device identification acquisition request, and sends the queried device identification of the external network device to the external network device.

[0134] In a specific implementation, the address conversion module 402 is specifically configured to replace the IP address of the intranet device with the public IP address of the NAT routing device, so that the intranet device accesses the external network device based on the public IP address and the IP address of the external network device to be accessed.

[0135] In a specific implementation, after establishing a mutual access channel between an intranet device and an extranet device, the intranet device and the extranet device repeatedly use the established mutual access channel when they visit each other again, and before using the mutual access channel each time, the first sending module 403 of the NAT routing device sends an identification verification request to the identification authentication verification server, so that the identification authentication verification server verifies the device identification of the extranet device and the IP address of the extranet device. In response to the verification being passed, the address conversion module 402 of the NAT routing device maps the IP address of the intranet device to the converted IP address, and enables the intranet device to exchange data with the extranet device.

[0136] The NAT routing device provided in the embodiment of the present invention converts the IP address of the intranet device when the intranet device accesses the external network device, so that the intranet device accesses the external network device based on the converted IP address and the IP address of the external network device to be accessed; when the external network device accesses the intranet device, a device identification and time-limited random password authentication mechanism is added, and the external network device inputs a random password and a device number X to an identification authentication verification server within a preset time period, so as to obtain the device identification D of the corresponding external network device obtained by querying the identification authentication verification server, and then the external network device sends the obtained device identification D and its own IP address to the NAT routing device, which is sent by the NAT routing device to the identification authentication verification server for verification. Once the verification is passed, the NAT routing device can establish a mutual access channel between the intranet device and the external network device, and realize the secure mutual access between the intranet device and the public network device, with a high success rate and low implementation cost, and can take into account security, success rate and implementation cost.

[0137] Figure 5 A schematic diagram of the structure of an identification authentication verification server provided by an embodiment of the present invention. Figure 5 As shown, the identification authentication verification server 500 includes: a second receiving module 501 , a verification module 502 and a second sending module 503 .

[0138] The second receiving module 501 is configured to receive an identification verification request sent by a network address translation NAT routing device, wherein the NAT routing device receives a request for accessing an external network device sent by an internal network device, wherein the request for accessing an external network device carries the IP address of the internal network device and the IP address of the external network device to be accessed, converts the IP address of the internal network device so that the internal network device can access the external network device based on the converted IP address and the IP address of the external network device to be accessed, receives a request for accessing the internal network device sent by the external network device, wherein the request for accessing the internal network device carries the device identification of the external network device and the IP address of the external network device, and sends a request for identification authentication to the internal network device. The verification server sends an identification verification request, and the identification verification request carries the device identification of the external network device and the IP address of the external network device sent by the external network device to the NAT routing device; the verification module 502 is configured to verify the device identification of the external network device and the IP address of the external network device carried by the identification verification request to obtain a verification result; the second sending module 503 is configured to return the verification result to the NAT routing device, so that the NAT routing device receives the verification result sent by the identification authentication verification server, and in response to the verification passing, establishes a mutual access channel between the internal network device and the external network device, so that the external network device can access the internal network device.

[0139] In a specific implementation, the second receiving module 501 is also configured to receive an identification query request sent by the NAT routing device before receiving the identification verification request sent by the NAT routing device, wherein the NAT routing device sends an identification query request to the identification authentication verification server after receiving the access request sent by the intranet device to the external network device, and the identification query request carries the IP address of the external network device to be accessed.

[0140] The identification authentication and verification server 500 also includes: a query module.

[0141] The query module is configured to query the device identification of the external network device corresponding to the IP address of the external network device to be accessed based on the identification query request. The second sending module 503 is also configured to return the device identification of the external network device to the NAT routing device, so that the NAT routing device receives the device identification of the external network device sent by the identification authentication verification server.

[0142] In an optional implementation, the second receiving module 501 is also configured to receive the device number sent by the NAT routing device after the second sending module 503 returns the device identification of the external network device to the NAT routing device, wherein after receiving the device identification of the external network device sent by the identification authentication verification server, the NAT routing device generates a device number based on the device identification of the external network device, and sends the device number to the identification authentication verification server, and sends the device number and the access address of the identification authentication verification server to the external network device; and receives a server access request sent by the external network device based on the access address of the identification authentication verification server, wherein the server access request carries the device number. The query module is also configured to query the device identification of the corresponding external network device based on the device number. The second sending module 503 is also configured to send the queried device identification of the external network device to the external network device.

[0143] In another optional implementation, the second receiving module 501 is further configured to receive the device number sent by the NAT routing device after the second sending module 503 returns the device identification of the external network device to the NAT routing device, wherein after receiving the device identification of the external network device sent by the identification authentication verification server, the NAT routing device generates a device number based on the device identification of the external network device, and sends the device number to the identification authentication verification server, and sends the device number and the access address of the identification authentication verification server to the external network device; and, receives a server access request sent by the external network device based on the access address of the identification authentication verification server, wherein the server access request carries the IP address of the external network device. The second sending module 503 is also configured to send a random password generation request to the random password generation server, the random password generation request carries the IP address of the external network device, so that the random password generation server generates a random password based on the IP address of the external network device, and sends the random password to the identification authentication verification server and the external network device respectively; and send a time-limited random password entry request to the external network device, so that the external network device sends a device identification acquisition request to the identification authentication verification server within a preset time period, the device identification acquisition request carries the random password received by the external network device from the random password generation server and the device number received by the external network device from the NAT routing device. The query module is also configured to query the device identification of the corresponding external network device based on the random password and device number carried in the device identification acquisition request in response to the second receiving module 501 receiving the device identification acquisition request within the preset time period. The second sending module 503 is also configured to send the queried device identification of the external network device to the external network device.

[0144] The identification authentication verification server provided by the embodiment of the present invention can verify the device identification of the external network device and the IP address of the external network device received by the NAT routing device from the external network device. Once the verification is passed, the NAT routing device can establish a mutual access channel between the internal network device and the external network device, thereby realizing secure mutual access between the internal network device and the public network device, with a high success rate and low implementation cost, and can take into account security, success rate and implementation cost.

[0145] Figure 6 A schematic diagram of the structure of the mutual access system between the intranet device and the extranet device provided in the embodiment of the present invention. Figure 6 As shown, the system includes: a NAT routing device 400, an identification authentication verification server 500 and a random password generation server 300.

[0146] The structures of the NAT routing device 400 and the identification authentication verification server 500 have been described in detail in the above embodiments and will not be described again here.

[0147] The mutual access system between the intranet device and the extranet device provided in the embodiment of the present invention can realize the secure mutual access between the intranet device 100 and the extranet device 200, with a high success rate and low implementation cost, and can take into account security, success rate and implementation cost.

[0148] Based on the same technical concept, the embodiment of the present invention also provides a computer device, such as Figure 7 As shown, the computer device includes a memory 701 and a processor 702, wherein the memory 701 stores a computer program, and when the processor 702 runs the computer program stored in the memory 701, the processor 702 executes the aforementioned method for mutual access between the intranet device and the extranet device.

[0149] Based on the same technical concept, an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor executes the aforementioned method for mutual access between an intranet device and an extranet device.

[0150] In summary, the mutual access method, mutual access system, NAT routing device, identification authentication verification server, computer device and storage medium provided by the embodiments of the present invention realize secure mutual access between intranet devices and extranet devices by adding the device identification and time-limited random password authentication mechanism of the extranet device during the network address conversion process.

[0151] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0152] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for mutual access between an intranet device and an extranet device, It is characterized in that Applied to a network address translation NAT routing device, the method comprises: Receive a request for accessing an external network device sent by an internal network device, wherein the request for accessing an external network device carries an IP address of the internal network device and an IP address of the external network device to be accessed; Converting the IP address of the intranet device so that the intranet device can access the external network device based on the converted IP address and the IP address of the external network device to be accessed; Receiving a request for accessing an intranet device sent by the external network device, the request for accessing an intranet device carrying a device identification of the external network device and an IP address of the external network device, wherein the external network device obtains the device identification of the external network device from an identification authentication verification server; Sending an identification verification request to an identification authentication verification server, the identification verification request carrying the device identification of the external network device and the IP address of the external network device sent by the external network device to the NAT routing device, so that the identification authentication verification server verifies the device identification of the external network device and the IP address of the external network device carried in the identification verification request by using the stored correspondence between the device identification of the external network device and the IP address of the external network device, obtains a verification result, and returns the verification result to the NAT routing device; and Receive the verification result sent by the identification authentication verification server, and in response to the verification passing, establish a mutual access channel between the intranet device and the external network device to enable the external network device to access the intranet device, and repeatedly use the established mutual access channel when the intranet device and the external network device visit each other again, and before using the mutual access channel each time, the NAT routing device sends an identification verification request to the identification authentication verification server, so that the identification authentication verification server verifies the device identification of the external network device and the IP address of the external network device to obtain a verification result, and returns the verification result to the NAT routing device, the NAT routing device receives the verification result sent by the identification authentication verification server, and in response to the verification passing, the NAT routing device maps the IP address of the intranet device to the converted IP address and enables the intranet device to exchange data with the external network device.

2. The method according to claim 1, It is characterized in that After receiving a request from an intranet device to access an extranet device, the following is also included: Sending an identification query request to an identification authentication verification server, the identification query request carrying the IP address of the external network device to be accessed, so that the identification authentication verification server receives the identification query request, queries the device identification of the external network device corresponding to the IP address of the external network device to be accessed, and returns the device identification of the external network device to the NAT routing device; and Receive the device identification of the external network device sent by the identification authentication verification server.

3. The method according to claim 2, It is characterized in that After receiving the device identification of the external network device sent by the identification authentication verification server, the method further includes: A device number is generated based on the device identification of the external network device, the device number is sent to the identification authentication verification server, and the device number and the access address of the identification authentication verification server are sent to the external network device, so that the identification authentication verification server receives a server access request sent by the external network device based on the access address of the identification authentication verification server, the server access request carries the device number, and the device identification of the corresponding external network device is queried based on the device number, and the queried device identification of the external network device is sent to the external network device.

4. The method according to claim 2, It is characterized in that After receiving the device identification of the external network device sent by the identification authentication verification server, the method further includes: A device number is generated based on the device identification of the external network device, and the device number is sent to the identification authentication verification server, and the device number and the access address of the identification authentication verification server are sent to the external network device, so that the identification authentication verification server receives the server access request sent by the external network device based on the access address of the identification authentication verification server, and the server access request carries the IP address of the external network device, and sends a random password generation request to the random password generation server, and the random password generation request carries the IP address of the external network device, so that the random password generation server generates a random password based on the IP address of the external network device, and sends the random password to the identification authentication verification server respectively. The identification authentication verification server sends a time-limited random password entry request to the external network device, and the external network device sends a device identification acquisition request to the identification authentication verification server within a preset time period, wherein the device identification acquisition request carries the random password received by the external network device from the random password generation server and the device number received by the external network device from the NAT routing device; and the identification authentication verification server responds to receiving the device identification acquisition request within the preset time period, queries the device identification of the corresponding external network device based on the random password and device number carried in the device identification acquisition request, and sends the queried device identification of the external network device to the external network device.

5. The method according to any one of claims 1 to 4, It is characterized in that The converting of the IP address of the intranet device so that the intranet device accesses the external network device based on the converted IP address and the IP address of the external network device to be accessed includes: The IP address of the internal network device is replaced with the public network IP address of the NAT routing device, so that the internal network device can access the external network device based on the public network IP address and the IP address of the external network device to be accessed.

6. A method for mutual access between an intranet device and an extranet device, It is characterized in that Applied to an identification authentication verification server, the method comprises: Receive an identification verification request sent by a network address translation NAT routing device, wherein the NAT routing device receives a request for accessing an external network device sent by an internal network device, the request for accessing an external network device carries the IP address of the internal network device and the IP address of the external network device to be accessed, converts the IP address of the internal network device so that the internal network device accesses the external network device based on the converted IP address and the IP address of the external network device to be accessed, receives a request for accessing an internal network device sent by the external network device, the request for accessing an internal network device carries the device identification of the external network device and the IP address of the external network device, wherein the external network device obtains the device identification of the external network device from an identification authentication verification server, and sends an identification verification request to the identification authentication verification server, the identification verification request carries the device identification of the external network device and the IP address of the external network device sent by the external network device to the NAT routing device; Using the stored correspondence between the device identification of the external network device and the IP address of the external network device, the device identification of the external network device and the IP address of the external network device carried in the identification verification request are verified to obtain a verification result; The verification result is returned to the NAT routing device so that the NAT routing device receives the verification result sent by the identification authentication verification server. In response to the verification being passed, a mutual access channel is established between the intranet device and the external network device so that the external network device can access the intranet device. Moreover, when the intranet device and the external network device visit each other again, the established mutual access channel is repeatedly used. Before each use of the mutual access channel, the identification authentication verification server receives the identification verification request sent by the NAT routing device. The identification authentication verification server verifies the device identification of the external network device and the IP address of the external network device to obtain a verification result. The verification result is returned to the NAT routing device so that the NAT routing device receives the verification result sent by the identification authentication verification server. In response to the verification being passed, the NAT routing device maps the IP address of the intranet device to the converted IP address and enables the intranet device to exchange data with the external network device.

7. The method according to claim 6, It is characterized in that Before receiving the identification verification request sent by the NAT routing device, the following is also included: Receiving an identification query request sent by a NAT routing device, wherein after receiving a request to access an external network device sent by an internal network device, the NAT routing device sends an identification query request to an identification authentication verification server, wherein the identification query request carries the IP address of the external network device to be accessed; Query the device identification of the external network device corresponding to the IP address of the external network device to be accessed, and return the device identification of the external network device to the NAT routing device, so that the NAT routing device receives the device identification of the external network device sent by the identification authentication verification server.

8. The method according to claim 7, It is characterized in that After returning the device identification of the external network device to the NAT routing device, the method further includes: Receiving a device number sent by a NAT routing device, wherein after receiving the device identification of the external network device sent by the identification authentication verification server, the NAT routing device generates a device number based on the device identification of the external network device, and sends the device number to the identification authentication verification server, and sends the device number and the access address of the identification authentication verification server to the external network device; Receiving a server access request sent by the external network device based on the access address of the identification authentication verification server, wherein the server access request carries the device number; The device identification of the corresponding external network device is queried based on the device number, and the queried device identification of the external network device is sent to the external network device.

9. The method according to claim 7, It is characterized in that After returning the device identification of the external network device to the NAT routing device, the method further includes: Receiving a device number sent by a NAT routing device, wherein after receiving the device identification of the external network device sent by the identification authentication verification server, the NAT routing device generates a device number based on the device identification of the external network device, and sends the device number to the identification authentication verification server, and sends the device number and the access address of the identification authentication verification server to the external network device; Receiving a server access request sent by the external network device based on the access address of the identification authentication verification server, wherein the server access request carries the IP address of the external network device; Sending a random password generation request to a random password generation server, wherein the random password generation request carries the IP address of the external network device, so that the random password generation server generates a random password based on the IP address of the external network device, and sends the random password to the identification authentication verification server and the external network device respectively; Sending a time-limited random password entry request to the external network device, so that the external network device sends a device identification acquisition request to the identification authentication verification server within a preset time period, and the device identification acquisition request carries the random password received by the external network device from the random password generation server and the device number received by the external network device from the NAT routing device; In response to receiving the device identification acquisition request within the preset time period, the device identification of the corresponding external network device is queried based on the random password and device number carried in the device identification acquisition request, and the queried device identification of the external network device is sent to the external network device.

10. A network address translation NAT routing device, include: A first receiving module, which is configured to receive a request for accessing an external network device sent by an internal network device, wherein the request for accessing an external network device carries an IP address of the internal network device and an IP address of the external network device to be accessed; An address conversion module, which is configured to convert the IP address of the intranet device so that the intranet device can access the external network device based on the converted IP address and the IP address of the external network device to be accessed; The first receiving module is further configured to receive a request for accessing an intranet device sent by the external network device, wherein the request for accessing an intranet device carries a device identifier of the external network device and an IP address of the external network device, wherein the external network device obtains the device identifier of the external network device from the identifier authentication verification server; A first sending module, which is configured to send an identification verification request to an identification authentication verification server, wherein the identification verification request carries the device identification of the external network device and the IP address of the external network device sent by the external network device to the NAT routing device, so that the identification authentication verification server uses the stored correspondence between the device identification of the external network device and the IP address of the external network device to verify the device identification of the external network device and the IP address of the external network device carried in the identification verification request, obtains a verification result, and returns the verification result to the NAT routing device; The first receiving module is further configured to receive the verification result sent by the identification authentication verification server; as well as, A channel establishment module is configured to establish a mutual access channel between the intranet device and the external network device in response to the verification result being a passed verification, so that the external network device can access the intranet device, and the intranet device and the external network device repeatedly use the established mutual access channel when they visit each other again, and before each use of the mutual access channel, the first sending module sends an identification verification request to the identification authentication verification server, so that the identification authentication verification server verifies the device identification of the external network device and the IP address of the external network device, obtains a verification result, and returns the verification result to the NAT routing device, the first receiving module receives the verification result sent by the identification authentication verification server, and in response to the verification passing, the address conversion module maps the IP address of the intranet device to the converted IP address and enables the intranet device to exchange data with the external network device.

11. An identity authentication verification server, It is characterized in that include: A second receiving module is configured to receive an identification verification request sent by a network address translation NAT routing device, wherein the NAT routing device receives a request for accessing an external network device sent by an internal network device, the request for accessing an external network device carries the IP address of the internal network device and the IP address of the external network device to be accessed, converts the IP address of the internal network device so that the internal network device accesses the external network device based on the converted IP address and the IP address of the external network device to be accessed, receives a request for accessing the internal network device sent by the external network device, the request for accessing the internal network device carries the device identification of the external network device and the IP address of the external network device, wherein the external network device obtains the device identification of the external network device from an identification authentication verification server, and sends an identification verification request to the identification authentication verification server, the identification verification request carries the device identification of the external network device and the IP address of the external network device sent by the external network device to the NAT routing device; A verification module, which is configured to verify the device identification of the external network device and the IP address of the external network device carried in the identification verification request by using the stored correspondence between the device identification of the external network device and the IP address of the external network device to obtain a verification result; as well as, The second sending module is configured to return the verification result to the NAT routing device, so that the NAT routing device receives the verification result sent by the identification authentication verification server. In response to the verification being successful, a mutual access channel is established between the intranet device and the external network device, so that the external network device accesses the intranet device, and the intranet device and the external network device repeatedly use the established mutual access channel when they visit each other again, and the second receiving module receives the identification verification request sent by the NAT routing device before each use of the mutual access channel. The verification module verifies the device identification of the external network device and the IP address of the external network device to obtain a verification result, and returns the verification result to the NAT routing device, so that the NAT routing device receives the verification result sent by the identification authentication verification server. In response to the verification being successful, the NAT routing device maps the IP address of the intranet device to the converted IP address and enables the intranet device to exchange data with the external network device.

12. A computer device, It is characterized in that It includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor runs the computer program stored in the memory, the processor executes the method for mutual access between an intranet device and an extranet device according to any one of claims 1 to 5, or the method for mutual access between an intranet device and an extranet device according to any one of claims 6 to 9.

13. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the processor executes the method for mutual access between an intranet device and an extranet device according to any one of claims 1 to 5, or the method for mutual access between an intranet device and an extranet device according to any one of claims 6 to 9.