CN114745169A - Multi-port access method, device, equipment, medium and product based on NAT mapping - Google Patents

Multi-port access method, device, equipment, medium and product based on NAT mapping Download PDF

Info

Publication number
CN114745169A
CN114745169A CN202210355043.6A CN202210355043A CN114745169A CN 114745169 A CN114745169 A CN 114745169A CN 202210355043 A CN202210355043 A CN 202210355043A CN 114745169 A CN114745169 A CN 114745169A
Authority
CN
China
Prior art keywords
preset
authentication information
key value
identifier
target application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210355043.6A
Other languages
Chinese (zh)
Inventor
豆莎莎
陈阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Original Assignee
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Topsec Technology Co Ltd, Beijing Topsec Network Security Technology Co Ltd, Beijing Topsec Software Co Ltd filed Critical Beijing Topsec Technology Co Ltd
Priority to CN202210355043.6A priority Critical patent/CN114745169A/en
Publication of CN114745169A publication Critical patent/CN114745169A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/256NAT traversal

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure relates to the technical field of data communication, and provides a multi-port access method, device, equipment, medium and product based on NAT mapping. The method comprises the following steps: determining preset authentication information corresponding to the user access request by responding to the user access request, wherein the preset authentication information is determined according to a first preset identifier and a first preset key value, and the first preset identifier at least comprises: the server port identifier and the second-level domain name corresponding to each terminal device, the first preset key value at least comprises: session identification, user name and login password; and accessing the target application according to the preset authentication information. By adopting the method, the preset authentication information comprising the first preset identification and the first preset key value corresponding to each terminal device can be obtained, and the terminal devices access the target application based on the corresponding first preset identification and the first preset key value because the first preset identifications corresponding to different terminal devices are different.

Description

Multi-port access method, device, equipment, medium and product based on NAT mapping
Technical Field
The present disclosure relates to the field of data communications technologies, and in particular, to a method, an apparatus, a device, a medium, and a product for multi-port access based on NAT mapping.
Background
NAT mapping is a process in which, after a local network Protocol (IP) address is assigned to a host in a private network, NAT software is installed on a router connected to the Internet in the private network when communication with the host on the Internet is required, and the local private IP address is converted into a public IP address, thereby realizing connection with the Internet.
In the prior art, when a terminal device needs to access a certain application, such as a Web application, authentication information for accessing the Web application needs to be acquired, and access to the certain application, such as the Web application, is realized according to a NAT mapping manner.
However, with the prior art, when accessing the same application at the same time for different terminal devices, since the authentication information stored on the different terminal devices is the same for the same application, the different terminal devices may conflict when accessing the same application based on the same authentication information at the same time, thereby failing to access the application.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, apparatus, device, medium, and product for multi-port access based on NAT mapping.
The embodiment of the disclosure provides a multi-port access method based on NAT mapping, which comprises the following steps:
responding to a user access request, and determining preset authentication information corresponding to the user access request, wherein the preset authentication information is determined according to a first preset identifier and a first preset key value, and the first preset identifier at least comprises: the server port identifier and the second-level domain name corresponding to each terminal device, wherein the first preset key value at least comprises: session identification, user name and login password;
and accessing the target application according to the preset authentication information.
In one embodiment, before the responding to the user access request and determining the preset authentication information corresponding to the user access request, the method further includes:
when the user access request is received for the first time, the first preset identification and the first preset key value are obtained;
and determining the preset authentication information based on the first preset identification and the first preset key value, and storing the preset authentication information.
In an embodiment, the determining the preset authentication information based on the first preset identifier and the first preset key value includes:
sequentially acquiring each parameter item included by the first preset identification;
and determining the preset authentication information based on each parameter item and all parameter items included by the first preset key value.
In one embodiment, the accessing the target application according to the preset authentication information includes:
determining the server port identifier corresponding to each terminal device according to the first preset identifier in the preset authentication information;
and accessing the target application based on the server port identification and at least one parameter item in the first preset key value.
In one embodiment, the accessing the target application according to the preset authentication information includes:
determining the secondary domain name corresponding to each terminal device according to the first preset identification in the preset authentication information;
and accessing the target application based on the secondary domain name and at least one parameter item in the first preset key value.
In one embodiment, the method further comprises:
when the target application is failed to be accessed according to the preset authentication information, acquiring a current second preset identification and a second preset key value;
and updating the preset authentication information based on the second preset identification and the second preset key value.
In a second aspect, an embodiment of the present disclosure provides a multi-port access device based on NAT mapping, including:
a preset authentication information determining module, configured to determine, in response to a user access request, preset authentication information corresponding to the user access request, where the preset authentication information is determined according to a first preset identifier and a first preset key value, and the first preset identifier at least includes: the server port identifier and the second-level domain name corresponding to each terminal device, wherein the first preset key value at least comprises: session identification, user name and login password;
and the target application access module is used for accessing the target application according to the preset authentication information.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method as in any one of the first aspects.
In a fourth aspect, the embodiments of the present disclosure provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the method according to any one of the first aspect.
In a fifth aspect, the embodiments of the present disclosure provide a computer program product, which when run on a computer causes the computer to perform the method according to any one of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
the multi-port access method based on the NAT mapping provided by the embodiment of the present disclosure determines the preset authentication information corresponding to the user access request by responding to the user access request, where the preset authentication information is determined according to a first preset identifier and a first preset key value, and the first preset identifier at least includes: the server port identifier and the second-level domain name corresponding to each terminal device, the first preset key value at least comprises: session identification, user name and login password; and accessing the target application according to the preset authentication information. Therefore, when the terminal equipment responds to a user access request input by a user, the preset authentication information comprising the first preset identification and the first preset key value corresponding to each terminal equipment can be obtained, and the terminal equipment can access the target application based on the corresponding first preset identification and the first preset key value due to the fact that the first preset identifications corresponding to different terminal equipment are different, so that the problem that the conflict exists in the prior art when the same application is accessed to different terminal equipment based on the same first preset key value when the same application is accessed is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a multi-port access method based on NAT mapping according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another NAT mapping-based multi-port access method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another multi-port access method based on NAT mapping according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of another multi-port access method based on NAT mapping according to an embodiment of the present disclosure;
fig. 5 is a schematic flowchart of another multi-port access method based on NAT mapping according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a multi-port access apparatus based on NAT mapping according to an embodiment of the present disclosure;
fig. 7 is an internal structural diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
NAT mapping is a process in which, after a local network Protocol (IP) address is assigned to a host in a private network, NAT software is installed on a router connected to the Internet in the private network when communication with the host on the Internet is required, and the local private IP address is converted into a public IP address, thereby realizing connection with the Internet.
In the prior art, when a terminal device needs to access a certain application, such as a Web application, authentication information for accessing the Web application needs to be acquired, and access to the certain application, such as the Web application, is realized according to a NAT mapping manner. However, with the prior art, when accessing the same application for different terminal devices, since the authentication information stored on the different terminal devices is the same for the same application, the different terminal devices may conflict when accessing the same application based on the same authentication information at the same time, thereby failing to access the application.
Based on this, the present disclosure provides a multi-port access method based on NAT mapping, which determines preset authentication information corresponding to a user access request by responding to the user access request, where the preset authentication information is determined according to a first preset identifier and a first preset key value, and the first preset identifier at least includes: the server port identifier and the second-level domain name corresponding to each terminal device, the first preset key value at least comprises: session identification, user name and login password; and accessing the target application according to the preset authentication information. Therefore, when the terminal equipment responds to a user access request input by a user, the preset authentication information comprising the first preset identification and the first preset key value corresponding to each terminal equipment can be obtained, and the terminal equipment can access the target application based on the corresponding first preset identification and the first preset key value due to the fact that the first preset identifications corresponding to different terminal equipment are different, so that the problem that the conflict exists in the prior art when the same application is accessed to different terminal equipment based on the same first preset key value when the same application is accessed is solved.
The multi-port access method based on the NAT mapping provided by the disclosure can be applied to a multi-port access device based on the NAT mapping, the device can be electronic equipment such as various personal computers, notebook computers, smart phones, tablet computers and portable wearable equipment, and optionally, the device can also be a functional module or a functional entity which can realize a data processing method in the electronic equipment.
In an embodiment, as shown in fig. 1, fig. 1 is a schematic flowchart of a multi-port access method based on NAT mapping according to an embodiment of the present disclosure, which specifically includes the following steps:
s11: and responding to the user access request, and determining preset authentication information corresponding to the user access request.
The preset authentication information is determined according to the first preset identifier and the first preset key value, and may be a Cookie file stored on a hard disk in the terminal device, where the Cookie file is small text data with a memory not exceeding 4KB, and mainly includes a name, a key value, and other optional attributes for controlling validity, security, and application range of the Cookie file, but is not limited thereto, and those skilled in the art may set the preset authentication information according to actual situations.
The first preset identifier at least includes: a server port identifier and a secondary domain name corresponding to each terminal device. It should be noted that, the server port identifier refers to different terminal devices, and when the terminal device accesses the internet (public network IP) using an internal network IP address, unique ports on the public network IP are respectively allocated to the different terminal devices through NAT mapping, so that the terminal devices access the target application according to the corresponding port numbers. For example, the intranet IPs of terminal a and terminal B are "1000.0000.0000.23" and "1000.0000.0000.24", respectively, and when the intranet IPs of terminal a and terminal B are converted into public network IPs according to NAT mapping, different port numbers corresponding to the same public network are respectively assigned to terminal a and terminal B as "8001" and "8002".
The secondary domain name refers to a web name selected by the domain name registrar for use, and for example, for the same first web page on terminal device a and terminal device B, the secondary domain name of the first web page for terminal device a may be set to "111. xxx.com"; the second domain name of the first web page for terminal device B is "222. xxx.
The first preset key value at least comprises: session identification, user name, and login password, but are not limited thereto, and the disclosure is not limited thereto, and those skilled in the art may set the session identification, user name, and login password according to the actual situation.
The user access request refers to request information for accessing a target application, which may be a Web application or a software application, but is not limited thereto, and the disclosure is not particularly limited.
Illustratively, when the target application is a Web application, the user logs in the browser, inputs a website address "xxxxxx.com" corresponding to the first Web page or clicks a virtual key, such as "hundred degree", to request access to the first Web page, or a hundred degree Web page.
Specifically, when a user inputs a user access request, the terminal device responds to the user access request input by the user, and obtains preset authentication information corresponding to the user access request.
For example, for a terminal device a such as a computer, when a user logs in a browser, clicking a virtual key such as "Baidu" to request access to a Baidu webpage, and the terminal device such as the computer responding to the access request, obtaining preset authentication information corresponding to the user access request in a Cookie file stored on the terminal device such as a hard disk on the computer, which may be, for example, a server port identifier and a user name.
On the basis of the foregoing embodiments, in some embodiments of the present disclosure, as shown in fig. 2, before performing S11, the method further includes:
s21: when a user access request is received for the first time, a first preset identification and a first preset key value are obtained.
Specifically, when the terminal device, such as a computer, receives a user access request input by a user for the first time, a first preset identifier and a first preset key value of the user access request input by the current user are obtained.
For example, when the terminal device a such as a computer receives a user access request input by a user for the first time, for example, when a virtual key "hundred degrees" is clicked to access an access request of an hundred-degree webpage, a preset function is called to read a first preset identifier corresponding to the hundred-degree webpage, for example, a server port identifier "8001" or a user name "username", but the present disclosure is not limited thereto, and those skilled in the art may set the function according to actual situations.
S22: and determining preset authentication information based on the first preset identification and the first preset key value, and storing the preset authentication information.
Specifically, when a first preset identifier and a first preset key value corresponding to a first user request access are obtained, the preset authentication information is determined according to the first preset identifier and the first preset key value, and the determined preset authentication information is stored.
Fig. 3 is a schematic flowchart of another multi-port access method based on NAT mapping according to an embodiment of the present disclosure, and fig. 3 is a description of a possible implementation manner of S22 based on the embodiment shown in fig. 2, as shown in fig. 3:
s221: and sequentially acquiring each parameter item included by the first preset identification.
S222: and determining preset authentication information based on each parameter item and all parameter items included by the first preset key value.
The parameter item specifically refers to a server port identifier and a secondary domain name corresponding to each terminal device and included but not limited to the first preset identifier, and a session identifier, a user name and a login password included but not limited to the first preset key value.
Specifically, for the first preset identifier, each parameter item included in the first preset identifier is sequentially acquired, and the preset authentication information is determined according to each acquired parameter item and all parameter items included in the first preset key value.
For example, for the terminal device a, for the server port identifier and the secondary domain name included in the first preset identifier, each parameter item included in the first preset identifier is sequentially obtained, such as the server port identifier "8001", and according to the session identifier included in the server port identifier "8001" and the first preset key value, such as "session ID", username ", and login password", it is determined that the preset authentication information may be "8001 + session ID", 8001+ username, 8001+ password ", further, the second parameter item secondary domain name included in the first preset identifier is obtained, such as" 111.xxx.com ", and according to the session identifier included in the second level domain name" 111.xxx.com "and the first preset key value, such as" session ID ", username", and login password ", it is determined that the preset authentication information may be" 111.xxx.com + session ID, 111. xxx.xxx.xxx.xxx.111 + password ".
In this way, according to the multi-port access method based on NAT mapping provided by the embodiment of the present disclosure, the preset authentication information is constructed according to each parameter item in the first preset identifier and all parameter items in the first preset key value, so that when the terminal device responds to the user request for access, the terminal device can access the target application according to the first preset identifier and the first preset key value respectively corresponding to different terminal devices, thereby avoiding a conflict.
S13: and accessing the target application according to the preset authentication information.
Specifically, after acquiring preset authentication information corresponding to the current user request range, the terminal device, such as a computer, accesses the target application according to the preset authentication information.
Illustratively, when a terminal device a acquires a current user request access, such as clicking a virtual key of "hundred degrees", and the user accessing an hundred-degree webpage requests access, the terminal device a acquires corresponding preset authentication information of "8001 + username" from a Cookie file stored on a hard disk of the terminal device a, such as a computer, and sends the user request access and the preset authentication information of "8001 + username" to a server, i.e., a public network, where the public network authenticates based on the preset authentication information of "8001 + username", and sends an indication to the terminal device a after the authentication is successful, so that the terminal device a can browse the hundred-degree webpage.
Fig. 4 is a schematic flowchart of another multi-port access method based on NAT mapping according to an embodiment of the present disclosure, and fig. 4 is a description of a possible implementation manner of S13 based on the embodiment shown in fig. 3, as shown in fig. 4:
s41: and determining a server port identifier corresponding to each terminal device according to a first preset identifier in the preset authentication information.
S42: and accessing the target application based on the server port identification and at least one parameter item in the first preset key value.
Specifically, when a terminal device such as a computer responds to a user request input by a user to access, preset authentication information corresponding to the current user request access and including a first preset identifier and a first preset key value can be obtained, a server port identifier corresponding to the terminal device such as the computer is determined according to the first preset identifier in the preset authentication information, and the user accesses a target application according to any parameter item in the server port identifier and the first preset key value.
Illustratively, when a terminal device a, such as a computer, obtains a current user request access, such as a user request access of clicking a virtual key for "hundred", and accesses a hundred webpage, obtains preset authentication information corresponding to the current user request access from a Cookie file stored in a hard disk of the terminal device a, such as a computer, and determines that a server port identifier corresponding to the terminal device, such as a computer, is "8001" according to a first preset identifier in the preset authentication information, further obtains preset authentication information as "8001 + username" according to the server port identifier "8001" and any parameter item in a first preset key value, such as "username", and sends the user request access and the preset authentication information "8001 + username" to a server, i.e. a public network, the public network authenticates based on the preset authentication information "8001 + username", and sends an indication to the terminal device a after the authentication is successful, so that terminal device a can browse a hundred degree web page.
Optionally, any parameter item in the first preset key may also be "session ID" or "password", and the obtained preset authentication information is "8001 + session ID" or "8001 + password", but is not limited thereto, and the disclosure is not particularly limited thereto, and may be set by a person skilled in the art according to an actual situation.
Fig. 5 is a schematic flowchart of another multi-port access method based on NAT mapping according to an embodiment of the present disclosure, where fig. 5 is a description of a possible implementation manner of S13 based on the embodiment shown in fig. 3, as shown in fig. 5:
s51: and determining a secondary domain name corresponding to each terminal device according to a first preset identifier in the preset authentication information.
S52: and accessing the target application based on the second-level domain name and at least one parameter item in the first preset key value.
Specifically, when a terminal device such as a computer responds to a user request input by a user to access, preset authentication information corresponding to the current user request access and including a first preset identifier and a first preset key value can be obtained, a secondary domain name corresponding to the terminal device such as the computer is determined according to the first preset identifier in the preset authentication information, and the user accesses a target application according to any parameter item in the secondary domain name and the first preset key value.
Illustratively, when a terminal device a, such as a computer, acquires a current user request access, such as clicking a virtual key of "hundredth", and a user accessing a hundredth webpage requests access, acquires preset authentication information corresponding to the current user request access from a Cookie file stored in a hard disk of the terminal device a, such as a computer, and determines that a secondary domain name corresponding to the terminal device, such as a computer, is "111. xxx.com" according to a first preset identifier in the preset authentication information, further, acquires preset authentication information of "111. xxx.com + username" according to the secondary domain name "111. xxx.com" and a first preset key value, such as "username", and transmits the user request access and the preset authentication information "111. xxx.com + username" to a server, i.e. a public network, which performs authentication based on the preset authentication information "111. xxx.com + username", and transmits an indication to the authentication terminal device a after the authentication is successful, so that terminal device a can browse a hundred degree web page.
Optionally, any parameter item in the first preset key value may also be "session ID" or "password", and the obtained preset authentication information is "111, xxx.com + session ID" or "111, xxx.com + password", but is not limited thereto, and those skilled in the art may set the authentication according to actual situations.
In this way, the multi-port access method based on NAT mapping according to the embodiment of the present disclosure determines the preset authentication information corresponding to the user access request by responding to the user access request, where the preset authentication information is determined according to the first preset identifier and the first preset key value, and the first preset identifier at least includes: the server port identifier and the second-level domain name corresponding to each terminal device, the first preset key value at least comprises: session identification, user name and login password; and accessing the target application according to the preset authentication information. Therefore, when the terminal equipment responds to a user access request input by a user, the preset authentication information comprising the first preset identification and the first preset key value corresponding to each terminal equipment can be obtained, and the terminal equipment can access the target application based on the corresponding first preset identification and the first preset key value due to the fact that the first preset identifications corresponding to different terminal equipment are different, so that the problem that the conflict exists in the prior art when the same application is accessed to different terminal equipment based on the same first preset key value when the same application is accessed is solved.
On the basis of the above embodiments, in some embodiments of the present disclosure, further, the method further includes:
and when the target application is failed to be accessed according to the preset authentication information, acquiring a current second preset identification and a second preset key value.
And updating the preset authentication information based on the second preset identification and the second preset key value.
Specifically, when a terminal device such as a computer responds to a user request input by a user to access, and cannot access a target application based on the obtained preset authentication information, a second preset identifier and a second preset key value which are requested to access by the current user are obtained, and the preset authentication information stored in the terminal device such as the computer is updated according to the second preset identifier and the second preset key value.
In this way, according to the multi-port access method based on NAT mapping provided by the embodiment of the present disclosure, when the target application cannot be accessed according to the preset authentication information stored on the terminal device, the second preset identifier and the second preset key value that the current user requests to access can be obtained in time, and the preset authentication information is updated in real time, so that the user request access can be obtained next time, and the correct preset authentication information can be obtained, thereby realizing the access to the target application.
Fig. 6 is a multi-port access apparatus based on NAT mapping according to an embodiment of the present disclosure, including: a preset authentication information determining module 11 and a target application access module 13.
The preset authentication information determining module 11 is configured to respond to a user access request, and determine preset authentication information corresponding to the user access request, where the preset authentication information is determined according to a first preset identifier and a first preset key value, and the first preset identifier at least includes: the server port identifier and the second-level domain name corresponding to each terminal device, the first preset key value at least comprises: session identification, user name and login password;
and the target application access module 13 is configured to access the target application according to preset authentication information.
In the above embodiment, the preset authentication information determining module 11 further includes: the system comprises a preset authentication information acquisition module, a first authentication information acquisition module and a second authentication information acquisition module, wherein the preset authentication information acquisition module is used for acquiring a first preset identifier and a first preset key value when a user access request is received for the first time; and determining preset authentication information based on the first preset identification and the first preset key value, and storing the preset authentication information.
In the above embodiment, the preset authentication information obtaining module is specifically configured to sequentially obtain each parameter item included in the first preset identifier; and determining preset authentication information based on each parameter item and all parameter items included by the first preset key value.
In the above embodiment, the target application access module 13 is specifically configured to determine, according to a first preset identifier in the preset authentication information, a server port identifier corresponding to each terminal device; and accessing the target application based on the server port identification and at least one parameter item in the first preset key value.
In the above embodiment, the target application access module 13 is specifically further configured to determine, according to a first preset identifier in the preset authentication information, a secondary domain name corresponding to each terminal device; and accessing the target application based on the second-level domain name and at least one parameter item in the first preset key value.
In the above embodiment, the apparatus further includes: the updating module is used for acquiring a current second preset identifier and a second preset key value when the target application is failed to be accessed according to the preset authentication information; and updating the preset authentication information based on the second preset identification and the second preset key value.
In this way, the preset authentication information determining module 11 is configured to respond to the user access request and determine the preset authentication information corresponding to the user access request, where the preset authentication information is determined according to a first preset identifier and a first preset key, and the first preset identifier at least includes: the server port identifier and the second-level domain name corresponding to each terminal device, the first preset key value at least comprises: session identification, user name and login password; and the target application access module 13 is configured to access the target application according to preset authentication information. Therefore, when the terminal equipment responds to a user access request input by a user, the preset authentication information comprising the first preset identification and the first preset key value corresponding to each terminal equipment can be obtained, and the terminal equipment can access the target application based on the corresponding first preset identification and the first preset key value due to the fact that the first preset identifications corresponding to different terminal equipment are different, so that the problem that the conflict exists in the prior art when the same application is accessed to different terminal equipment based on the same first preset key value when the same application is accessed is solved.
The device provided by the embodiment of the invention can execute the method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that, in the embodiment of the apparatus, the included units and modules are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, as shown in fig. 7, the electronic device includes a processor 710, a memory 720, an input device 730, and an output device 740; the number of processors 710 in the computer device may be one or more, and one processor 710 is taken as an example in fig. 7; the processor 710, the memory 720, the input device 730, and the output device 740 in the electronic apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 7.
Memory 720, which is a computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the methods of embodiments of the present invention. The processor 710 executes software programs, instructions and modules stored in the memory 720 to execute various functional applications of the computer device and data processing, namely, to implement the method provided by the embodiment of the present invention.
The memory 720 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, memory 720 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 720 may further include memory located remotely from the processor 710, which may be connected to a computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 730 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device, and may include a keyboard, a mouse, and the like. The output device 740 may include a display device such as a display screen.
The disclosed embodiments also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to implement a method provided by an embodiment of the present invention, the method including:
responding to the user access request, and determining preset authentication information corresponding to the user access request, wherein the preset authentication information is determined according to a first preset identifier and a first preset key value, and the first preset identifier at least comprises: the server port identifier and the second-level domain name corresponding to each terminal device, wherein the first preset key value at least comprises: session identification, user name and login password;
and accessing the target application according to the preset authentication information.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the method provided by any embodiment of the present invention.
The disclosed embodiments provide a computer program product, which when run on a computer causes the computer to perform related operations in the method provided by any of the embodiments of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A multi-port access method based on NAT mapping is characterized in that the method comprises the following steps:
responding to a user access request, and determining preset authentication information corresponding to the user access request, wherein the preset authentication information is determined according to a first preset identifier and a first preset key value, and the first preset identifier at least comprises: the server port identifier and the second-level domain name corresponding to each terminal device, wherein the first preset key value at least comprises: session identification, user name and login password;
and accessing the target application according to the preset authentication information.
2. The method according to claim 1, wherein before determining the preset authentication information corresponding to the user access request in response to the user access request, the method further comprises:
when the user access request is received for the first time, the first preset identification and the first preset key value are obtained;
and determining the preset authentication information based on the first preset identification and the first preset key value, and storing the preset authentication information.
3. The method according to claim 2, wherein the determining the preset authentication information based on the first preset identifier and the first preset key value includes:
sequentially acquiring each parameter item included by the first preset identification;
and determining the preset authentication information based on each parameter item and all parameter items included in the first preset key value.
4. The method according to claim 1, wherein the accessing the target application according to the preset authentication information comprises:
determining the server port identifier corresponding to each terminal device according to the first preset identifier in the preset authentication information;
and accessing the target application based on the server port identification and at least one parameter item in the first preset key value.
5. The method of claim 1, wherein the accessing a target application according to the preset authentication information comprises:
determining the secondary domain name corresponding to each terminal device according to the first preset identification in the preset authentication information;
and accessing the target application based on the secondary domain name and at least one parameter item in the first preset key value.
6. The method according to any one of claims 1 to 5, further comprising:
when the target application is failed to be accessed according to the preset authentication information, acquiring a current second preset identification and a second preset key value;
and updating the preset authentication information based on the second preset identification and the second preset key value.
7. A multi-port access device based on NAT mapping, comprising:
a preset authentication information determining module, configured to determine, in response to a user access request, preset authentication information corresponding to the user access request, where the preset authentication information is determined according to a first preset identifier and a first preset key value, and the first preset identifier at least includes: the server port identifier and the second-level domain name corresponding to each terminal device, wherein the first preset key value at least comprises: session identification, user name and login password;
and the target application access module is used for accessing the target application according to the preset authentication information.
8. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the NAT mapping based multi-port access method of any of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the NAT mapping based multi-port access method according to any one of claims 1 to 6.
10. A computer program product, characterized in that it causes a computer to perform the steps of a NAT mapping based multi-port access method according to any one of claims 1-6, when said computer program product is run on the computer.
CN202210355043.6A 2022-04-06 2022-04-06 Multi-port access method, device, equipment, medium and product based on NAT mapping Pending CN114745169A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210355043.6A CN114745169A (en) 2022-04-06 2022-04-06 Multi-port access method, device, equipment, medium and product based on NAT mapping

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210355043.6A CN114745169A (en) 2022-04-06 2022-04-06 Multi-port access method, device, equipment, medium and product based on NAT mapping

Publications (1)

Publication Number Publication Date
CN114745169A true CN114745169A (en) 2022-07-12

Family

ID=82279230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210355043.6A Pending CN114745169A (en) 2022-04-06 2022-04-06 Multi-port access method, device, equipment, medium and product based on NAT mapping

Country Status (1)

Country Link
CN (1) CN114745169A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585364A (en) * 2004-05-28 2005-02-23 中兴通讯股份有限公司 Method for H.323 agent server to register on gatekeeper from terminals after being agent of NAT
CN101754215A (en) * 2008-12-01 2010-06-23 华为技术有限公司 Authentication method and system
CN102148879A (en) * 2010-10-22 2011-08-10 华为技术有限公司 Port mapping method and device and communication system
CN104717102A (en) * 2013-12-12 2015-06-17 华为技术有限公司 Flow statistic method and device and NAT gateway device
CN107566429A (en) * 2016-06-30 2018-01-09 中兴通讯股份有限公司 Base station, the response method of access request, apparatus and system
CN108243079A (en) * 2016-12-23 2018-07-03 阿里巴巴集团控股有限公司 A kind of method and apparatus that network access is carried out based on VPC
CN108810124A (en) * 2018-06-02 2018-11-13 上海清鹤科技股份有限公司 The remote access control system of a large amount of multimedia terminals under a kind of environment to public network
CN109005167A (en) * 2018-07-24 2018-12-14 腾讯科技(深圳)有限公司 A kind of processing method of authentication data, device, server and storage medium
CN109413032A (en) * 2018-09-03 2019-03-01 中国平安人寿保险股份有限公司 A kind of single-point logging method, computer readable storage medium and gateway
US20190342289A1 (en) * 2017-01-19 2019-11-07 Alibaba Group Holding Limited Network Authentication Method and Apparatus
CN110493337A (en) * 2019-08-16 2019-11-22 武汉麦品科技有限公司 Data access method, gateway, system, storage medium and device
CN112492028A (en) * 2020-11-26 2021-03-12 中国人寿保险股份有限公司 Cloud desktop login method and device, electronic equipment and storage medium
CN113472823A (en) * 2020-03-30 2021-10-01 深圳Tcl数字技术有限公司 Server access method and device, intelligent terminal and storage medium
CN113794788A (en) * 2021-09-14 2021-12-14 北京百度网讯科技有限公司 Gateway diversion method, system, device, equipment, storage medium and product

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585364A (en) * 2004-05-28 2005-02-23 中兴通讯股份有限公司 Method for H.323 agent server to register on gatekeeper from terminals after being agent of NAT
CN101754215A (en) * 2008-12-01 2010-06-23 华为技术有限公司 Authentication method and system
CN102148879A (en) * 2010-10-22 2011-08-10 华为技术有限公司 Port mapping method and device and communication system
CN104717102A (en) * 2013-12-12 2015-06-17 华为技术有限公司 Flow statistic method and device and NAT gateway device
CN107566429A (en) * 2016-06-30 2018-01-09 中兴通讯股份有限公司 Base station, the response method of access request, apparatus and system
CN108243079A (en) * 2016-12-23 2018-07-03 阿里巴巴集团控股有限公司 A kind of method and apparatus that network access is carried out based on VPC
US20190342289A1 (en) * 2017-01-19 2019-11-07 Alibaba Group Holding Limited Network Authentication Method and Apparatus
CN108810124A (en) * 2018-06-02 2018-11-13 上海清鹤科技股份有限公司 The remote access control system of a large amount of multimedia terminals under a kind of environment to public network
CN109005167A (en) * 2018-07-24 2018-12-14 腾讯科技(深圳)有限公司 A kind of processing method of authentication data, device, server and storage medium
CN109413032A (en) * 2018-09-03 2019-03-01 中国平安人寿保险股份有限公司 A kind of single-point logging method, computer readable storage medium and gateway
CN110493337A (en) * 2019-08-16 2019-11-22 武汉麦品科技有限公司 Data access method, gateway, system, storage medium and device
CN113472823A (en) * 2020-03-30 2021-10-01 深圳Tcl数字技术有限公司 Server access method and device, intelligent terminal and storage medium
CN112492028A (en) * 2020-11-26 2021-03-12 中国人寿保险股份有限公司 Cloud desktop login method and device, electronic equipment and storage medium
CN113794788A (en) * 2021-09-14 2021-12-14 北京百度网讯科技有限公司 Gateway diversion method, system, device, equipment, storage medium and product

Similar Documents

Publication Publication Date Title
RU2681699C1 (en) Method and server for searching related network resources
CN109543463B (en) Data security access method, device, computer equipment and storage medium
US9883002B2 (en) Method and system for accessing website
US9544278B2 (en) Using domain name system security extensions in a mixed-mode environment
RU2490814C2 (en) Dynamic dns system for private networks
CN107103233B (en) Techniques for dynamic domain-based isolation
KR102090982B1 (en) How to identify malicious websites, devices and computer storage media
CN103179125B (en) The display methods of website authentication information and browser
US6993583B2 (en) Dynamically sharing a pool of IP addresses
CN103269389A (en) Method and device for detecting and repairing malicious DNS setting
EP2567528A1 (en) Managing multiple logins from a single browser
WO2014176895A1 (en) Method, terminal, server and system for page jump
CN112738100B (en) Authentication method, device, authentication equipment and authentication system for data access
US9973507B2 (en) Captive portal having dynamic context-based whitelisting
US20170289243A1 (en) Domain name resolution method and electronic device
CN110430188A (en) A kind of quick url filtering method and device
JP3339639B2 (en) Computer network connection method on the Internet by real name and computer network system thereof
CN112953962A (en) Domain name access method and device
CN110677506B (en) Network access method, device, computer equipment and storage medium
TW201733314A (en) Method for executing request and associated server
JP2020502703A (en) Determine fingerprints for network mapping
KR102032958B1 (en) Apparatus, method and system for checking vulnerable point
CN114745169A (en) Multi-port access method, device, equipment, medium and product based on NAT mapping
JP2009230662A (en) Web-site determination device and web-site determination program
KR20230019664A (en) Method and system for preventing network pharming using big data and artificial intelligence

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination