SSL VPN authentication method, device and gateway
By performing local authentication and server authentication in the SSL VPN gateway, the problem of needing to purchase an additional AAA server in the existing technology is solved, an efficient authentication process is realized, operation and maintenance costs are reduced, and the user authentication process and interaction process are simplified.
Patent Information
- Application Number
- CN202111209232.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-18
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-10-18
AI Technical Summary
The existing SSL VPN authentication method requires the purchase of an additional AAA server, frequent interactions between devices, and complex authentication processes, which increases user investment costs and operation and maintenance difficulty.
By obtaining the client's first authentication message in the SSL VPN gateway for local authentication, and sending the second authentication message to the server after success, dual authentication is achieved without the need to purchase an additional AAA server, simplifying the authentication process and interaction process.
It effectively improves authentication efficiency, reduces user investment costs, reduces operation and maintenance costs and interaction complexity, and simplifies management and deployment difficulties.
Smart Images

Figure CN114070585B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network security technology, and in particular to an SSL VPN authentication method, device and gateway. Background Art
[0002] Virtual Private Network (VPN): A temporary, secure link established through a public network. It is a secure, stable tunnel that passes through a chaotic public network. A VPN is an extension of an enterprise's internal LAN. A VPN can help remote users, company branches, business partners, and suppliers establish a trusted, secure connection with the company's internal LAN and ensure secure data transmission. VPNs can be used for global Internet access for the growing number of mobile users to achieve secure connections; they can be used to achieve virtual private lines for secure communications between corporate websites, and they can be used to cost-effectively connect to secure extranets of business partners and users.
[0003] A virtual private network can help remote users, company branches, business partners and suppliers establish a reliable and secure connection with the company's internal LAN and ensure the secure transmission of data. By transferring data streams to a low-cost network, an enterprise's virtual private network solution will significantly reduce the cost of users' metropolitan area network and remote network connections. At the same time, this will also simplify network design and management.
[0004] SSL VPN provides secure, proxyable connections, and only authenticated users can access resources. SSLVPN can segment encrypted tunnels, allowing client users to access the Internet and internal corporate network resources at the same time, which means it has controllable functions. In addition, SSL VPN can also refine access control functions, making it easy to grant different access rights to different users.
[0005] The existing authentication method requires users to purchase SMS authorization or AAA server separately. At the same time, the existing solution has frequent interactions between devices and a complicated authentication process. Summary of the invention
[0006] The embodiment of the present invention provides an SSL VPN authentication method, device and gateway, which can realize the elimination of the need to purchase an additional AAA server and improve the authentication efficiency.
[0007] The present disclosure provides an SSL VPN authentication method, including:
[0008] Obtain the first authentication message sent by the client;
[0009] Performing local authentication based on the first authentication message;
[0010] If the local authentication is successful, a second authentication message is sent to the server based on the first authentication message, and the second authentication message can be directly parsed by the server;
[0011] A response message sent by the server is received, and when it is determined based on the response message that the server authentication is successful, an authentication identifier is sent to the client, so that the client can implement business data transmission based on the authentication identifier.
[0012] In some embodiments, before performing local authentication based on the first authentication message, the SSL VPN authentication method further includes:
[0013] Obtain the data of the user's successful login to the server, and parse the target message format and the identification information of successful login;
[0014] The server is configured based on the target message format and identification information of successful login.
[0015] In some embodiments, the second authentication message is obtained by concatenating target parameters in the first authentication message according to the target message format.
[0016] In some embodiments, determining that the server authentication is successful based on the response message includes:
[0017] When the pre-configured corresponding successful login identification information is obtained by parsing the response message, it is determined that the server authentication is successful.
[0018] In some embodiments, user authentication information is maintained locally, and the locally maintained user authentication information corresponds to the user authentication information maintained by the server.
[0019] In some embodiments, if local authentication fails, the authentication process ends.
[0020] In some embodiments, the local authentication method based on the first authentication message includes: password authentication and / or certificate authentication.
[0021] The present disclosure also provides an SSL VPN authentication device, comprising:
[0022] An interface configured to obtain a first authentication message sent by a client;
[0023] The processor is configured as:
[0024] Performing local authentication based on the first authentication message;
[0025] If the local authentication is successful, a second authentication message is sent to the server based on the first authentication message, and the second authentication message can be directly parsed by the server;
[0026] A response message sent by the server is received, and when it is determined based on the response message that the server authentication is successful, an authentication identifier is sent to the client, so that the client can implement business data transmission based on the authentication identifier.
[0027] The present disclosure also proposes an SSL VPN gateway, which includes a processor and a memory. The memory stores a computer program, and when the computer program is executed by the processor, the steps of the SSL VPN authentication method described in each embodiment of the present disclosure are implemented.
[0028] The embodiment of the present invention can complete local authentication and server authentication based on a set of authentication messages, thereby realizing that users do not need to purchase additional AAA servers, effectively reducing user investment costs.
[0029] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0031] Figure 1 A basic flow chart of the SSL VPN authentication method disclosed herein;
[0032] Figure 2 This is a general flow chart of the SSL VPN authentication method disclosed in the present invention. DETAILED DESCRIPTION
[0033] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0034] This disclosure proposes an SSL VPN authentication method, such as Figure 1 As shown, the SSL VPN authentication method disclosed in the present invention is applied to the SSL VPN gateway side, including the following steps:
[0035] In step S101, the SSL VPN gateway obtains a first authentication message sent by the client. In this example, the client may be a PC, a smart device, etc. The user may log in to the SSL VPN gateway using a browser. The first authentication message that the SSL VPN gateway may obtain may be, for example, the user's login password, certificate, etc., which are not limited here.
[0036] In step S102, local authentication is performed based on the first authentication message. That is, the user's login behavior can be authenticated through the SSL VPN gateway. The user's login behavior can be, for example, the user name, password and other information entered by the user, which is completed locally in the SSL VPN gateway based on the first authentication message. In some embodiments, the local authentication method based on the first authentication message includes: password authentication, and / or, certificate authentication or a combination of multiple authentication methods, which can be set according to actual needs. In the case of local authentication failure, it is determined that the authentication request has failed and the authentication process ends.
[0037] In step S103, if the local authentication is successful, a second authentication message is sent to the server based on the first authentication message, and the second authentication message can be directly parsed by the server. In this example, after the SSL VPN gateway successfully authenticates the user's login behavior, the second authentication message can be spliced into a format that can be directly parsed by the server based on the parameters of the first authentication message, and the second authentication message is sent to the server. After receiving the second authentication message, the server sends a response message to the SSL VPN gateway based on the authentication result.
[0038] In step S104, a response message sent by the server is received. When it is determined based on the response message that the server authentication is successful, an authentication identifier is sent to the client, so that the client can implement business data transmission based on the authentication identifier. For example, the response message may include the authentication result of the server, for example, the field identifying the authentication can be set to 1 if successful and 0 if failed, or an identification information can be configured. If the corresponding identification information is included in the response message, it means that the authentication is successful, otherwise it is determined that the server authentication has failed. If the authentication fails, the authentication process ends.
[0039] In this way, the method disclosed in the present invention can complete local authentication and server authentication based on a set of authentication messages, thereby realizing that users do not need to purchase additional AAA servers, effectively reducing user investment costs.
[0040] In some embodiments, before performing local authentication based on the first authentication message, the SSL VPN authentication method further includes:
[0041] Get the data of the user successfully logging into the server, and parse out the target message format and the identification information of successful login. For example, you can use a packet capture tool to capture the interactive data packet of the successful login to the server, parse out the request message format (target message format) and select the identification information of successful login;
[0042] The server is configured based on the target message format and the identification information of successful login. The specific SSL VPN gateway can be configured with the server's IP address, some parameters required for splicing the server's request message, etc., and the successful identification information can be configured. In some embodiments, the SSL VPN gateway maintains user authentication information locally, and the locally maintained user authentication information corresponds to the user authentication information maintained by the server. That is, a set of user information is maintained on the SSL VPN gateway, and the username and password corresponding to the set of user information are consistent with the username and password used by the server, so that the SSL VPN gateway and the server can uniformly use a set of user information, greatly reducing operation and maintenance costs, and facilitating management, deployment and maintenance. In addition, the use of a set of user information can greatly simplify the interaction process and reduce the difficulty of development and deployment.
[0043] In some embodiments, determining that the server authentication is successful based on the response message includes: determining that the server authentication is successful when the corresponding pre-configured login success identification information is obtained from the parsing of the response message. The server is configured based on the target message format and the identification information of the successful login, that is, after the configuration is completed, the server can parse the data in the target message format, and the server can return the pre-configured success identification information in the response message after the second authentication message is successfully identified. The SSL VPN gateway parses the response message and determines that the server authentication is successful if the response message contains the success identification information.
[0044] In some embodiments, the second authentication message is obtained by splicing the target parameters in the first authentication message according to the target message format. Based on the aforementioned implementation, the server is configured based on the target message format and the identification information of successful login, that is, after the configuration is completed, the server can parse the data in the target message format, so that after the SSL VPN gateway successfully authenticates locally, the first authentication message can be spliced according to the target message format to obtain the second authentication message, or the specified partial parameters can be spliced, which is not specifically limited here.
[0045] Compared with the prior art, the method disclosed in the present invention does not require users to purchase SMS authorization or AAA servers to implement multi-factor authentication of SSL VPN, which reduces the user's investment cost. The main components involved in the present invention (SSL VPN gateway and server) only need to share a set of user information, which greatly reduces the operation and maintenance costs and is easy to manage, deploy and maintain. The interactive process of the method disclosed in the present invention is simple, and the development and deployment difficulty is small.
[0046] This disclosure also proposes an implementation case of an SSL VPN authentication method, such as Figure 2 As shown, in this example, the server is a WEB server as an example, including the following steps:
[0047] Use the packet capture tool to capture the interactive data packets that successfully log in to the WEB server, parse the request message format and select the success identification information;
[0048] Configure the WEB server IP address and some parameters required for request message splicing on the SSL VPN gateway, and configure success identification information.
[0049] The same set of user information is maintained on the SSL VPN gateway. The username and password corresponding to this set of user information are consistent with the username and password used by the WEB server.
[0050] The user uses the client on the browser / terminal to log in to the SSL VPN gateway. The SSL VPN gateway first performs local authentication based on the login request information (including but not limited to password and certificate authentication). If the authentication fails, the authentication request is considered to have failed.
[0051] If the local authentication is successful, the authentication request message spliced in the specified format will be sent to the WEB server, and the response message from the WEB server will be waited for and received.
[0052] Receive and parse the response message sent by the WEB server. If the success identification information pre-configured on the SSL VPN gateway is parsed from the response message, the authentication is determined to be successful and a session id (authentication identifier) is generated and sent to the browser / terminal client; the browser / terminal uses the received session id to request the establishment of an SSL tunnel, thereby establishing a data transmission tunnel and performing operations such as resource distribution, thereby achieving secure transmission of business data.
[0053] The method disclosed in the present invention does not require users to purchase SMS authorization or AAA servers separately. Users only need a normally available WEB server (including but not limited to OA and mailbox systems) in the user's intranet environment to implement an SSL VPN multi-factor authentication, thereby reducing user investment costs.
[0054] The present disclosure also provides an SSL VPN authentication device, comprising:
[0055] An interface configured to obtain a first authentication message sent by a client;
[0056] The processor is configured as:
[0057] Performing local authentication based on the first authentication message;
[0058] If the local authentication is successful, a second authentication message is sent to the server based on the first authentication message, and the second authentication message can be directly parsed by the server;
[0059] A response message sent by the server is received, and when it is determined based on the response message that the server authentication is successful, an authentication identifier is sent to the client, so that the client can implement business data transmission based on the authentication identifier.
[0060] The present disclosure also proposes an SSL VPN gateway, which includes a processor and a memory. The memory stores a computer program, and when the computer program is executed by the processor, the steps of the SSL VPN authentication method described in each embodiment of the present disclosure are implemented.
[0061] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0062] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0063] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0064] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. An SSL VPN authentication method, characterized in that: include: Obtain the data of the user's successful login to the server, and parse the target message format and the identification information of successful login; Configuring the server based on the target message format and identification information of successful login; Obtain the first authentication message sent by the client; Performing local authentication based on the first authentication message, wherein a set of user information is maintained locally, and a user password corresponding to the locally maintained user information is consistent with a user password used by the server; In the case where the local authentication succeeds, a second authentication message is sent to the server based on the first authentication message, the second authentication message can be directly parsed by the server, and the second authentication message is obtained by splicing the target parameters in the first authentication message according to the target message format; A response message sent by the server is received, and when it is determined based on the response message that the server authentication is successful, an authentication identifier is sent to the client, so that the client can implement business data transmission based on the authentication identifier.
2. The SSL VPN authentication method according to claim 1, wherein: Determining that the server authentication is successful based on the response message includes: When the pre-configured corresponding successful login identification information is obtained by parsing the response message, it is determined that the server authentication is successful.
3. The SSL VPN authentication method according to claim 1, wherein: User authentication information is maintained locally, and the locally maintained user authentication information corresponds to the user authentication information maintained by the server.
4. The SSL VPN authentication method according to claim 1, wherein: In case of local authentication failure, the authentication process ends.
5. The SSL VPN authentication method according to claim 1, wherein: The local authentication method based on the first authentication message includes: password authentication and / or certificate authentication.
6. An SSL VPN authentication device, characterized in that: include: The interface is configured to obtain data of a user successfully logging into the server and parse out the target message format and identification information of successful login; A processor configured to configure a server based on the target message format and identification information of successful login; The interface is further configured to obtain a first authentication message sent by the client; The processor is also configured to: Performing local authentication based on the first authentication message, wherein a set of user information is maintained locally, and a user password corresponding to the locally maintained user information is consistent with a user password used by the server; In the case where the local authentication succeeds, a second authentication message is sent to the server based on the first authentication message, the second authentication message can be directly parsed by the server, and the second authentication message is obtained by splicing the target parameters in the first authentication message according to the target message format; A response message sent by the server is received, and when it is determined based on the response message that the server authentication is successful, an authentication identifier is sent to the client, so that the client can implement business data transmission based on the authentication identifier.
7. An SSL VPN gateway, characterized in that: The SSL VPN gateway includes a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the steps of the SSL VPN authentication method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Security control method, device and system for network access
CN103716325A
System login method and equipment, gateway and computer readable storage medium
CN110247897A
