Access method between internal network and public network, equipment and medium
Constructing stealth gateways and access gateways through FRP technology, combined with double authentication and access control rules, solves the problem of insufficient security in access management between internal networks and public networks, and achieves efficient access control and security management.
Patent Information
- Application Number
- CN202410739592.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-08-30
AI Technical Summary
Existing network security solutions have problems in access management between internal networks and public networks, such as cumbersome configuration, high management costs, and difficulty in coping with high concurrent access. In particular, there is insufficient security when devices access internal networks in public network environments. , unable to meet the needs of modern enterprises.
Use FRP technology to build stealth access gateways and stealth access gateways. Through double-authentication access parameter screening and preset access control rules, it ensures that only users who meet identity standards can access specific data, and identifies abnormal access through traffic transmission analysis, providing Flexible access control.
It achieves comprehensive management and control of the internal network environment and public network environment, ensures the concealment and security of access, prevents unauthorized access, and improves system security and authority management accuracy.
Smart Images

Figure CN118573448A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of network security, and in particular to an access method, device and medium between an internal network and a public network. Background Art
[0002] With the continuous advancement of information technology, the security and efficiency of the network environment are becoming more and more important. In daily operations, enterprises or organizations need to frequently exchange data between the internal network environment and the public network environment. The internal network environment provides enterprises with data privacy and integrity protection, while the public network environment provides enterprises with a wider space for connection and information sharing.
[0003] Currently, in order to ensure secure communication between these two network environments, many enterprises have adopted complex network security solutions, such as deploying firewalls, intrusion detection systems, and VPNs. However, these solutions often face problems such as cumbersome configuration, high management costs, and difficulty in coping with high concurrent access during implementation. Especially when devices in the public network environment try to access internal network resources, these traditional solutions cannot meet the actual needs of modern enterprises due to insufficient security. Summary of the invention
[0004] In order to solve at least one of the above technical problems, the present application provides a method, device, equipment and medium for accessing an internal network and a public network.
[0005] In a first aspect, the present application provides a method for accessing an internal network and a public network, using the following technical solution: Acquire an internal network environment and a public network environment, wherein the internal network environment is used to represent a network environment established within an organization or enterprise, and the public network environment is used to represent a publicly available network environment; When it is detected that a device in a public network environment accesses an internal network, a stealth access gateway is constructed and deployed for the access interface of the internal network environment based on FRP, and a stealth access gateway is constructed and deployed for the public network environment based on FRP; Establishing a connection between the stealth access gateway and the stealth access gateway, and determining a stealth connection path between the gateways; When it is detected that the stealth connection path is established, user access information is obtained, and access parameter screening is performed on the user access information to obtain access identity parameters and access data parameters; Determine whether the access identity parameter meets the preset identity standard data. If so, determine the data certificate information based on the access identity parameter and the preset certificate association relationship, and configure the data certificate information in the stealth access gateway and the stealth access gateway for address message encryption. If not, generate identity authentication exception information; Determine the accessible data information corresponding to the access identity parameter based on the preset access control rule; Determine whether the functional unit corresponding to the access data parameter is included in the functional unit set of the accessible data information. If not, generate unit access exception information. If included, access the functional unit corresponding to the access data parameter based on the stealth connection path.
[0006] In a possible implementation, the data certificate information is respectively configured in the stealth access gateway and the stealth access gateway to perform message address encryption, and then further includes: Creating an associated access domain name and a domain name resolution record corresponding to the associated access domain name, wherein the associated access domain name is an associated access domain name of the external network environment; The associated access domain name and the domain name resolution record are configured on the stealth access gateway according to preset configuration rules.
[0007] In a possible implementation, the access parameter screening is performed on the user access information to obtain the access identity parameter and the access data parameter, and then the following is further included: A protection unit set is determined based on the internal network environment, and it is determined whether the unit corresponding to the access data parameter matches the unit in the protection unit set. If not, access permission exception information is generated.
[0008] In a possible implementation manner, the establishing a connection between the invisible access gateway and the invisible access gateway further includes: When the public network environment accesses the internal network environment through an access message, determining whether the type of the access message is a preset message type, if not, translating the access message into a preset message type, and if the access message type is a preset message type, calculating based on the access message, the access user's secure communication data certificate, the current timestamp, and the functional unit ID to obtain a target access address; The access address in the access message is overwritten based on the target access address to obtain a processed access message.
[0009] In a possible implementation manner, the access address in the access message is overwritten based on the target access address to obtain a processed access message, and then the method further includes: When the internal network receives the processed access message, the target access address in the access message is restored based on cryptographic operations to obtain the original address parameters of the access message; The original address parameters are checked to determine whether the original address parameters meet a preset check standard. If so, the access request of the access message is approved; if not, the access message is discarded.
[0010] In one possible implementation, the method further includes: Obtain traffic transmission information between internal networks and public networks in real time; Arrange the traffic transmission information according to the transmission time nodes to obtain a transmission fluctuation diagram of the data transmission between the internal network and the public network; Fitting the transmission fluctuation graph with the preset traffic transmission graph according to the transmission time nodes, determining whether there is an anomaly in the traffic transmission data corresponding to different transmission time nodes, and if so, obtaining historical traffic transmission data, and performing data transmission anomaly analysis on the internal network and the public network based on the historical traffic transmission data to obtain the abnormal access degree, wherein the historical traffic transmission data is traffic transmission data obtained when different models of access devices in the public network environment communicate with different functional units in the internal network environment; The abnormal access degree is compared with the access degree in the abnormal access standard to obtain a user access rule, and the accessible data information corresponding to the access identity parameter is adjusted based on the user access rule.
[0011] In a possible implementation, performing data transmission anomaly analysis on the internal network and the public network based on the historical traffic transmission data to obtain the abnormal access degree includes: Determine the highest traffic transmission rate and the lowest traffic transmission rate during each data communication between different types of access devices in the public network environment and different functional units in the internal network environment according to the historical traffic transmission data, and use the highest traffic transmission rate and the lowest traffic transmission rate as the transmission numerator, and use the time used for each data communication process as the transmission denominator; The transmission rate change value of each data communication process is obtained according to the ratio of the transmission numerator to the transmission denominator; Arranging the transmission rate change values in time sequence to obtain a transmission sequence of historical traffic transmission data; According to the change value corresponding to the transmission rate of each different functional unit of the access device of different models in the transmission sequence, and the value of each transmission rate, all the segmentation points in the transmission sequence are obtained; The transmission sequence is segmented according to all the segmentation points, and the similarity of the change value sequence corresponding to each two adjacent transmission sequences is obtained. According to the similarity, it is determined whether each two adjacent transmission sequences need to be merged, and two or more transmission data segments are obtained; According to the data security situation of each change value corresponding to each transmission data segment within the future preset time, each change value corresponding to each transmission data segment is analyzed abnormally, and the abnormal access degree of different change values corresponding to different transmission data segments during each data communication between different models of access devices and different functional units is obtained.
[0012] In a second aspect, the present application provides an access device between an internal network and a public network, which adopts the following technical solution: An access device between an internal network and a public network, comprising: An environment acquisition module, used to acquire an internal network environment and a public network environment, wherein the internal network environment is used to represent a network environment established within an organization or enterprise, and the public network environment is used to represent a publicly available network environment; A gateway construction module, when detecting that a device in a public network environment accesses an internal network, constructs and deploys a stealth access gateway for the internal network environment access interface based on FRP, and constructs and deploys a stealth access gateway for the public network environment based on FRP; A gateway connection module, used to establish a connection between the stealth access gateway and the stealth access gateway, and determine a stealth connection path between the gateways; An information acquisition module, used to acquire user access information when it is detected that the stealth connection path is established, and to perform access parameter screening on the user access information to obtain access identity parameters and access data parameters; A message encryption module, used to determine whether the access identity parameter meets the preset identity standard data, if so, determine the data certificate information based on the access identity parameter and the preset certificate association relationship, and configure the data certificate information in the stealth access gateway and the stealth access gateway for address message encryption, if not, generate identity authentication exception information; An information determination module, used to determine the accessible data information corresponding to the access identity parameter based on a preset access control rule; The access judgment module is used to judge whether the functional unit corresponding to the access data parameter is included in the functional unit set of the accessible data information. If not, unit access exception information is generated. If included, the functional unit corresponding to the access data parameter is accessed based on the stealth connection path.
[0013] On the third side, the present application provides an electronic device, which adopts the following technical solution: at least one processor; Memory; At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute a method for accessing an internal network and a public network as described in any one of the first aspects.
[0014] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: A computer-readable storage medium stores a computer program thereon, which, when executed in a computer, causes the computer to execute the access method between an internal network and a public network as described in any one of the first aspects.
[0015] In summary, the present application includes at least one of the following beneficial technical effects: The present application can realize the comprehensive management and control of the internal network environment and the public network environment. When the device in the public network tries to access the internal network, the electronic device quickly builds the stealth access gateway and the stealth access gateway based on the FRP technology, which ensures the concealment and security of the access. The establishment of the stealth connection path provides a secure channel for the transmission of data and effectively prevents unauthorized access. Further, when the user accesses through the path, the system will perform detailed parameter screening on the user's access information, which includes double verification of the access identity and access data. In this way, the identity of each visitor can be accurately identified to ensure that only users who meet the preset identity standards can continue to access, thereby greatly improving the security of the system. In addition, the present application also determines the data information accessible to the user through preset access control rules, which further refines the authority management so that users with different identities can only access their authorized data. Finally, by judging whether the functional unit corresponding to the access data parameter is in the set of accessible data information, the system can accurately control the user's access to a specific functional unit, thereby ensuring data security while also providing a flexible access control mechanism. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A flowchart of a method for accessing an internal network and a public network provided in an embodiment of the present application.
[0017] Figure 2 A schematic diagram of the structure of an access device between an internal network and a public network provided in an embodiment of the present application.
[0018] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0019] The following is combined with Figure 1-3 This application is described in further detail.
[0020] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. After reading this specification, a person skilled in the art may make non-creative modifications to the present embodiment as needed, but such modifications are protected by the patent law as long as they are within the scope of the present application.
[0021] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0022] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.
[0023] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.
[0024] The embodiment of the present application provides a method for accessing an internal network and a public network, which is executed by an electronic device, which can be a server or a terminal device, wherein the server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. The terminal device can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The terminal device and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiment of the present application. Figure 1 As shown, the method includes: Step S10: Acquire the internal network environment and the public network environment.
[0025] Among them, the internal network environment is used to refer to the network environment established within an organization or enterprise, and the public network environment is used to refer to the publicly available network environment.
[0026] For the embodiments of the present application, network scanning tools are used to discover devices and services in the network. These tools can scan devices within a specified IP address range and collect information about network devices, open ports, and services. Furthermore, network management protocols such as SNMP (Simple Network Management Protocol) can be used to collect information about network devices. SNMP allows network devices to report their status information to the management system, including interface status, device temperature, CPU utilization, etc.
[0027] Step S11: when it is detected that a device in a public network environment accesses an internal network, a stealth access gateway is constructed and deployed for the internal network environment access interface based on FRP, and a stealth access gateway is constructed and deployed for the public network environment based on FRP.
[0028] Specifically, FRP (Fast Reverse Proxy) is an efficient intranet penetration tool that can expose internal network services to the public network while maintaining the security of the internal network. Stealth Access Gateway and Stealth Access Gateway are special gateways built using FRP technology. They are deployed in the internal network environment and the public network environment respectively to achieve secure remote access.
[0029] In an embodiment of the present application, a stealth access gateway is constructed in a public network environment, and the system starts to construct a stealth access gateway. This gateway will serve as an entry point for external access, and then the FRP penetration service is configured on the stealth access gateway so that external access requests can be securely forwarded to the stealth access gateway of the internal network. The server and client of FRP are set up midway, as well as the corresponding penetration rules and keys. The stealth access gateway is then deployed to deploy the configured stealth access gateway to the public network environment to ensure that it can stably receive external access requests and securely forward these requests to the stealth access gateway of the internal network through FRP.
[0030] Step S12: Establish a connection between the invisible access gateway and the invisible access gateway, and determine a invisible connection path between the gateways.
[0031] For the embodiments of the present application, the stealth access gateway refers to a gateway device deployed at the edge of the internal network environment, whose main function is to hide and protect the internal network structure and resources, while allowing authenticated and authorized external access. The stealth access gateway refers to a gateway device deployed in a public network environment, which is responsible for receiving external access requests and securely forwarding them to the stealth access gateway. A connection is used to represent a data transmission channel established between two gateways, and a stealth connection path refers to a connection that maintains anonymity when transmitting data and does not expose the true structure and address information of the internal network.
[0032] Specifically, after the stealth access gateway and stealth access gateway are deployed, a secure connection needs to be established between them. This connection not only needs to ensure the efficiency and stability of data transmission, but more importantly, it needs to ensure the security and anonymity of data during transmission. By determining the stealth connection path, the security of the network can be further enhanced, making it difficult for external attackers to detect and attack the internal network.
[0033] In the embodiment of the present application, the intranet penetration function of the FRP (Fast Reverse Proxy) tool is used to map the service port of the invisible access gateway to the invisible access gateway on the public network. In this way, the external access request first reaches the invisible access gateway, and then is securely forwarded to the invisible access gateway through the tunnel established by FRP. In this way, not only the connection between the two gateways is achieved, but also the invisibility of the connection is ensured.
[0034] Step S13: when it is detected that the stealth connection path is established, the user access information is obtained, and the access parameter screening is performed on the user access information to obtain the access identity parameter and the access data parameter.
[0035] For the embodiments of the present application, the stealth connection path refers to a data transmission channel established between two gateways for maintaining anonymity; user access information refers to relevant data generated by the user during the access process, including but not limited to access time, access source, access target, etc.; access parameter screening refers to the process of detailed inspection and analysis of user access information to identify and extract key information; access identity parameters are used to represent and confirm the identity of the visitor, and may include user ID, authentication token, etc.; access data parameters refer to the specific data content transmitted by the user during the access process, such as query keywords, requested resource identifiers, etc.
[0036] Specifically, the electronic device will monitor the establishment event of the stealth connection path. Once the event is detected, the electronic device immediately triggers the access information capture mechanism to record all data packets transmitted through the path. Then, these data packets are parsed using the preset screening rules to extract the user access information. Then, this information is classified and processed to separate the access identity parameters and access data parameters, which are stored separately for subsequent use.
[0037] Step S14, determine whether the access identity parameters meet the preset identity standard data. If they meet, determine the data certificate information based on the access identity parameters and the preset certificate association relationship, and configure the data certificate information in the stealth access gateway and the stealth access gateway for address message encryption. If they do not meet, generate identity authentication exception information.
[0038] For the embodiments of the present application, the access identity parameter represents information used to verify the identity of the visitor, such as user ID, certificate number, etc.; the preset identity standard data refers to a set of standard data pre-set in the system for verifying whether the visitor's identity is legal; the data certificate information refers to a digital certificate associated with a specific identity, which contains information used for data encryption and identity authentication; the invisible access gateway and the invisible access gateway are two key nodes in network communication, which are responsible for the connection and data encryption of the internal network and the external network respectively; address message encryption refers to the encryption processing of data packets in network communication to ensure the secure transmission of data; identity authentication exception information is information generated when the visitor's identity authentication fails, which is used to prompt the system administrator or user that there is an attempt to access illegally.
[0039] Specifically, the electronic device determines whether the access identity parameters match the preset identity standard data through database query or hash comparison. Once the verification is passed, the system will obtain the corresponding data certificate information based on the preset certificate association relationship (such as querying the corresponding certificate storage location or index through identity parameters). Then, the system configures these certificate information to the invisible access gateway and invisible access gateway respectively, and uses public key encryption technology to encrypt the data message to ensure the confidentiality and integrity of the data.
[0040] Step S15: Determine accessible data information corresponding to the access identity parameter based on preset access control rules.
[0041] For the embodiments of the present application, the preset access control rules refer to a set of rules pre-set in the system, which are used to determine which data or resources users with different identities can access; the access identity parameters refer to the information used to identify and verify the identity of the visitor, such as user name, user ID, role, etc.; the accessible data information refers to the scope of data or information that the visitor is entitled to access, determined based on the access control rules and the identity of the visitor.
[0042] Specifically, the electronic device maintains an access control list (ACL), which clearly defines the data items that each user or role can access. When a user requests access to data, the system first verifies the user's identity and then determines which data the user can access based on the definition in the ACL. This method is simple and direct, but the ACL needs to be updated and maintained regularly to ensure its accuracy.
[0043] Step S16, determine whether the functional unit corresponding to the access data parameter is included in the set of functional units that can access data information. If not, generate unit access exception information; if included, access the functional unit corresponding to the access data parameter based on the stealth connection path.
[0044] Based on the above embodiments, the present application can realize comprehensive management and control of the internal network environment and the public network environment. When a device in the public network attempts to access the internal network, the electronic device quickly builds a stealth access gateway and a stealth access gateway based on the FRP technology, which ensures the confidentiality and security of the access. The establishment of the stealth connection path provides a secure channel for the transmission of data and effectively prevents unauthorized access. Further, when the user accesses through the path, the electronic device will perform detailed parameter screening on the user's access information, which includes double verification of the access identity and access data. In this way, the identity of each visitor can be accurately identified to ensure that only users who meet the preset identity standards can continue to access, thereby greatly improving the security of access. In addition, the present application also determines the data information accessible to the user through preset access control rules, which further refines the authority management so that users with different identities can only access their authorized data. Finally, by judging whether the functional unit corresponding to the access data parameter is in the set of accessible data information, the system can accurately control the user's access to a specific functional unit, thereby ensuring data security while also providing a flexible access control mechanism.
[0045] A possible implementation method of an embodiment of the present application is to configure the data certificate information in the invisible access gateway and the invisible access gateway respectively to perform message address encryption, and then also include: creating an associated access domain name and a domain name resolution record corresponding to the associated access domain name, the associated access domain name is an associated access domain name of an external network environment, and the associated access domain name and the domain name resolution record are configured in the invisible access gateway according to preset configuration rules.
[0046] Specifically, the verification return information means that the current user device does not have direct access rights, so it is necessary to apply for permissions step by step. If the permission manager of the corresponding level agrees to the user device to access, the permission pass label in the node verification information will be changed. For example: Zhang San wants to access the first-level confidential data, but at this time Zhang San only has direct access to the third-level confidential data. Therefore, Zhang San needs to submit his own node verification information to the second-level permission manager and the first-level permission manager, and inform the superior permission manager of the data he wants to access and the node approved and verified by the permission manager. If the superior permission manager agrees that Zhang San can use the user device to access the first-level confidential data, the corresponding node pass status in the node verification information will be changed, thereby updating the permission pass label in the node verification information.
[0047] For the embodiment of the present application, the preset time is the approval time of the superior authority manager. In order to prevent the user from falsifying the authority application, the present application regulates the review time, and sets a time limit based on the shortest and longest approval times of the superior authority manager to form a preset time. The preset time is known only to the electronic device and is not known to other operators. When the user approval time is too long or too short, it is determined that there is a case of falsification of the authority application.
[0048] A possible implementation method of an embodiment of the present application is to screen access parameters of user access information to obtain access identity parameters and access data parameters, and then also include: determining a protection unit set based on an internal network environment, and determining whether the unit corresponding to the access data parameter matches the unit in the protection unit set. If not, generating access permission exception information.
[0049] A possible implementation method of an embodiment of the present application is to establish a connection between a stealth access gateway and a stealth access gateway, and then also include: when a public network environment accesses an internal network environment through an access message, determining whether the type of the access message is a preset message type, if not, translating the access message into a preset message type, if the access message type is a preset message type, calculating based on the access message, the accessing user's secure communication data certificate, the current timestamp, and the functional unit ID to obtain a target access address, and overwriting the access address in the access message based on the target access address to obtain a processed access message.
[0050] A possible implementation method of an embodiment of the present application is to overwrite the access address in the access message based on the target access address to obtain a processed access message, and then also include: when the internal network receives the processed access message, restore the target access address in the access message based on cryptographic operations to obtain the original address parameters of the access message, verify the original address parameters, and determine whether the original address parameters meet the preset verification standards. If so, the access request of the access message is approved; if not, the access message is discarded.
[0051] A possible implementation method of the embodiment of the present application also includes: acquiring the flow transmission information between the internal network and the public network in real time, organizing the flow transmission information according to the transmission time nodes, obtaining a transmission fluctuation diagram of the data transmission between the internal network and the public network, fitting the transmission fluctuation diagram with the preset flow transmission diagram according to the transmission time nodes, judging whether there are abnormalities in the flow transmission data corresponding to different transmission time nodes, and if so, acquiring historical flow transmission data, and performing data transmission abnormality analysis on the internal network and the public network based on the historical flow transmission data to obtain an abnormal access degree, wherein the historical flow transmission data is the flow transmission data obtained when different models of access devices in the public network environment communicate with different functional units in the internal network environment, comparing the abnormal access degree with the access degree in the abnormal access standard, obtaining user access rules, and adjusting the accessible data information corresponding to the access identity parameters based on the user access rules.
[0052] Specifically, the highest traffic transmission rate and the lowest traffic transmission rate in each data communication process between different types of access devices in a public network environment and different functional units in an internal network environment are determined according to historical traffic transmission data, and the highest traffic transmission rate and the lowest traffic transmission rate are used as transmission numerators, and the time used in each data communication process is used as the transmission denominator. According to the ratio of the transmission numerator to the transmission denominator, the transmission rate change value of each data communication process is obtained, and the transmission rate change values are arranged in time sequence to obtain a transmission sequence of the historical traffic transmission data. According to the change values corresponding to the transmission rates of different types of access devices and different functional units in the transmission sequence each time and the value of each transmission rate, all segmentation points in the transmission sequence are obtained, and the transmission sequence is segmented according to all segmentation points to obtain the similarity of the change value sequences corresponding to each two adjacent transmission sequences, and whether each two adjacent transmission sequences need to be merged is determined according to the similarity, and two or more transmission data segments are obtained. According to the data security situation of each change value corresponding to each transmission data segment within a preset time in the future, each change value corresponding to each transmission data segment is analyzed for abnormality, and the abnormal access degree of different change values corresponding to different transmission data segments in each data communication process between different types of access devices and different functional units is obtained.
[0053] For the embodiment of the present application, a coordinate system is established, in which the X-axis is time information and the Y-axis is traffic rate information. The time information corresponding to the X-axis is distributed in unit time nodes, and the unit time node is every minute. The traffic rate in the current time is marked with the traffic rate corresponding to the traffic rate information on the Y-axis, and then the corresponding traffic rate marks per subsequent minute are connected to form a traffic rate curve for the user device and the application device. This curve is the transmission fluctuation diagram of the data transmission, and the preset traffic transmission diagram is the corresponding traffic rate range curve diagram in different unit times. By fitting the transmission fluctuation diagram with the preset traffic transmission diagram, it can be known whether there is currently any data transmission anomaly.
[0054] For the embodiment of the present application, the traffic transmission anomaly model is a pre-trained neural network model.
[0055] The following is an introduction to an access device between an internal network and a public network provided in an embodiment of the present application. The access device between an internal network and a public network described below and the access method between an internal network and a public network described above can be referred to each other. Please refer to Figure 2 , Figure 2 1 is a schematic diagram of a structure of an access device 20 between an internal network and a public network provided in an embodiment of the present application, including: The environment acquisition module 21 is used to acquire an internal network environment and a public network environment. The internal network environment is used to represent a network environment established within an organization or enterprise, and the public network environment is used to represent a publicly available network environment. The gateway construction module 22, when detecting that a device in a public network environment accesses an internal network, constructs and deploys a stealth access gateway for the internal network environment access interface based on FRP, and constructs and deploys a stealth access gateway for the public network environment based on FRP; The gateway connection module 23 is used to establish a connection between the invisible access gateway and the invisible access gateway, and determine the invisible connection path between the gateways; The information acquisition module 24 is used to acquire user access information when it is detected that the stealth connection path is established, and to screen the access parameters of the user access information to obtain access identity parameters and access data parameters; The message encryption module 25 is used to determine whether the access identity parameters meet the preset identity standard data. If they meet, the data certificate information is determined based on the access identity parameters and the preset certificate association relationship, and the data certificate information is respectively configured in the invisible access gateway and the invisible access gateway to perform address message encryption. If they do not meet, the identity authentication exception information is generated; An information determination module 26, for determining accessible data information corresponding to the access identity parameter based on a preset access control rule; The access judgment module 27 is used to judge whether the functional unit corresponding to the access data parameter is included in the functional unit set that can access the data information. If not, unit access exception information is generated. If included, the functional unit corresponding to the access data parameter is accessed based on the stealth connection path.
[0056] An electronic device provided in an embodiment of the present application is introduced below. The electronic device described below and the access method between the internal network and the public network described above can refer to each other.
[0057] The present application embodiment provides an electronic device, such as Figure 3 As shown, Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Figure 3 The electronic device 300 shown includes: a processor 301 and a memory 303. The processor 301 and the memory 303 are connected, such as through a bus 302. Optionally, the electronic device 300 may also include a transceiver 304. It should be noted that in actual applications, the transceiver 304 is not limited to one, and the structure of the electronic device 300 does not constitute a limitation on the embodiments of the present application.
[0058] The processor 301 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of the embodiments of the present application. The processor 301 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0059] The bus 302 may include a path to transmit information between the above components. The bus 302 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0060] The memory 303 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0061] The memory 303 is used to store application code for executing the solution of the embodiment of the present application, and the execution is controlled by the processor 301. The processor 301 is used to execute the application code stored in the memory 303 to implement the content shown in the above method embodiment.
[0062] Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0063] A computer-readable storage medium provided in an embodiment of the present application is introduced below. The computer-readable storage medium described below and the method described above can be referenced to each other.
[0064] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned access method between an internal network and a public network are implemented.
[0065] Since the embodiments of the computer-readable storage medium part and the embodiments of the method part correspond to each other, the embodiments of the computer-readable storage medium part refer to the description of the embodiments of the method part.
[0066] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0067] The above are only some implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method of accessing an internal network from a public network. It is characterized in that include: Acquire an internal network environment and a public network environment, wherein the internal network environment is used to represent a network environment established within an organization or enterprise, and the public network environment is used to represent a publicly available network environment; When it is detected that a device in a public network environment accesses an internal network, a stealth access gateway is constructed and deployed for the access interface of the internal network environment based on FRP, and a stealth access gateway is constructed and deployed for the public network environment based on FRP; Establishing a connection between the stealth access gateway and the stealth access gateway, and determining a stealth connection path between the gateways; When it is detected that the stealth connection path is established, user access information is obtained, and access parameter screening is performed on the user access information to obtain access identity parameters and access data parameters; Determine whether the access identity parameter meets the preset identity standard data. If so, determine the data certificate information based on the access identity parameter and the preset certificate association relationship, and configure the data certificate information in the stealth access gateway and the stealth access gateway for address message encryption. If not, generate identity authentication exception information; Determine the accessible data information corresponding to the access identity parameter based on the preset access control rule; Determine whether the functional unit corresponding to the access data parameter is included in the functional unit set of the accessible data information. If not, generate unit access exception information. If included, access the functional unit corresponding to the access data parameter based on the stealth connection path.
2. A method for accessing an internal network and a public network according to claim 1, It is characterized in that The step of configuring the data certificate information in the stealth access gateway and the stealth access gateway to perform message address encryption also includes: Creating an associated access domain name and a domain name resolution record corresponding to the associated access domain name, wherein the associated access domain name is an associated access domain name of the external network environment; The associated access domain name and the domain name resolution record are configured on the stealth access gateway according to preset configuration rules.
3. A method for accessing an internal network and a public network according to claim 1, It is characterized in that The access parameter screening of the user access information to obtain the access identity parameter and the access data parameter further includes: A protection unit set is determined based on the internal network environment, and it is determined whether the unit corresponding to the access data parameter matches the unit in the protection unit set. If not, access permission exception information is generated.
4. A method for accessing an internal network and a public network according to claim 2, It is characterized in that The step of establishing a connection between the stealth access gateway and the stealth access gateway further comprises: When the public network environment accesses the internal network environment through an access message, determining whether the type of the access message is a preset message type, if not, translating the access message into a preset message type, and if the access message type is a preset message type, calculating based on the access message, the access user's secure communication data certificate, the current timestamp, and the functional unit ID to obtain a target access address; The access address in the access message is overwritten based on the target access address to obtain a processed access message.
5. A method for accessing an internal network and a public network according to claim 4, It is characterized in that The access address in the access message is overwritten based on the target access address to obtain a processed access message, and then further includes: When the internal network receives the processed access message, the target access address in the access message is restored based on cryptographic operations to obtain the original address parameters of the access message; The original address parameters are checked to determine whether the original address parameters meet a preset check standard. If so, the access request of the access message is approved; if not, the access message is discarded.
6. A method for accessing an internal network and a public network according to claim 1, It is characterized in that The method further comprises: Obtain traffic transmission information between internal networks and public networks in real time; Arrange the traffic transmission information according to the transmission time nodes to obtain a transmission fluctuation diagram of the data transmission between the internal network and the public network; Fitting the transmission fluctuation graph with the preset traffic transmission graph according to the transmission time nodes, determining whether there is an anomaly in the traffic transmission data corresponding to different transmission time nodes, and if so, obtaining historical traffic transmission data, and performing data transmission anomaly analysis on the internal network and the public network based on the historical traffic transmission data to obtain the abnormal access degree, wherein the historical traffic transmission data is traffic transmission data obtained when different models of access devices in the public network environment communicate with different functional units in the internal network environment; The abnormal access degree is compared with the access degree in the abnormal access standard to obtain a user access rule, and the accessible data information corresponding to the access identity parameter is adjusted based on the user access rule.
7. A method for accessing an internal network and a public network according to claim 6, It is characterized in that The performing data transmission anomaly analysis on the internal network and the public network based on the historical traffic transmission data to obtain the abnormal access degree includes: Determine the highest traffic transmission rate and the lowest traffic transmission rate during each data communication between different types of access devices in the public network environment and different functional units in the internal network environment according to the historical traffic transmission data, and use the highest traffic transmission rate and the lowest traffic transmission rate as the transmission numerator, and use the time used for each data communication process as the transmission denominator; The transmission rate change value of each data communication process is obtained according to the ratio of the transmission numerator to the transmission denominator; Arranging the transmission rate change values in time sequence to obtain a transmission sequence of historical traffic transmission data; According to the change value corresponding to the transmission rate of each different functional unit of the access device of different models in the transmission sequence, and the value of each transmission rate, all the segmentation points in the transmission sequence are obtained; The transmission sequence is segmented according to all the segmentation points, and the similarity of the change value sequence corresponding to each two adjacent transmission sequences is obtained. According to the similarity, it is determined whether each two adjacent transmission sequences need to be merged, and two or more transmission data segments are obtained; According to the data security situation of each change value corresponding to each transmission data segment within the future preset time, each change value corresponding to each transmission data segment is analyzed abnormally, and the abnormal access degree of different change values corresponding to different transmission data segments during each data communication between different models of access devices and different functional units is obtained.
8. An access device between an internal network and a public network, It is characterized in that include: An environment acquisition module, used to acquire an internal network environment and a public network environment, wherein the internal network environment is used to represent a network environment established within an organization or enterprise, and the public network environment is used to represent a publicly available network environment; A gateway construction module, when detecting that a device in a public network environment accesses an internal network, constructs and deploys a stealth access gateway for the internal network environment access interface based on FRP, and constructs and deploys a stealth access gateway for the public network environment based on FRP; A gateway connection module, used to establish a connection between the stealth access gateway and the stealth access gateway, and determine a stealth connection path between the gateways; An information acquisition module, used to acquire user access information when it is detected that the stealth connection path is established, and to perform access parameter screening on the user access information to obtain access identity parameters and access data parameters; A message encryption module, used to determine whether the access identity parameter meets the preset identity standard data, if so, determine the data certificate information based on the access identity parameter and the preset certificate association relationship, and configure the data certificate information in the stealth access gateway and the stealth access gateway for address message encryption, if not, generate identity authentication exception information; An information determination module, used to determine the accessible data information corresponding to the access identity parameter based on a preset access control rule; The access judgment module is used to judge whether the functional unit corresponding to the access data parameter is included in the functional unit set of the accessible data information. If not, unit access exception information is generated. If included, the functional unit corresponding to the access data parameter is accessed based on the stealth connection path.
9. An electronic device, It is characterized in that include: at least one processor; Memory; At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute a method for accessing an internal network and a public network as described in any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer program is stored which can be loaded by a processor and executes the access method between an internal network and a public network as claimed in any one of claims 1 to 7.
