A security authentication method and device
By configuring the forwarding information base entry of the micro-segmentation identifier for each authenticated client's IP address and matching the security authentication access control entries of the source and destination micro-segmentation groups, the ACL resource bottleneck problem in the Portal authentication system is solved and implemented. It provides efficient access control to multiple IP addresses and saves the number of ACL entries.
Patent Information
- Application Number
- CN202210755463.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-30
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-06-30
AI Technical Summary
In the portal authentication system, the number of authorized ACL entries generated by the AAA server is limited, causing the ACL resources of the access device to become a bottleneck for the number of users supported by the system.
Configure a forwarding information base entry with a micro-segmentation identifier for each authenticated client's IP address, match the security authentication access control entry of the specified source micro-segmentation group and destination micro-segmentation group, and pass the source micro-segmentation identifier and destination differentiation The segment identifier searches for matching security authentication access control table entries to control the forwarding of data packets.
Multiple source IP addresses and destination IP addresses of the same micro-segmentation share one security authentication ACL entry, which saves the number of ACL entries for access devices in the Portal authentication system and achieves more efficient access control.
Smart Images

Figure CN115277100B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to communication technology, and in particular to a security authentication method and device. Background Art
[0002] In order to strengthen the security control and operation management of network resources, when the user terminal accesses the local area network, it is necessary to perform security authentication and authorization on the access to ensure that network resources are accessed by users who have been effectively authenticated. Portal authentication is a flexible access control technology that can implement access control at the access layer and at the entrance of key data that needs to be protected. The Portal system usually includes an authentication client, an access device, a Portal server (including a Portal authentication server and a Portal Web server), an AAA server, and a security policy server. The access device redirects the user's HTTP / HTTPS request to the Portal server to provide a Web authentication page, and the access device then submits the authentication information submitted by the user through the Web authentication page to the Porta server. During the authentication process, the access device interacts with the Portal server and the AAA server to complete the authentication, authorization, and accounting functions. After the authentication client passes the authentication, the AAA authentication server sends the authorization ACL (Access Control List) table entry to the access device. The access device only allows the successfully authenticated Portal user to be authorized network resources according to the authorization ACL table entry. However, in the authorization ACL table generated by the AAA server, the access device needs to search for a matching authorization ACL table item based on the source IP address and destination IP address of the message. However, the number of ACL table items is a limited hardware resource, which causes the ACL resources of the access device to become the bottleneck of the number of portal users supported by the portal authentication system. Summary of the invention
[0003] The purpose of the present application is to provide a security authentication method and device to reduce the resources occupied by the security authentication access control table entries of the portal authentication device access device.
[0004] To achieve the above-mentioned purpose, the present application provides a security authentication method; the method includes: configuring a forwarding information library table entry with a micro-segmentation identifier for each authenticated client IP address; configuring a security authentication access control table entry that matches a specified source micro-segmentation group and a specified destination micro-segmentation group; obtaining the source IP address and destination IP address of a received data message; finding a forwarding information library table entry that matches the source IP address in the forwarding information library, and obtaining a source micro-segmentation identifier corresponding to the source IP address; finding a forwarding information library table entry that matches the destination IP address in the forwarding information library, and obtaining a destination micro-segmentation identifier corresponding to the destination IP address; finding a matching security authentication access control table entry based on the source micro-segmentation identifier and the destination micro-segmentation identifier; and controlling the forwarding of the received data message based on the security authentication access control table entry.
[0005] To achieve the above-mentioned purpose, the present application provides a security authentication device, wherein the device includes: a setting module, which is used to configure a forwarding information library table entry with a micro-segmentation identifier for each authenticated client IP address; configure a security authentication access control table entry that matches a specified source micro-segmentation group and a specified destination micro-segmentation group; an authentication module, which is used to obtain the source IP address and destination IP address of a received data message; find a forwarding information library table entry that matches the source IP address in the forwarding information library, and obtain the source micro-segmentation identifier corresponding to the source IP address; find a forwarding information library table entry that matches the destination IP address in the forwarding information library, and obtain the destination micro-segmentation identifier corresponding to the destination IP address; find a matching security authentication access control table entry based on the source micro-segmentation identifier and the destination micro-segmentation identifier; and a switching module, which controls the forwarding of the received data message based on the security authentication access control table entry.
[0006] The beneficial effect of the present application is that multiple source IP addresses belonging to the same micro-segment and multiple destination IP addresses belonging to another identical micro-segment can achieve the purpose of access control through one security authentication ACL entry, thereby saving the number of ACL entries of access devices in the Portal authentication system. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Figure 1 Shown is a flow chart of an embodiment of a security authentication method provided by the present application;
[0008] Figure 2 A flowchart of setting a forwarding information base with a micro-segment identifier provided in an embodiment of the present application;
[0009] Figure 3 Shown is a flow chart of an embodiment of a security authentication device provided by the present application. DETAILED DESCRIPTION
[0010] The present invention will be described in detail with multiple examples shown in multiple figures. In the following detailed description, multiple specific details are used to provide a comprehensive understanding of the present application. Known methods, steps, components and circuits are not described in detail in the examples to avoid making these examples difficult to understand.
[0011] Among the terms used, the term "include" means including but not limited to; the term "contain" means including but not limited to; the terms "above", "within" and "below" are inclusive of the number; the terms "greater than" and "less than" are exclusive of the number. The term "based on" means based on at least a part thereof.
[0012] Figure 1 The flowchart of the security authentication method embodiment provided by the present application shown includes:
[0013] Step 101, configuring a forwarding information base entry with a micro-segmentation identifier for each authenticated client IP address;
[0014] Step 102, configuring a security authentication access control table entry matching a specified source micro-segment group and a specified destination micro-segment group;
[0015] Step 103, obtaining the source IP address and destination IP address of the received data message;
[0016] Step 104, find a forwarding information base entry matching the source IP address in the forwarding information base, and obtain a source micro-segment identifier corresponding to the source IP address;
[0017] Step 105, find a forwarding information base entry matching the destination IP address in the forwarding information base, and obtain a destination micro-segment identifier corresponding to the destination IP address;
[0018] Step 106, searching for a matching security authentication access control table entry according to the source micro-segment identifier and the destination micro-segment identifier;
[0019] Step 107: Control forwarding of received data messages according to the security authentication access control table entry.
[0020] Figure 1 The beneficial effect of the illustrated embodiment is that multiple source IP addresses belonging to the same micro-segment and multiple destination IP addresses belonging to another identical micro-segment can achieve the purpose of access control through one security authentication ACL entry, thereby saving the number of ACL entries of access devices in the Portal authentication system.
[0021] The present application can be applied to access devices of a Portal authentication system, such as a switch or router with a layer 3 forwarding function, which can provide direct authentication of authentication clients in directly connected network segments or cross-layer 3 Portal authentication of authentication clients in non-directly connected network segments. Figure 2In the example, the access device used in the portal authentication system sets a forwarding information base with a micro-segment identifier, including the following steps:
[0022] Step 211: The access device receives an authentication result of the authentication client from the AAA server.
[0023] Step 212, the access device determines whether it is an authenticated client based on the authentication result; if not, execute step 213; if so, execute step 214.
[0024] Step 213, notifying that the authentication has failed.
[0025] In this application, if the access device sends the authentication result to the portal server, the user is notified of the portal authentication failure by pushing a web page.
[0026] In step 214 , the access device determines whether the IP address of the authenticated client belongs to a directly connected network segment; if so, execute step 215 ; if so, execute step 216 .
[0027] Step 215: The access device configures a FIB entry with a micro-segmentation identifier according to the ARP entry.
[0028] The access device searches for the ARP entry based on the IP address of the authenticated client, and the outgoing interface in the ARP entry. In the FIB (Forwarding Information Base), a FIB entry with a micro-segment ID for the IP address of the authenticated client is set. In the FIB entry, the outgoing interface is the outgoing interface of the ARP entry; the micro-segment ID is the micro-segment ID assigned by the AAA server in the authentication result based on the network segment to which the IP address of the authenticated client belongs; or, the access device assigns the micro-segment ID to the IP address of the authenticated client based on the local micro-segment ID assignment policy.
[0029] Step 216: The access device configures a static host routing table entry for the IP address of the authenticated client.
[0030] The access device searches the routing table to obtain the next hop IP address and outbound interface to the network segment to which the IP address of the authenticated client belongs; a static host routing table entry for the IP address of the authenticated client is set in the routing table, where the next hop is the next hop IP address and outbound interface to the network segment to which the authenticated client belongs obtained from the routing table.
[0031] Step 217: The access device configures a FIB entry with a micro-segmentation identifier according to the static routing entry.
[0032] The access device sets a FIB entry with a micro-segmentation identifier for the authenticated client in the FIB; the next-hop IP address and outbound interface are the next-hop IP address and outbound interface of the static host routing entry; the micro-segmentation identifier is the micro-segmentation identifier assigned by the AAA server according to the network segment to which the authenticated client's IP address belongs in the authentication result. Alternatively, the access device assigns a micro-segmentation identifier to the authenticated client's IP address according to the local micro-segmentation identifier allocation policy.
[0033] In the cross-layer three authentication mode, the authentication client is not directly connected to the access device, and the access device cannot receive the ARP protocol message from the authentication client to generate an ARP table entry. Therefore, the access device of this application configures a static routing table entry for the IP address of the successfully authenticated client during the user authentication process, and generates a FIB table entry with a micro-segmentation identifier through the next hop IP address and outbound interface of the static routing table entry.
[0034] Access equipment according to Figure 2 After a FIB entry with a micro-segmentation identifier is generated for an authenticated client that has passed authentication, when a data message is received, the source IP address and destination IP address of the data message are obtained; the FIB entry is searched according to the longest match principle, and the micro-segmentation identifier of the FIB entry of the source IP address is obtained as the source micro-segmentation identifier; the FIB entry is searched according to the longest match principle according to the destination IP address, and the micro-segmentation identifier of the FIB entry of the destination IP address is obtained as the destination micro-segmentation identifier.
[0035] The access device searches the configured security authentication ACL table according to the source micro-segment ID and the destination micro-segment ID. When a matching security authentication ACL entry is found, the forwarding of the data message is controlled according to the action item of the matching security authentication ACL entry. When the action item of the security authentication ACL entry is to allow forwarding, the data message is forwarded according to the FIB entry of the destination IP address. When the action item of the security authentication ACL entry is to prohibit forwarding, the data message is discarded.
[0036] In this application, the access device implements Portal authentication for directly connected network segments and clients across three layers by configuring FIB entries with micro-segmentation identifiers, and greatly saves the resources of security authentication ACL entries of the access device in the Portal authentication system.
[0037] Figure 3 The flowchart of the embodiment of the security authentication device provided by the present application is shown; the device 30 at least includes: a network interface, a switching chip, a CPU and a memory. The switching chip at least includes a receiving module, an authentication module and a switching module. The processor executes the setting module by running the processor executable instructions in the memory.
[0038] A setting module is used to configure a forwarding information library table entry with a micro-segmentation identifier for each authenticated client's IP address; configure a security authentication access control table entry that matches a specified source micro-segmentation group and a specified destination micro-segmentation group; an authentication module is used to obtain the source IP address and destination IP address of a received data message; find a forwarding information library table entry that matches the source IP address in the forwarding information library, and obtain the source micro-segmentation identifier corresponding to the source IP address; find a forwarding information library table entry that matches the destination IP address in the forwarding information library, and obtain the destination micro-segmentation identifier corresponding to the destination IP address; find a matching security authentication access control table entry based on the source micro-segmentation identifier and the destination micro-segmentation identifier; a switching module controls the forwarding of received data messages based on the security authentication access control table entry.
[0039] A receiving module is used to receive the authentication result of each authenticated client; a setting module is used to identify the IP address of the authenticated client belonging to the directly connected network segment when the authentication result is passed; search for the ARP table entry of the IP address of the authenticated client belonging to the directly connected network segment; and configure a forwarding information base table entry with a micro-segmentation identifier based on the ARP table entry of the IP address of the authenticated client belonging to the directly connected network segment.
[0040] A receiving module is used to receive the authentication result of each client to be authenticated; a setting module is used to identify the IP address of an authenticated client belonging to a non-directly connected network segment when the authentication result is passed; find the next hop in the routing table to reach the IP address of the authenticated client belonging to the non-directly connected network segment; set a static host route for the IP address of the authenticated client belonging to the non-directly connected network segment in the routing table; and configure a forwarding information base table entry with a micro-segmentation identifier based on the static host route.
[0041] The setting module is used to obtain the micro-segmentation identifier of the network segment to which the IP address of each authenticated client belongs from the authentication result received from each authenticated client; or, to allocate a micro-segmentation identifier to the IP address of each authenticated client according to the locally configured micro-segmentation identifier allocation rule.
[0042] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A security authentication method, characterized in that: The method comprises: Configure a forwarding information base entry with a micro-segment identifier for each authenticated client IP address; Configure a security authentication access control table entry that matches the specified source micro-segment group and the specified destination micro-segment group; Obtain the source IP address and destination IP address of the received data message; Find a forwarding information base entry matching the source IP address in the forwarding information base, and obtain a source micro-segment identifier corresponding to the source IP address; Find a forwarding information base entry matching the destination IP address in the forwarding information base, and obtain a destination micro-segment identifier corresponding to the destination IP address; Find the matching security authentication access control table entry according to the source micro-segment identifier and the destination micro-segment identifier; The forwarding of the received data message is controlled according to the security authentication access control table entry.
2. The method according to claim 1, characterized in that The forwarding information base entry with a micro-segment identifier is configured for each authenticated client IP address, including: Receive the authentication result of each client to be authenticated; When the authentication result is authentication passed, identifying the IP address of the authenticated client belonging to the directly connected network segment; Find the ARP table entry for the IP address of the authenticated client that belongs to the directly connected network segment; Configure a forwarding information base entry with a micro-segmentation indicator based on the ARP entry of the authenticated client's IP address that belongs to the directly connected network segment.
3. The method according to claim 1, characterized in that The forwarding information base entry with a micro-segment identifier is configured for each authenticated client IP address, including: Receive the authentication result of each client to be authenticated; When the authentication result is authentication passed, identifying the IP address of the authenticated client belonging to the non-directly connected network segment; Find the next hop in the routing table to the IP address of the authenticated client that belongs to a non-directly connected network segment; Setting a static host route in the routing table for the IP address of the authenticated client belonging to the non-directly connected network segment; A forwarding information base entry with a micro-segment identifier is configured according to the static host route.
4. The method according to claim 2 or 3, characterized in that: The method further comprises: The micro-segment identifier of the network segment to which the IP address of each authenticated client belongs is obtained from the authentication result.
5. The method according to claim 2 or 3, characterized in that: The method further comprises: A micro-segment ID is assigned to each authenticated client IP address according to the locally configured micro-segment ID assignment rule.
6. A security authentication device, characterized in that: The device comprises: A setting module is used to configure a forwarding information base table entry with a micro-segmentation identifier for each authenticated client IP address; configure a security authentication access control table entry matching a specified source micro-segmentation group and a specified destination micro-segmentation group; An authentication module is used to obtain the source IP address and destination IP address of the received data message; find the forwarding information library table entry that matches the source IP address in the forwarding information library, and obtain the source micro-segment identifier corresponding to the source IP address; find the forwarding information library table entry that matches the destination IP address in the forwarding information library, and obtain the destination micro-segment identifier corresponding to the destination IP address; find the matching security authentication access control table entry according to the source micro-segment identifier and the destination micro-segment identifier; The switching module controls the forwarding of the received data message according to the security authentication access control table entry.
7. The device according to claim 6, characterized in that The device also includes a receiving module; The receiving module is used to receive the authentication result of each authenticated client; The setting module is used to identify the IP address of the authenticated client belonging to the directly connected network segment when the authentication result is passed; Find the ARP table entry of the IP address of the authenticated client belonging to the directly connected network segment; configure the forwarding information base entry with the micro-segmentation identifier according to the ARP table entry of the IP address of the authenticated client belonging to the directly connected network segment.
8. The device according to claim 6, characterized in that A receiving module, used to receive the authentication result of each client to be authenticated; The setting module is used to identify the IP address of the authenticated client belonging to the non-directly connected network segment when the authentication result is passed; search the routing table for the next hop to the IP address of the authenticated client belonging to the non-directly connected network segment; set a static host route for the IP address of the authenticated client belonging to the non-directly connected network segment in the routing table; and configure a forwarding information base table entry with a micro-segmentation identifier according to the static host route.
9. The device according to claim 7 or 8, characterized in that The setting module is used to obtain the micro-segment identifier of the network segment to which the IP address of each authenticated client belongs from the authentication result received from each authenticated client.
10. The device according to claim 7 or 8, characterized in that The setting module is used to allocate a micro-segmentation identifier to the IP address of each authenticated client according to a locally configured micro-segmentation identifier allocation rule.
Citation Information
Patent Citations
Dynamic micro-segmentation method and system in cloud environment, cloud server and storage medium
CN110505262A
Method and device for configuring forwarding entry
CN112702268A
Message forwarding method and device and electronic equipment
CN113965401A
Data forwarding method based on packet label strategy
CN114039910A
Method and apparatus for providing network security using role-based access control
US20050055573A1
