Access method, access device, electronic device, and computer program product

By configuring routing policies for the requesting entity and using a dual-NIC architecture on the front-end machine, the problem of VPN devices being unable to access external systems due to conflicts between internal network IP addresses and external system IP addresses was solved, enabling secure and stable network communication in high-security scenarios such as financial metropolitan area networks.

CN120639746BActive Publication Date: 2026-11-24KE COM (BEIJING) TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511021304.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-23
Publication Date
2026-11-24
Estimated Expiration
2045-07-23

AI Technical Summary

Technical Problem

When enterprise business systems interact with external systems, conflicts between internal network IP addresses and external system IP addresses prevent VPN devices from correctly determining the data path, resulting in interaction failure. Furthermore, the IP addresses after NAT translation cannot pass the security authentication of the financial metropolitan area network and cannot access external systems.

Method used

By configuring routing policies for the requesting entity, the association between external network addresses and internal network cards is clarified, and the target network card is dynamically matched as the source address. Combined with the dual network card architecture and security plugins of the front-end machine, precise control of the communication path is achieved, avoiding address conflicts and security authentication issues.

Benefits of technology

It enables precise control of communication paths in multi-NIC environments, improves the security and compliance of network access, ensures the accuracy and stability of internal and external network communication, and is suitable for compliance access verification in high-security scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120639746B_ABST
    Figure CN120639746B_ABST
Patent Text Reader

Abstract

This disclosure provides an access method, access device, electronic device, and computer program product. One access method includes: configuring a routing policy for an external network address accessible to a requesting subject, the routing policy representing the association between the external network address and the requesting subject's internal network interface card (NIC); responding to the requesting subject's access request for a target address, determining a target NIC applicable to the target address according to the routing policy; and accessing the target address using the network address of the target NIC as the source address of the requesting subject.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and more particularly to an access method, access device, electronic device, and computer program product. Background Technology

[0002] When enterprise business systems interact with external systems, a secure connection must be established through a VPN (Virtual Private Network) device. However, when the internal network IP (Internet Protocol) address conflicts with the external system IP address, the VPN device may be unable to correctly determine the data path, resulting in interaction failure.

[0003] Related technologies use NAT (Network Address Translation) to convert the IP addresses of business systems into new, conflict-free addresses to solve this problem. However, in high-security scenarios such as finance, VPNs need to access secure authentication networks (such as financial metropolitan area networks) via dedicated lines and complete IP access authentication before they can access external systems. The IP addresses converted by NAT are not registered on the secure authentication network and cannot pass authentication, resulting in access failure even after resolving IP conflicts. Summary of the Invention

[0004] This disclosure provides an access method, access device, electronic device, and computer program product.

[0005] According to one aspect of this disclosure, an access method is provided, comprising: configuring a routing policy for an external network address accessible to a requesting subject, the routing policy representing the association between the external network address and the internal network interface card (NIC) of the requesting subject; in response to the requesting subject's access request for a target address, determining a target NIC applicable to the target address according to the routing policy; and accessing the target address using the network address of the target NIC as the source address of the requesting subject.

[0006] According to one technical solution, by configuring routing policies for external network addresses and internal network cards, intelligent matching of the source address and destination address of access requests is achieved. This enables precise control of communication paths in a multi-NIC environment, avoids security authentication issues caused by NAT translation, and improves the security and compliance of network access.

[0007] In some implementations, configuring a routing policy for an external network address accessible to the requesting subject includes: determining a first routing policy associated with the external network address and a first internal network interface card (NIC), wherein the first NIC is a network interface through which the requesting subject interacts with the external network address, and the routing prefix of the network address of the first NIC is different from the routing prefix of the external network address; and determining a second routing policy associated with an internal network address range of the requesting subject and a second NIC, wherein the second NIC provides a network interface for data interaction for any network address within the internal network address range that is different from the external network address.

[0008] According to one technical solution, by configuring routing policies associated with corresponding internal network cards for different network addresses, fine-grained control of external network access paths is achieved in a multi-NIC environment. This ensures the connectivity of cross-network segment communication, avoids security authentication issues caused by address conflicts and NAT translation, and improves the security of system access and the flexibility of network configuration.

[0009] In some implementations, in response to the requesting subject's access request to the target address, a target network interface card (NIC) suitable for the target address is determined according to the routing policy, including: based on the routing policy, when the target address is the external network address, using the first internal network interface card as the target NIC; and when the target address is within the internal network address range and does not belong to any internal network address of the external network address, using the second internal network interface card as the target NIC.

[0010] According to one technical solution, by dynamically matching the corresponding internal network card based on the target address, automatic path selection for access requests is achieved. This ensures the accuracy and security of communication between internal and external networks, avoids access failures caused by address crosstalk or NAT translation, and improves the stability of network communication and the level of intelligence in policy execution.

[0011] In some implementations, the method further includes: the security plugin of the front-end machine, triggered by the access request, reading network information of the network system where the front-end machine is located, and generating a packet containing the network address of the target network card.

[0012] According to one technical solution, by integrating a security plugin into the front-end machine, network information is dynamically read and packets carrying the target network card address are generated, which realizes real-time linkage between access requests and the network environment, enhances the traceability and security of the communication process, and effectively supports compliance access verification in high-security scenarios such as finance.

[0013] In some implementations, after configuring a routing policy for an external network address accessible to the requesting subject, the method further includes: configuring a persistent identifier for the routing policy, wherein the routing policy with the persistent identifier remains valid after the front-end machine running the routing policy is restarted.

[0014] According to one technical solution, by configuring persistent identifiers for routing policies, it is ensured that the front-end machine can retain and automatically restore critical routing configurations after a restart, which effectively improves the stability and continuity of network policies and avoids access interruption or policy failure caused by device restart.

[0015] In some implementations, after accessing the target address using the network address of the target network card as the source address of the request subject, the process includes: verifying the packet by the security authentication network corresponding to the target address to determine the access validity of the source address.

[0016] According to one technical solution, by verifying the source address of the message through a secure authentication network after accessing the target address, dynamic verification of the access rights of the requesting subject is achieved, ensuring the compliance and security of the communication process. This is especially suitable for scenarios with strict access control requirements, such as finance.

[0017] In some implementations, the security authentication network corresponding to the target address verifies the packet to determine the access validity of the source address, including: determining whether the network address in the packet is recorded in the registration address database of the security authentication network; and if the network address is recorded in the registration address database, determining that the access validity of the source address is valid; or, if the network address is not recorded in the registration address database, determining that the access validity of the source address is invalid.

[0018] According to one technical solution, by verifying the source address of the message through a secure authentication network after accessing the target address, dynamic verification of the access rights of the requesting subject is achieved, ensuring the compliance and security of the communication process. This is especially suitable for scenarios with strict access control requirements, such as finance.

[0019] In some implementations, after determining the access validity of the source address, the process includes: issuing an access credential to the source address whose access validity is valid, wherein the source address with the access credential is able to access the target address.

[0020] According to one technical solution, by comparing the source address of the access request with the registered address database of the security authentication network in real time, the access validity of the source address can be accurately determined, thereby realizing automatic interception of illegal access and rapid release of compliant access, effectively ensuring the trustworthiness and controllability of network communication in high-security scenarios.

[0021] In some implementations, before responding to the requesting subject's access request to the target address, the method further includes: in response to a call instruction to the front-end machine, the front-end machine obtains the access request.

[0022] According to another aspect of this disclosure, an access device is provided, comprising: a front-end machine, the front-end machine being configured with a first internal network interface card (NIC) and a second NIC, the first NIC being a network interface for a requesting subject to perform data interaction with an external network address, the routing prefix of the network address of the first NIC being different from the routing prefix of the external network address, and the second NIC being a network interface for data interaction for any internal network address within an internal network address range that does not belong to the external network address; and an electronic device, the electronic device being used in any embodiment of the access method of this disclosure to select an NIC adapted to the target address in the front-end machine.

[0023] According to another aspect of this disclosure, an electronic device is provided, comprising: a memory storing execution instructions; and a processor executing the execution instructions stored in the memory, causing the processor to perform an access method according to any embodiment of this disclosure.

[0024] According to another aspect of this disclosure, a readable storage medium is provided, wherein executable instructions are stored therein, which, when executed by a processor, are used to implement the access method described in any embodiment of this disclosure.

[0025] According to another aspect of this disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the access method described in any embodiment of this disclosure. Attached Figure Description

[0026] The accompanying drawings illustrate exemplary embodiments of the present disclosure and, together with the description thereof, serve to explain the principles of the present disclosure. These drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification.

[0027] Figure 1 This is a schematic diagram illustrating an application scenario of the access method according to an embodiment of the present disclosure.

[0028] Figure 2 This is a flowchart of an access method according to an embodiment of the present disclosure.

[0029] Figure 3 This is a schematic diagram illustrating the flow of an access request according to an embodiment of this disclosure.

[0030] Figure 4 This is a schematic diagram of the composition of an access device according to an embodiment of the present disclosure.

[0031] Figure 5 This is a schematic block diagram of the access device according to an embodiment of the present disclosure.

[0032] Figure 6 This is a schematic block diagram of an electronic device according to one embodiment of the present disclosure. Detailed Implementation

[0033] The present disclosure will now be described in further detail with reference to the accompanying drawings and examples. It should be understood that the specific examples described herein are for illustrative purposes only and are not intended to limit the scope of the disclosure. Furthermore, it should be noted that, for ease of description, only the parts relevant to the present disclosure are shown in the accompanying drawings.

[0034] It should be noted that, where there is no conflict, the embodiments and features described in this disclosure can be combined with each other. The technical solutions of this disclosure will now be described in detail with reference to the accompanying drawings and embodiments.

[0035] When a company's business systems interact with external systems, they need to establish a secure connection through a VPN (Virtual Private Network) device. However, when the IP (Internet Protocol) address range of the business system's internal network overlaps with the IP address range of the external system, this conflict can interfere with the VPN device's determination of the data interaction path, leading to interaction failure.

[0036] In related technologies, NAT (Network Address Translation) technology is used to convert the IP addresses of business systems into new IP addresses that will not conflict with the IP addresses of external systems. However, in scenarios with high data confidentiality requirements, such as the financial sector, VPN devices need to connect to a secure authentication network (such as a financial metropolitan area network) via a dedicated line. This secure authentication network must perform secure access authentication on the business system's IP address before it can access external systems. However, the IP address converted by NAT is not registered in the secure authentication network, and therefore cannot obtain access credentials. This results in the dilemma that even if the IP address conflict is resolved, access to external systems remains impossible.

[0037] Therefore, this disclosure proposes an access method.

[0038] Figure 1 This is a schematic diagram illustrating an application scenario of the access method according to embodiments of this disclosure. For example... Figure 1As shown, in this application scenario, a server 100 and a terminal device 200 may be included. The server 100 and the terminal device 200 can connect via a network or Bluetooth to exchange data. The server 100 can be a cloud server or a physical server, and the terminal device 200 can be a smart device such as a computer, mobile phone, or tablet. The server 100 provides the basic data required to run the access method, and the terminal device 200 executes the access method disclosed herein based on the basic data provided by the server 100.

[0039] Figure 2 This is a flowchart of an access method according to an embodiment of this disclosure. For example... Figure 2 As shown, this disclosure proposes steps S210 to S230, which provide support for the mapping relationship between the target address and the network card by configuring routing policies, giving full play to the hardware advantages of dual network cards in the request subject's intranet system, realizing accurate addressing and communication in different network environments, and avoiding problems such as security authentication failure caused by NAT translation due to IP address conflicts.

[0040] Step S210: Configure routing policies for external network addresses accessible to the requesting subject.

[0041] This disclosure primarily addresses the issue of how to circumvent the use of NAT technology to translate internal network addresses in scenarios where internal devices access external systems, resulting in security authentication failures and the inability to access the external network due to partial overlap between internal network addresses and external system IP addresses.

[0042] In the scenario described in this disclosure, an internal network refers to a private network environment built within an enterprise or organization, typically with a high level of security and accessible only to authorized devices. An enterprise's internal network usually contains multiple network addresses, each corresponding to a different internal service or page. These network addresses share the same routing prefix, forming a continuous internal network address range. For example, the address range aax0 to aax255 can serve as an enterprise's internal network address range, where aax is the routing prefix for this range, and the network addresses of all services within the enterprise are allocated and managed within this range. An external network, on the other hand, refers to a public network environment not controlled by the enterprise or organization and accessible to a wider range of users, such as the Internet or network service systems provided by partners, regulatory agencies, etc.

[0043] The requesting entity refers to the device that initiates the access request. As a data interaction node within the enterprise's intranet system, it can be a terminal device (such as a computer) used by employees. The requesting entity is typically deployed within the enterprise's internal network and can communicate with other data interaction nodes or servers within the intranet, but it does not have the ability to directly access the external network. To access the external system, the requesting entity needs to send the access request through the network interface card (NIC) in the front-end machine. The front-end machine used in this disclosure is configured with two NICs: one NIC is used to forward data requests to the internal network, and the other NIC is used to forward data requests to the external network. Clearly, selecting a suitable egress NIC for the requesting entity depends on the configuration of the routing policy.

[0044] Routing policies are used to specify the next redirect address for an access request, and the target network interface card (NIC) can be determined based on the redirect address. For example, the "route add" command can specify the next redirect address for certain external network addresses or internal network address ranges, thereby ensuring that access requests are forwarded through the specified path and achieving fine-grained control over communication paths in a multi-NIC environment. In other words, routing policies can characterize the association between external network addresses and internal NICs (i.e., an external network address corresponds to the first internal NIC); and they can also characterize the association between internal network address ranges and internal NICs (i.e., an internal network address range corresponds to the second internal NIC). The first and second internal NICs will be explained later.

[0045] Step S220: In response to the requesting subject's access request to the target address, determine the target network interface card applicable to the target address according to the routing policy.

[0046] The destination address is the network address that the requesting entity wants to access. The destination address can be an internal network address, such as the address of an internal database or application server; or an external network address, such as the interface address of a partner service system, the network address of a security authentication platform, or the interface address of a bank system. The destination address is a crucial basis for routing policies to determine communication paths and select the exit network interface card.

[0047] An access request is a data exchange instruction initiated by the requesting entity, expressing a desire to communicate with the target address. An access request should include the target address, communication protocol, and request content. In this disclosure, the target address in the access request can trigger routing policies and serves as the basis for determining the communication path and the egress network interface card (NIC).

[0048] The target network interface card (NIC) is the hardware network interface that redirects to the target address. The target NIC is one within the intranet system. Based on the mapping relationship between NICs and network addresses in the routing policy, the NIC corresponding to the target address is selected from the first and second intranet NICs of the intranet system as the target NIC.

[0049] The first internal network interface card (NIC) is the network interface through which the requesting entity interacts with the external network address. The routing prefix of the NIC's network address differs from that of the external network address. Therefore, when using the NIC's network address as the source address for external communication, there will be no data path conflict due to the requesting entity's IP address being the same as the external website address.

[0050] The second internal network interface card (NIC) provides a network interface for data exchange with any network address within the internal network address range that is different from the external network address. The NIC's address can be within the internal network address range, and it can be the same as an external network address or its routing prefix. Traffic forwarded via the second internal NIC does not require connection to an external communication link, thus avoiding data path conflicts.

[0051] This disclosure proposes a first internal network interface card (NIC) for external communication and a second internal NIC for internal communication, which physically isolates the external network from the internal network system. This avoids data path conflicts, reduces interference from the external network, and improves the security of the internal network system.

[0052] Based on the attributes of the first and second internal network interface cards (NICs), the configured routing policy includes at least a first routing policy that characterizes the association between external network addresses and the first NIC; and a second routing policy that characterizes the association between internal network address regions and the second NIC.

[0053] Step S230: Access the target address using the network address of the target network card as the source address of the request subject.

[0054] The source address is the IP address used by the initiator of the data packet to identify the origin of the data packet and serves as the basis for data packet security authentication. In this disclosure, the source address is the IP address of the requesting entity that initiated the access request, and it is the basis for external networks to determine the security of the requesting entity.

[0055] The source address refers to the IP address used by the initiator of a data packet during network communication, identifying the origin of the packet. In the TCP (Transmission Control Protocol) / IP protocol stack, the source address is a crucial component of the IP header, providing path information for network routing and serving as key information for security verification by the receiver. In the technical solution disclosed herein, the source address specifically refers to the IP address used by the requesting entity (such as a front-end machine or terminal device in an enterprise intranet) when initiating an access request. It is a vital basis for external systems to determine the legitimacy of the request and whether it has the necessary access permissions. Especially in high-security network environments such as those in finance and government, the source address typically needs to be consistent with the registration information in access control mechanisms (such as secure authentication networks); otherwise, security authentication will fail, and the access request will be rejected. Therefore, ensuring the accuracy and compliance of the source address is a critical step in achieving secure and stable network communication.

[0056] In high-security network environments such as those in finance and government, the primary internal network interface card (NIC) address is typically used as the source address for enterprise devices registering in the secure authentication network. This address is crucial for completing secure access authentication and permission verification. A secure authentication network is a private network environment built for specific organizational or business needs, featuring access control and security isolation mechanisms. It is usually not publicly accessible and access is restricted to registered IP addresses. Such networks are used to ensure the communication security and data isolation of critical business systems, such as financial metropolitan area networks in the financial industry. In a secure authentication network, the identities and IP addresses of both communicating parties typically undergo rigorous authentication and registration to ensure the compliance and controllability of network access, preventing unauthorized data interaction and security risks.

[0057] In this disclosure, if the target network interface card (NIC) is a first internal NIC, it indicates that the target address is an external network address, and the IP address of the first internal NIC must be used as the source address of the request subject. Since the first internal NIC is the network address used for external registration by the enterprise, there will be no discrepancy with the address recorded in the registration address database of the security authentication network. The registration address database records all network addresses registered in the security authentication network; addresses listed in this database can obtain access credentials for the corresponding external network system. Network addresses not recorded in this database have not been registered in the security authentication network. Therefore, when related technologies use NAT technology for address translation, if the new address is not recorded in the registration address database, it cannot obtain access permissions for the target address.

[0058] If the target network interface card (NIC) is a second internal NIC, it means the target address is an internal network address, and access can be made through the second internal NIC. This physically shields the internal network from the external network, preventing interference and security breaches from the external network.

[0059] Figure 3 This is a schematic diagram illustrating the flow of an access request according to an embodiment of this disclosure. For example... Figure 3 As shown in the diagram, this illustration illustrates the complete flow of an access request in a financial industry scenario, from its initiation by the requesting device (i.e., the requesting subject) to its eventual arrival at the external system. In the entire communication process, the access request first selects the appropriate internal network interface card (NIC) within the intranet system based on routing policies, then undergoes secure access authentication through the financial metropolitan area network, and finally successfully accesses the target external system.

[0060] As can be seen, this disclosure, through the routing policy configured within the front-end machine and the dual-NIC architecture, can accurately guide requests to access external systems to the first internal NIC, which then sends the requests to the access switch, thereby triggering communication with the external system. Since the network address of the first internal NIC does not conflict with the address of the external system or the financial metropolitan area network, there is no need to set up a NAT translation module between the front-end machine and the access switch during hardware deployment, thus simplifying the network structure and improving communication efficiency and system stability.

[0061] An intranet system comprises multiple requesting devices, intranet switches, front-end servers, and VPN devices. It's a communication system comprised of internal networks and hardware devices; the internal network itself has already been described and will not be repeated here. As the core platform for information flow within an enterprise or organization, the intranet system typically consists of multiple subnets and possesses high access control mechanisms and security protection levels. Its primary function is to ensure efficient transmission and secure access to internal data, preventing unauthorized device access and data leakage. In actual deployments, the intranet system may also integrate security components such as firewalls, intrusion detection systems, and log auditing to meet compliance requirements in different business scenarios.

[0062] An internal network switch is a network device deployed within an internal network. It connects multiple requesting devices, servers, and front-end processors, handling the forwarding and communication of data frames within the internal network. Internal network switches are typically Layer 2 or Layer 3 switches, possessing advanced functions such as network segmentation, port isolation, flow control, and access control lists. They not only ensure low latency and high bandwidth for internal communication but also enable logical isolation between different business systems through network policies, thereby improving the overall network security and manageability.

[0063] The front-end processor, deployed within the internal network, acts as an intermediary between the requesting device and the external system. It processes and forwards access requests from the requesting device to the external network and receives responses from the external network back to the requesting device. This disclosed configuration features dual network interface cards (NICs): a first internal NIC (NIC 1) and a second internal NIC (NIC 2), connecting to the external and internal networks respectively. Routing policies and security mechanisms ensure the security and accuracy of data transmission and effectively isolate the internal and external networks. In high-security network environments such as those in finance and government, the front-end processor plays a crucial role. It serves not only as the "gateway" for data exchange between the internal and external networks but also as a core node for security policy enforcement. Front-end processors typically require high hardware performance, a stable operating system environment, and robust security mechanisms to ensure stable communication capabilities under high concurrency and complex network policies. Furthermore, the front-end processor can integrate security plugins to interface with the security authentication mechanisms of external systems, further enhancing the compliance of access control.

[0064] VPN devices are devices that implement VPN technology, enabling the establishment of secure, encrypted communication channels over public networks. This allows requesting entities and external systems to transmit sensitive data in insecure network environments while ensuring data confidentiality, integrity, and the authenticity of its source. The VPN devices disclosed herein include access switches, leased line switches, a Master (master controller), and a Slave (slave controller). Access switches connect the front-end server and the controller, forwarding data frames from the front-end server to the next appropriate network address for delivery to the external system. Leased line switches connect the controller to the financial metropolitan area network (or other secure authentication networks in other scenarios), forwarding data frames from the internal network via the leased VPN channel and also supporting the acquisition of feedback information from external systems. Under normal conditions, the Master is used as the controller to allocate traffic and maintain routing. If the Master fails, the Slave is selected as the controller to prevent request failures due to VPN malfunctions.

[0065] In practical deployments, VPN devices often employ a high-availability architecture, using a master-slave redundancy mechanism to ensure network service continuity. For example, the Master and Slave nodes synchronize their states via a heartbeat mechanism. If the Master node fails, the system can quickly switch to the Slave node, ensuring uninterrupted data transmission. Furthermore, to further enhance security, VPN devices typically support features such as two-way authentication, traffic encryption, and access logging, meeting the stringent requirements of the financial industry for data privacy and access auditing.

[0066] In step 301, the front-end machine is logged in via the intranet switch.

[0067] This step marks the beginning of the entire access process. Users or applications establish a connection with the front-end server via the internal network switch, completing identity authentication and permission verification before proceeding with subsequent operations. During this stage, the front-end server typically records the visitor's identity information, login time, and operation logs to provide evidence for subsequent auditing.

[0068] Assuming the internal network address range is aax1 to aax255, then the IP address of the network switch can be aax1, the IP address of the second internal network card of the front-end machine can be aax255, and the IP addresses of other services or web pages within the internal network system should also be between aax1 and aax255. All services and web pages within the internal network system share the same routing prefix. This unified routing prefix design helps simplify routing configuration and improve network management efficiency. It also facilitates access control of specific address ranges through routing policies, thereby enhancing network security.

[0069] Because the front-end machine in this disclosure is configured with dual network interface cards (NICs), the IP address of the first internal NIC facing the outside can be bbca, or another network address with a routing prefix different from the internal network address range and different from the IP address of the external system. Therefore, the internal address range can overlap or partially overlap with the IP address of the external system without causing traffic path conflicts. This design effectively solves the communication anomaly problem caused by address overlap in traditional networks, and is particularly suitable for scenarios such as finance and government affairs with multiple subnets and complex address planning. Through flexible configuration of routing policies, even in the event of address conflicts, it ensures that access requests are accurately sent through the specified NIC, avoiding security authentication failures caused by NAT translation.

[0070] In step 302, the target URL is retrieved via the front-end processor.

[0071] In other words, after the requesting device logs into the front-end server via the internal network switch, it enters the target URL into the front-end server to form an access request. At this point, the front-end server executes step 303, triggering the routing policy to select the network interface card (NIC). In this scenario, the first internal NIC is selected, and the access request is sent to the VPN device. This process is typically completed automatically by the front-end server's operating system based on a preset routing table, requiring no manual intervention. Upon receiving the access request, the operating system parses the target address and matches the corresponding egress NIC according to the routing policy, thereby achieving intelligent control of the communication path.

[0072] The routing strategy is determined by the target URL obtained by the front-end server. The routing strategy can be: route add aax3 mask 255.255.255.255 bbcb; route add aax4 mask 255.255.255.255 bbcb; route add aax255 mask 255.255.255.255 bbcb; route add aax1-aax255 mask 255.255.255.255 aax255.

[0073] It's important to note that "route add" is a command that specifies the next jump address from either an external network address or an internal network address range. Here, aax3 and aax4 are the IP addresses of the financial metropolitan area network (MAN), and aax255 is the IP address of the external system. Clearly, both the MAN and the external system's IP addresses fall within the internal network address range aax1-aax255. Therefore, if the destination address is any of aax3, aax4, or aax255, the first internal network interface card (NIC) should be used as the destination NIC, selected through routing policy. If it's not aax3, aax4, or aax255, but falls within the internal address range aax1-aax255, the second internal NIC should be used as the destination NIC. This avoids IP address conflicts between the destination NIC and the external system. This fine-grained routing policy configuration allows for precise control over different network addresses, ensuring that access requests always travel along compliant paths, thus meeting the access control requirements of high-security scenarios.

[0074] Additionally, bbcb is the IP address of both the Master and Slave. In the routing logic, it essentially indicates the next-hop network address to the front-end machine based on the destination address of the access request. Since the next-hop network address is connected to the first internal network card and has the same routing prefix as the first internal network card, it can be determined without a doubt that the aforementioned external network address is associated with the first internal network card.

[0075] In step 304a, under fault-free conditions, the VPN device's access switch forwards the access request to the Master. "Fault-free" refers to the controller's operational status. A heartbeat mechanism is configured between the Master and Slave. The Master periodically reports its operational status to the Slave. If the Master fails to send heartbeat information to the Slave on time, it indicates a fault and will control the access switch to execute step 304b. In the event of a fault, the access request is forwarded to the Slave to ensure the normal maintenance and forwarding of access requests. This master-slave failover mechanism is one of the key technologies for ensuring network service continuity. By monitoring the master controller's status in real time through the heartbeat mechanism, the system can quickly switch to the backup controller once an anomaly is detected, thereby avoiding service interruption. This mechanism is of great significance in scenarios with extremely high service availability requirements, such as finance and government.

[0076] Furthermore, in the absence of a fault, step 305a is executed, in which the Master sends an access request to the leased line switch; in the presence of a fault, step 305b is executed, in which the Slave sends an access request to the leased line switch.

[0077] Furthermore, in step 307, the request is transmitted to the financial metropolitan area network (MAN) via a dedicated VPN tunnel. The financial MAN, a high-security network specifically built for the financial industry, is typically accessed by multiple financial institutions and regulatory agencies, forming a unified network communication platform. This network has strict access control mechanisms and policies; all access requests must pass security authentication to ensure the trustworthiness of both communicating parties and the integrity of their data.

[0078] It should be noted that the external network address that the requesting entity can access is the same external network address that establishes a dedicated VPN tunnel with the internal network system, including the IP address of the external network system and the IP address of the security authentication network.

[0079] Secure authentication networks such as financial metropolitan area networks (MANs) include a registration address database and a secure access authentication component. In step 307, the security plugin in the front-end set captures network information from the intranet system, forms and synchronizes packets to the financial MAN. The packets include at least the system information of the front-end machine, hardware information (including the front-end machine identifier), and the IP address information of the first internal network card. The system information can be, for example, a Windows system, which will not be elaborated here. The secure access authentication component, based on the front-end machine identifier associated with the obtained access request, traverses each registered IP address in the registration address database. If an IP address corresponding to the front-end machine identifier exists, it indicates that the requesting subject associated with the access request is legitimate, and an access credential is issued, indicating that its access is valid and it can access the target address. Then, step 308 is executed, and when the access is valid, the accessing subject is allowed to access the external system.

[0080] Specifically, it determines whether the network address in the message is recorded in the registered address database of the security authentication network; and if the network address is recorded in the registered address database, it determines that the access validity of the source address is valid; or if the network address is not recorded in the registered address database, it determines that the access validity of the source address is invalid.

[0081] In some implementations, a persistent identifier is configured for the routing policy, wherein the routing policy with the persistent identifier remains valid after the front-end machine running the routing policy is restarted.

[0082] This feature is achieved by adding the "-p" parameter to the routing command, ensuring that the front-end machine retains and automatically restores critical routing configurations after a reboot, effectively improving the stability and continuity of network policies and avoiding access interruptions or policy failures caused by device reboots.

[0083] In Windows systems, the default persistent flag is "-p". Other systems can use other persistent flags; no restrictions are placed here. After adding the persistent flag, the configured routing policy will remain valid and usable even after the front-end machine restarts. The routing policy with the persistent flag added will be displayed as follows: route add -p aax3 mask 255.255.255.255 bbcb; route add -p aax4 mask 255.255.255.255 bbcb; route add -p aax255 mask 255.255.255.255 bbcb; route add -p aax1-aax255 mask 255.255.255.255 aax255.

[0084] This solution, by configuring precise routing policies for the requesting entity and combining this with the dual-NIC architecture of the front-end server, achieves intelligent selection and management of access paths to both internal and external networks. This ensures that each access request is sent through the most suitable NIC, avoiding security authentication failures caused by address conflicts or NAT translation, thus greatly enhancing system security and compliance. Secondly, the application of persistent routing policies in this solution ensures that critical routing configurations are automatically restored even after a front-end server restart, effectively preventing access interruptions or policy failures due to device restarts and guaranteeing the continuity and stability of network services. Furthermore, the security plugin integrated into the front-end server not only dynamically captures and synchronizes network information from the internal network system during access, forming packets containing important information such as source addresses, but also seamlessly integrates with the security authentication mechanisms of external systems to achieve real-time verification and control of access requests, further strengthening the security of the communication process. Furthermore, by setting the network address of the first internal network card to a different routing prefix than the address of the external system or financial metropolitan area network, this solution cleverly avoids address conflicts, simplifies the complexity of hardware deployment, and eliminates the need for additional NAT translation modules. This reduces the complexity of the network structure and maintenance costs, which is of great significance for improving the overall performance and security of the enterprise network environment.

[0085] Figure 4 This is a schematic diagram illustrating the composition of an access device according to an embodiment of this disclosure. For example... Figure 4 As shown, the access device 400 proposed in this disclosure includes a front-end server 410 and an electronic device 420.

[0086] The front-end processor 410 is configured with a first internal network interface card (NIC) and a second internal network interface card (NIC). The first NIC is the network interface for data interaction between the requesting entity and the external network address. The routing prefix of the network address of the first NIC is different from the routing prefix of the external network address. The second NIC provides a network interface for data interaction for any internal network address that is within the internal network address range and does not belong to the external network address. The front-end processor 410 is also configured with an electronic device 420, which is used in the access method of any of the preceding embodiments to select an NIC in the front-end processor 410 that is suitable for the target address.

[0087] Figure 5 This is a schematic block diagram of the access device according to an embodiment of the present disclosure. Figure 5 As shown, this disclosure proposes an access device 500, including: a policy configuration module 510, used to configure a routing policy for an external network address accessible to a requesting subject, wherein the routing policy represents the association between the external network address and the internal network card of the requesting subject; a network card selection module 520, used to determine the target network card applicable to the target address according to the routing policy in response to the requesting subject's access request for the target address; and an execution module 530, used to access the target address using the network address of the target network card as the source address of the requesting subject.

[0088] The access device 500 disclosed herein may be in the form of computer software, and the various modules of the access device 500 may be in the form of computer software modules.

[0089] The various modules of the access device 500 disclosed herein are set up to implement the various steps of the access method. Their execution principles and steps can be referred to the above text and will not be repeated here.

[0090] Figure 6 This is a schematic block diagram of an electronic device according to one embodiment of the present disclosure. Figure 6 As shown, this disclosure also provides an electronic device 1000, including: a processor 1200 and a memory 1300, the memory 1300 storing execution instructions; the processor 1200 executes the execution instructions stored in the memory 1300, causing the processor 1200 to execute an access method. This electronic device may be the electronic device 420 in the access device 400.

[0091] The hardware architecture of the electronic device 1000 can be implemented using a bus architecture. The bus architecture can include any number of interconnect buses and bridges, depending on the specific application of the hardware and overall design constraints. Bus 1100 connects various circuits, including one or more processors 1200, memory 1300, and / or hardware modules. Bus 1100 can also connect various other circuits 1400, such as peripheral devices, voltage regulators, power management circuits, external antennas, etc.

[0092] Bus 1100 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Component (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, only one connection line is used in this diagram, but this does not imply that there is only one bus or only one type of bus.

[0093] This disclosure also provides a readable storage medium storing a computer program that, when executed by a processor, is used to implement the methods described above. A "readable storage medium" can be any means capable of containing, storing, communicating, propagating, or transmitting a program for use by or in conjunction with an instruction execution system, apparatus, or device. More specific examples of a readable storage medium include: an electrical connection with one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and portable read-only memory (CDROM), etc.

[0094] This disclosure also provides a computer program product, the methods of which can be implemented wholly or partially through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented wholly or partially as a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed, all or part of the processes or functions of this disclosure are performed.

[0095] Computer programs or instructions can be stored in a readable storage medium or transferred from one readable storage medium to another. For example, the computer program or instructions can be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The readable storage medium can be any available medium capable of access, or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; an optical medium, such as a digital video optical disc; or a semiconductor medium, such as a solid-state drive. The computer-readable storage medium can be a volatile or non-volatile storage medium, or it can include both volatile and non-volatile types of storage media.

[0096] Those skilled in the art will understand that embodiments of this disclosure can be provided as methods, electronic devices, readable storage media, or computer program products. Therefore, this disclosure can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this disclosure can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0097] This disclosure is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0098] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0099] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0100] In the description of this specification, the references to terms such as "one embodiment / mode," "some embodiments / modes," "example," "specific example," or "some examples," etc., refer to specific features, structures, or characteristics described in connection with that embodiment / mode or example, which are included in at least one embodiment / mode or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment / mode or example. Moreover, the specific features, structures, or characteristics described may be combined in any suitable manner in one or more embodiments / modes or examples. Furthermore, without contradiction, those skilled in the art can combine and integrate the different embodiments / modes or examples described in this specification, as well as the features of different embodiments / modes or examples.

[0101] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0102] Those skilled in the art should understand that the above embodiments are merely for illustrating the present disclosure and are not intended to limit the scope of the disclosure. Those skilled in the art can make other changes or modifications based on the above disclosure, and these changes or modifications still fall within the scope of the present disclosure.

Claims

1. An access method, characterized in that, include: Configure a routing policy for the external network address accessible to the requesting subject, wherein the routing policy represents the association between the external network address and the internal network card of the requesting subject; In response to the requesting subject's access request to the target address, the target network interface card applicable to the target address is determined according to the routing policy; as well as The target address is accessed using the network address of the target network card as the source address of the request subject; The configuration of routing policies for external network addresses accessible to the requesting entity includes: A first routing strategy is determined to associate the external network address with the first internal network interface card (NIC), where the first NIC is the network interface through which the requesting entity interacts with the external network address, and the routing prefix of the network address of the first NIC is different from the routing prefix of the external network address. A second routing strategy is determined to associate the internal network address range of the requesting subject with the second internal network card, wherein the second internal network card provides a network interface for data interaction for any network address that is in the internal network address range and is different from the external network address.

2. The access method according to claim 1, characterized in that, In response to the requesting subject's access request to the target address, the target network interface card applicable to the target address is determined according to the routing policy, including: Based on the routing policy, when the target address is the external network address, the first internal network interface card (NIC) is used as the target NIC; and When the target address is within the internal network address range and does not belong to any internal network address of the external network address, the second internal network card is used as the target network card.

3. The access method according to claim 1, characterized in that, After configuring routing policies for external network addresses accessible to the requesting subject, the following is also included: Configure a persistent identifier for the routing policy, wherein the routing policy with the persistent identifier remains valid after the front-end machine running the routing policy is restarted.

4. The access method according to claim 1, characterized in that, Also includes: The security plugin of the front-end machine, triggered by the access request, reads network information from the network system where the front-end machine is located and generates a packet containing the network address of the target network card.

5. The access method according to claim 4, characterized in that, After accessing the target address using the network address of the target network card as the source address of the request subject, the process includes: The security authentication network corresponding to the target address verifies the message to determine the access validity of the source address.

6. The access method according to claim 5, characterized in that, The security authentication network corresponding to the target address verifies the packet to determine the access validity of the source address, including: Determine whether the network address in the message is recorded in the registration address database of the security authentication network; and If the network address is recorded in the registered address database, the access validity of the source address is determined to be valid; or, if the network address is not recorded in the registered address database, the access validity of the source address is determined to be invalid.

7. The access method according to claim 5, characterized in that, After determining the access validity of the source address, the following is included: An access credential is issued to the source address whose access is valid, and the source address with the access credential is able to access the target address.

8. The access method according to claim 1, characterized in that, Before responding to the requesting subject's request for access to the target address, it also includes: In response to a call instruction to the front-end server, the front-end server obtains the access request.

9. An access device, characterized in that, include: The front-end machine is equipped with a first internal network card and a second internal network card. The first internal network card is a network interface for data interaction between the requesting subject and the external network address. The routing prefix of the network address of the first internal network card is different from the routing prefix of the external network address. The second internal network card provides a network interface for data interaction for any internal network address that is in the internal network address range and does not belong to the external network address. as well as An electronic device for performing the access method according to any one of claims 1 to 8, to select an internal network interface card adapted to the target address in the front-end machine.

10. An electronic device, characterized in that, include: The memory stores execution instructions; as well as A processor that executes execution instructions stored in the memory, causing the processor to perform the access method according to any one of claims 1 to 8.

11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the access method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method and device for automatically solving IP network segment conflict

    CN105577853A

  • Terminal external connection detection method and device, electronic equipment and storage medium

    CN116155549A