Method, system and device for supporting SSLVPN gateway by cloud platform and medium

By introducing security gateway proxy modules and plug-ins into the cloud platform, the SSLVPN server was created, which solved the problem that the cloud platform did not support SSLVPN, and achieved secure and convenient access to mobile devices and adapted to complex network environments.

CN119094191AActive Publication Date: 2024-12-06JINAN INSPUR DATA TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411193538.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-12-06
Estimated Expiration
2044-08-28

AI Technical Summary

Technical Problem

The cloud platform currently only supports IPSec-VPN and does not support SSLVPN, resulting in limited data access security and convenience in mobile office scenarios.

Method used

Introduce a security gateway proxy module and plug-in to the cloud platform, create an SSLVPN server by remotely calling the connection, receive and negotiate SSLVPN connections, and achieve secure access to mobile devices.

Benefits of technology

Fill in the gap that cloud platform does not support SSLVPN function, allowing mobile devices to safely and conveniently access cloud platform data and adapt to complex network environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094191A_ABST
    Figure CN119094191A_ABST
Patent Text Reader

Abstract

The invention relates to a method, a system and equipment for supporting an SSLVPN gateway by a cloud platform, and a medium, and relates to the technical field of networks. According to the application, the security gateway agent module is arranged in the SSLVPN gateway node, and the security gateway plug-in is arranged in the virtual network service of the cloud platform, so that the cloud platform can create the SSLVPN server, receive the SSLVPN connection request, negotiate to create the SSLVPN connection, and realize the SSLVPN function. And the blank that the cloud platform does not support the SSLVPN function is filled. The mobile device can safely and conveniently access the cloud platform data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network technology, and in particular to a cloud platform supporting an SSLVPN gateway method, system, computer device and storage medium. Background Art

[0002] VPN is a virtual private network. When users access OpenStack platform resources on an external network, VPN is required to protect data and transmit securely. Currently, the cloud platform only supports IPSec-VPN, not SSLVPN. IPSec-VPN is a site-to-site VPN with strong security, but complex configuration and deployment. Since IPSec-VPN works at the network layer, it is limited by the network environment and is limited in firewalls and NAT networks. SSL is a secure socket layer that works at the application layer and provides secure connection functions. SSL-VPN uses only point-to-site VPN, which is simple to configure and deploy. Since SSLVPN works at the application layer, it can better adapt to complex networks. Using SSLVPN in mobile office scenarios has unique advantages, so it has become a technical problem that needs to be solved urgently for the cloud platform to support the deployment of SSLVPN. Summary of the invention

[0003] Based on this, a cloud platform supports SSLVPN gateway method, system, computer equipment and storage medium, which are used to solve the technical problem that the current cloud platform only supports IPSec-VPN but not SSLVPN, and can enable mobile devices to access cloud platform data safely and conveniently.

[0004] On the one hand, a cloud platform supports an SSLVPN gateway method, wherein a security gateway proxy module is provided in the SSLVPN gateway node, and a security gateway plug-in is provided in the virtual network service of the cloud platform, and the security gateway plug-in and the security gateway proxy module establish a remote call connection; the cloud platform supports the SSLVPN gateway method method comprising:

[0005] The security gateway plug-in receives a request to create an SSLVPN, and according to the configuration information in the request to create an SSLVPN, applies for a gateway port on an external network, creates a transmission network and a router associated with the transmission network, and creates a transmission port;

[0006] The security gateway plug-in transmits the configuration information to the security gateway proxy module, and the security gateway proxy module creates a security gateway network namespace, creates a diversion device corresponding to the security gateway network namespace, binds the gateway port and the transmission port, and starts the SSLVPN server to receive a request to establish an SSLVPN connection;

[0007] The mobile device establishes an SSLVPN connection with the SSLVPN server by sending an SSLVPN connection establishment request, and the security gateway plug-in sends a static route for diversion to the router to enable the mobile device to access the data of the cloud platform through the SSLVPN connection.

[0008] In one embodiment, the cloud platform supports the SSLVPN gateway method and method further includes:

[0009] After the security gateway proxy module is started, the security gateway proxy module deployment data is written into the chassis private table of the southbound database of the cloud platform;

[0010] After the security gateway plug-in is started, the security gateway plug-in obtains the deployment information of the security gateway proxy module by reading the deployment data in the chassis private table of the southbound database;

[0011] The secure gateway plug-in and the secure gateway proxy module are configured to establish a remote call connection through a message queue, so that the secure gateway plug-in sends the configuration information data in the create SSLVPN request, and the secure gateway proxy module reports the operation information data of the SSLVPN gateway node.

[0012] In one embodiment, the cloud platform supports the SSLVPN gateway method further comprising:

[0013] The SSLVPN gateway node is configured to be deployed in a distributed manner, and multiple SSLVPN gateway nodes are deployed in the same cloud platform;

[0014] When the security gateway proxy module is started, the security gateway proxy module reads the chassis private table of the southbound database, searches for the SSLVPN gateway node where the security gateway proxy module is located, and adds the security gateway proxy module deployment data in the SSLVPN gateway node;

[0015] The security gateway plug-in reads the chassis private table of the southbound database, and obtains the deployment status of all security gateway proxy modules according to the security gateway proxy module deployment data;

[0016] The security gateway proxy module monitors the chassis private table and regularly updates the security gateway proxy module deployment data in the chassis private table;

[0017] The security gateway plug-in monitors the chassis private table, reads the latest security gateway proxy module deployment data in the chassis private table, updates the local security gateway proxy module deployment data, and updates the remote call connection at the same time.

[0018] In one embodiment, the security gateway plug-in receives a request to create an SSLVPN, and according to the configuration information in the request to create an SSLVPN, applies for a gateway port on an external network, creates a transmission network and a router associated with the transmission network, and the creation of the transmission port includes:

[0019] The security gateway plug-in receives a request to create an SSLVPN, and parses configuration information in the request to create an SSLVPN;

[0020] The security gateway plug-in calls the ovn-l3 plug-in to obtain the NAT gateway and external network from the router;

[0021] The security gateway plug-in calls the ml2 plug-in to apply for a gateway port from the external network;

[0022] The security gateway plug-in calls the ml2 plug-in to create a transmission network and a transmission port at the same time;

[0023] The security gateway plug-in calls the ovn-l3 plug-in to associate the transmission network with the router;

[0024] The transmission port is placed in the security gateway network namespace to connect the network link between the router and the security gateway network namespace.

[0025] In one embodiment, the mobile device establishes an SSLVPN connection with the SSLVPN server by sending an SSLVPN connection establishment request, and the security gateway plug-in sends a static route for diversion to the router to enable the mobile device to access the data of the cloud platform through the SSLVPN connection, including:

[0026] The mobile device sends a request to establish an SSLVPN connection to the SSLVPN server through the SSLVPN client, and the SSLVPN client and the SSLVPN server negotiate to create a tun interface and establish an SSLVPN connection;

[0027] After the SSLVPN connection is successfully established, the security gateway plug-in sends a static route for diversion to the router, forwards the received SSLVPN network traffic to the cloud host through the router, and enables the mobile device to access the cloud platform data through the SSLVPN connection.

[0028] In one embodiment, the mobile device sends an SSLVPN connection establishment request to the SSLVPN server through an SSLVPN client, the SSLVPN client and the SSLVPN server negotiate to create a tun interface, and establishing the SSLVPN connection includes:

[0029] The user sends a request to create an SSLVPN connection to the SSLVPN server through the SSLVPN client on the mobile device;

[0030] The SSLVPN server verifies the user's authentication information. After the authentication is completed, the SSLVPN client and the SSLVPN server negotiate the encryption algorithm and key, and create a tun interface;

[0031] When receiving the SSLVPN message, the tun interface decrypts and decapsulates the SSLVPN message received by the cloud platform according to the negotiated encryption algorithm and secret key, obtains the user data message, and forwards it to the cloud host through the transmission port;

[0032] The security gateway proxy module monitors the SSLVPN connection status in the SSLVPN server, notifies the security gateway plug-in through a remote call connection, and after the security gateway plug-in confirms that the SSLVPN connection is successful, sends a static route to the router, and forwards the cloud host data message to the security gateway network namespace through the transmission network;

[0033] When receiving the cloud host data message, the tun interface encrypts and encapsulates the cloud host data message according to the negotiated encryption algorithm and key, obtains the SSLVPN reply message, and forwards it out of the cloud platform.

[0034] In one of the embodiments, when the mobile device accesses the data of the cloud platform through the SSLVPN connection, the method includes:

[0035] The cloud platform receives the SSLVPN message sent by the mobile device from the external network, and forwards the SSLVPN message to the security gateway network namespace;

[0036] The tun interface in the network namespace of the security gateway decapsulates the SSLVPN message, decrypts the user data message in the SSLVPN message, and then transmits the user data message to the router from the transmission interface, and the router transmits the user data message to the corresponding cloud host;

[0037] After the cloud host processes the service, the cloud host data message is sent to the router;

[0038] The router sends the cloud host data message to the security gateway network namespace according to the static flow table;

[0039] The tun interface in the network namespace of the security gateway encrypts the cloud host data message, encapsulates it into an SSLVPN reply message, forwards it to the external network, and forwards it to the mobile device through the external network.

[0040] On the other hand, a cloud platform supporting SSLVPN gateway system is provided, the system comprising a control node, an SLVPN gateway node and a computing node;

[0041] The SLVPN gateway node is provided with a security gateway agent module, the control node is provided with a virtual network service, the virtual network service is provided with a security gateway plug-in, and the security gateway plug-in and the security gateway agent module establish a remote call connection through a message queue;

[0042] The computing node is provided with a router, a switch and a cloud host, and the router is connected to the cloud host through the switch;

[0043] The security gateway plug-in receives a request to create an SSLVPN, and according to the configuration information in the request to create an SSLVPN, applies for a gateway port on an external network, creates a transmission network and a router associated with the transmission network, and creates a transmission port;

[0044] The security gateway plug-in transmits the configuration information to the security gateway proxy module, and the security gateway proxy module creates a security gateway network namespace in the SLVPN gateway node, creates a diversion device corresponding to the security gateway network namespace, binds the gateway port and the transmission port, and starts the SSLVPN server to receive a request to establish an SSLVPN connection;

[0045] The mobile device establishes an SSLVPN connection with the SSLVPN server by sending an SSLVPN connection request. The security gateway plug-in sends a static route for diversion to the router, and forwards the received SSLVPN network traffic to the cloud host through the router, so that the mobile device can access the data of the cloud platform through the SSLVPN connection.

[0046] In another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:

[0047] The security gateway plug-in receives a request to create an SSLVPN, and according to the configuration information in the request to create an SSLVPN, applies for a gateway port on an external network, creates a transmission network and a router associated with the transmission network, and creates a transmission port;

[0048] The security gateway plug-in transmits the configuration information to the security gateway proxy module, and the security gateway proxy module creates a security gateway network namespace, creates a diversion device corresponding to the security gateway network namespace, binds the gateway port and the transmission port, and starts the SSLVPN server to receive a request to establish an SSLVPN connection;

[0049] The mobile device establishes an SSLVPN connection with the SSLVPN server by sending an SSLVPN connection establishment request, and the security gateway plug-in sends a static route for diversion to the router to enable the mobile device to access the data of the cloud platform through the SSLVPN connection.

[0050] In another aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0051] The security gateway plug-in receives a request to create an SSLVPN, and according to the configuration information in the request to create an SSLVPN, applies for a gateway port on an external network, creates a transmission network and a router associated with the transmission network, and creates a transmission port;

[0052] The security gateway plug-in transmits the configuration information to the security gateway proxy module, and the security gateway proxy module creates a security gateway network namespace, creates a diversion device corresponding to the security gateway network namespace, binds the gateway port and the transmission port, and starts the SSLVPN server to receive a request to establish an SSLVPN connection;

[0053] The mobile device establishes an SSLVPN connection with the SSLVPN server by sending an SSLVPN connection establishment request, and the security gateway plug-in sends a static route for diversion to the router to enable the mobile device to access the data of the cloud platform through the SSLVPN connection.

[0054] The cloud platform supports the SSLVPN gateway method, system, computer device and storage medium. By setting a secure gateway proxy module in the SSLVPN gateway node and setting a secure gateway plug-in in the virtual network service of the cloud platform, the cloud platform can create an SSLVPN server, receive SSLVPN connection requests, negotiate to create an SSLVPN connection, and realize the SSLVPN function. This fills the gap that the cloud platform does not support the SSLVPN function. Mobile devices can access cloud platform data safely and conveniently. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0056] Figure 1 This is a diagram of a cloud platform application environment in which a cloud platform supports an SSLVPN gateway method in one embodiment of the present application;

[0057] Figure 2 This is a flow chart of a method for a cloud platform to support an SSLVPN gateway in one embodiment of the present application;

[0058] Figure 3 A schematic diagram of the path of a network link transmitting a message after a SSLVPN connection is successfully established in one embodiment of the present application;

[0059] Figure 4 This is a diagram of the internal structure of a computer device in one embodiment of the present application. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0061] The cloud platform provided in this application supports the SSLVPN gateway method, which can be applied to Figure 1In the cloud platform application environment shown. Among them, the cloud platform is preferably an OpenStack cloud platform, and the control plane of the cloud platform is provided with a control node, an SLVPN gateway node and a computing node. A virtual network service (neutron) is provided in the control node, a security gateway plug-in (SSLVPN plug-in), an ovn-l3 plug-in and an ml2 plug-in are provided in the virtual network service (neutron), and ovn-nb, ovn-northd and a southbound database (ovn-sb database) are also provided in the control node. A security gateway agent module (sslvpn-agent), a virtual switch OVS, an ovn controller (ovn-controller) and a security gateway network namespace (sslvpn-netns) are provided in the SLVPN gateway node, and an openvpn program is set in the security gateway network namespace (sslvpn-netns). The security gateway plug-in (SSLVPN plug-in) and the security gateway agent module (sslvpn-agent) establish a remote call (rpc) connection through a message queue (rabbitmq). The computing node is provided with an ovn controller, a virtual router, a virtual switch and a cloud host (VM), and the virtual router is connected to the cloud host through the virtual switch. The virtual router can be called a logical router or a router, and the virtual switch can be called a switch.

[0062] In one embodiment, Figure 2 As shown, a cloud platform supports an SSLVPN gateway method, wherein a security gateway agent module (sslvpn-agent) is provided in the SSLVPN gateway node, and a security gateway plug-in (SSLVPN plug-in) is provided in the virtual network service (neutron) of the cloud platform, and the security gateway plug-in (SSLVPN plug-in) and the security gateway agent module (sslvpn-agent) establish a remote call (rpc) connection; the cloud platform supports the SSLVPN gateway method including:

[0063] Step S1, the security gateway plug-in (SSLVPN plug-in) receives a request to create an SSLVPN, and (SSLVPN plug-in) applies for a gateway port (SSLVPN gateway port) on an external network according to the configuration information in the request to create an SSLVPN, creates a transmission network and a router associated with the transmission network, and creates a transmission port;

[0064] Step S2, the security gateway plug-in (SSLVPN plug-in) transmits the configuration information to the security gateway agent module (sslvpn-agent), the security gateway agent module (sslvpn-agent) creates a security gateway network namespace (sslvpn-netns), creates a diversion device (tap device) corresponding to the security gateway network namespace (sslvpn-netns), binds the gateway port (SSLVPN gateway port) and the transmission port, (starts the openvpn program) starts the SSLVPN server, and is used to receive a request to establish an SSLVPN connection;

[0065] Step S3, the mobile device establishes an SSLVPN connection with the SSLVPN server by sending an SSLVPN connection request, and the security gateway plug-in (SSLVPN plug-in) sends a static route for diversion to the router to enable the mobile device to access the data of the cloud platform through the SSLVPN connection.

[0066] Among them, OpenStack is an open source cloud platform management project, which allows you to manage your own infrastructure such as servers, networks, storage, etc., and is an open source cloud computing platform management platform project. Neutron is the virtual network service of Openstack, a module in OpenStack that provides network services. VPN: Virtual Private Network. SSL: Secure Sockets Layer, works at the application layer and provides secure connection functions. TAP device is a virtual Ethernet adapter that can simulate a physical Ethernet interface. TAP stands for Test Access Point, splitter / splitter / divider.

[0067] This embodiment sets a secure gateway agent module (sslvpn-agent) in the SSLVPN gateway node and a secure gateway plug-in in the virtual network service of the cloud platform, so that the cloud platform can create an SSLVPN server, receive SSLVPN connection requests, negotiate to create an SSLVPN connection, and implement the SSLVPN function. This fills the gap that the cloud platform does not support the SSLVPN function. Mobile devices can access cloud platform data safely and conveniently, without relying on the underlying CPU architecture, and support multiple architectures: x86, arm.

[0068] In this embodiment, the cloud platform supports the SSLVPN gateway method further comprising:

[0069] After the security gateway agent module (sslvpn-agent) is started, the deployment data of the security gateway agent module (sslvpn-agent) is written into the chassis private table (ChassisPrivate table) of the southbound database (ovn-sb database) of the cloud platform;

[0070] After the security gateway plug-in (SSLVPN plug-in) is started, the security gateway plug-in (SSLVPN plug-in) obtains the deployment information of the security gateway agent module (sslvpn-agent) by reading the deployment data in the chassis private table (Chassis Private table) of the southbound database (ovn-sb database);

[0071] The security gateway plug-in (SSLVPN plug-in) and the security gateway agent module (sslvpn-agent) are set to establish a remote call (rpc) connection through a message queue (rabbitmq), so that the security gateway plug-in (SSLVPN plug-in) sends the configuration information data in the create SSLVPN request, and the security gateway agent module (sslvpn-agent) reports the operation information data of the SSLVPN gateway node.

[0072] In this embodiment, the cloud platform supports the SSLVPN gateway method further comprising:

[0073] The SSLVPN gateway node is configured to be deployed in a distributed manner, and multiple SSLVPN gateway nodes are deployed in the same cloud platform;

[0074] When the security gateway agent module (sslvpn-agent) is started, the security gateway agent module (sslvpn-agent) reads the chassis private table (Chassis Private table) of the southbound database (ovn-sb database), searches for the SSLVPN gateway node where the security gateway agent module (sslvpn-agent) is located, and adds the security gateway agent module (sslvpn-agent) deployment data in the SSLVPN gateway node;

[0075] The security gateway plug-in (SSLVPN plug-in) reads the chassis private table (Chassis Private table) of the southbound database (ovn-sb database), and obtains the deployment status of all security gateway agent modules (sslvpn-agent) according to the deployment data of the security gateway agent module (sslvpn-agent);

[0076] The security gateway agent module (sslvpn-agent) monitors the chassis private table (Chassis Private table), and regularly updates the security gateway agent module (sslvpn-agent) deployment data in the chassis private table (Chassis Private table);

[0077] The security gateway plug-in (SSLVPN plug-in) monitors the chassis private table (Chassis Private table), reads the latest security gateway agent module (sslvpn-agent) deployment data in the chassis private table (Chassis Private table), updates the local security gateway agent module (sslvpn-agent) deployment data, and updates the remote call (rpc) connection at the same time.

[0078] In this embodiment, the security gateway plug-in (SSLVPN plug-in) receives a request to create an SSLVPN, and (SSLVPN plug-in) applies for a gateway port (SSLVPN gateway port) on an external network according to the configuration information in the request to create an SSLVPN, creates a transmission network and a router associated with the transmission network, and creates a transmission port including:

[0079] The security gateway plug-in (SSLVPN plug-in) receives the request to create an SSLVPN, and parses the configuration information in the request to create an SSLVPN;

[0080] The secure gateway plug-in (SSLVPN plug-in) calls the ovn-l3 plug-in to obtain the NAT gateway and external network from the router;

[0081] The secure gateway plug-in (SSLVPN plug-in) calls the ml2 plug-in to apply for a gateway port (SSLVPN gateway port) from the external network;

[0082] The secure gateway plug-in (SSLVPN plug-in) calls the ml2 plug-in to create a transmission network and a transmission port at the same time;

[0083] The secure gateway plug-in (SSLVPN plug-in) calls the ovn-l3 plug-in to associate the transmission network with the router;

[0084] The transmission port is placed in a security gateway network namespace (sslvpn-netns) to connect the network link between the router and the security gateway network namespace (sslvpn-netns).

[0085] The configuration information includes the SSLVPN connection name, description, router associated with the transmission network, IP address segments allowed by the remote end, and IP address segments allowed by the local end.

[0086] In this embodiment, the mobile device establishes an SSLVPN connection with the SSLVPN server by sending an SSLVPN connection establishment request, and the security gateway plug-in (SSLVPN plug-in) sends a static route for diversion to the router to enable the mobile device to access the data of the cloud platform through the SSLVPN connection, including:

[0087] The mobile device sends a request to establish an SSLVPN connection to the SSLVPN server through an SSLVPN client (sslvpn-client), and the SSLVPN client (sslvpn-client) and the SSLVPN server negotiate to create a tun interface and establish an SSLVPN connection;

[0088] After the SSLVPN connection is successfully established, the security gateway plug-in (SSLVPN plug-in) sends a static route for diversion to the router, forwards the received SSLVPN network traffic to the cloud host (VM) through the router, and enables the mobile device to access the data of the cloud platform through the SSLVPN connection.

[0089] In this embodiment, the mobile device sends an SSLVPN connection establishment request to the SSLVPN server through an SSLVPN client (sslvpn-client), and the SSLVPN client (sslvpn-client) and the SSLVPN server negotiate to create a tun interface. Establishing the SSLVPN connection includes:

[0090] The user sends a request to create an SSLVPN connection to the SSLVPN server through the SSLVPN client on the mobile device;

[0091] The SSLVPN server verifies the user's authentication information. After the authentication is completed, the SSLVPN client and the SSLVPN server negotiate the encryption algorithm and key, and create a tun interface;

[0092] When receiving the SSLVPN message, the tun interface decrypts and decapsulates the SSLVPN message received by the cloud platform according to the negotiated encryption algorithm and secret key, obtains the user data message, and forwards it to the cloud host through the transmission port;

[0093] The security gateway agent module (sslvpn-agent) monitors the SSLVPN connection status in the SSLVPN server, and notifies the security gateway plug-in (SSLVPN plug-in) through a remote call (rpc) connection. After the security gateway plug-in (SSLVPN plug-in) confirms that the SSLVPN connection is successful, it sends a static route to the router, and forwards the cloud host data message to the security gateway network namespace (sslvpn-netns) through the transmission network;

[0094] When receiving the cloud host data message, the tun interface encrypts and encapsulates the cloud host data message according to the negotiated encryption algorithm and key, obtains the SSLVPN reply message, and forwards it out of the cloud platform.

[0095] The SSLVPN plug-in provides an application programming interface (API) for the SSLVPN function, which can receive a request to create an SSLVPN:

[0096] 1) / sslvpn-services service: create SSLVPN service, router associated with transmission network, SSLVPN gateway port;

[0097] 2) / sslvpn-endpoint-groups: Create an endpoint group and specify the remote IP address range and local IP address range;

[0098] 3) / sslvpn-servers: Create SSLVPN server, start SSLVPN server, receive SSLVPN client request, negotiate to create SSLVPN connection, and obtain the number and status of created connections.

[0099] The SSLVPN plug-in receives the request to create an SSLVPN and parses the configuration information in the request to create an SSLVPN, such as: SSLVPN connection name, description, router associated with the transmission network, remote allowed IP address segment, local allowed IP address segment, etc. The SSLVPN plug-in calls the ovn-l3 plug-in to obtain the NAT gateway and external network from the router. The SSLVPN plug-in can call the ml2 plug-in to apply for the SSLVPN gateway port from the external network to create a transmission network. At the same time, the SSLVPN plug-in also calls the ml2 plug-in to create a transmission network and a transmission port. The SSLVPN plug-in calls the ovn-l3 plug-in to associate the transmission network with the router. The transmission port will be placed in the sslvpn network namespace to open up the network link between the router and the sslvpn network namespace. At the same time, a static route will be issued in the sslvpn network namespace to forward the received SSLVPN network traffic to the router and further forward it to the cloud host.

[0100] In this embodiment, the cloud platform supports the SSLVPN gateway method further comprising:

[0101] A first virtual switch is set in the SSLVPN gateway node, and the sslvpn-agent and the network namespace are connected to the sslvpn-agent;

[0102] A virtual router and a second virtual switch are set in the computing node, the first virtual switch is connected to the second virtual switch through the virtual router, the first virtual router serves as a router associated with the transmission network, and the second virtual switch is connected to the cloud host.

[0103] This embodiment connects the SSLVPN gateway node with the computing node to form an SSLVPN connection network by setting up a virtual switch in the SSLVPN gateway node and the computing node.

[0104] The SSLVPN plug-in will schedule the router to a surviving sslvpn-agent according to the least priority scheduling strategy based on the current sslvpn-agent situation. The SSLVPN configuration information, transmission port, SSLVPN gateway port and other information are sent to the sslvpn-agent through a remote call (rpc) connection. Based on this information, the sslvpn-agent will create the sslvpn-netns network namespace, and create a tap device for the transmission port and SSLVPN gateway port in the network namespace, and associate it with ovs to ensure its network connectivity. The sslvpn-agent converts this information into the configuration of openvpn and starts openvpn. Openvpn starts the SSLVPN server according to the configuration and receives the SSLVPN connection request.

[0105] In this embodiment, when the mobile device accesses the data of the cloud platform through the SSLVPN connection, the method includes:

[0106] The cloud platform receives the SSLVPN message sent by the mobile device from the external network, and forwards the SSLVPN message to the security gateway network namespace (sslvpn-netns);

[0107] The tun interface in the security gateway network namespace (sslvpn-netns) decapsulates the SSLVPN message, decrypts the user data message in the SSLVPN message, and then transmits the user data message to the router from the transmission interface, and the router transmits the user data message to the corresponding cloud host (VM);

[0108] After the cloud host processes the service, the cloud host data message is sent to the router;

[0109] The router sends the cloud host data message to the security gateway network namespace (sslvpn-netns) according to the static flow table;

[0110] The tun interface in the secure gateway network namespace (sslvpn-netns) encrypts the cloud host data message, encapsulates it into an SSLVPN reply message, forwards it to the external network, and forwards it to the mobile device through the external network.

[0111] In the above-mentioned cloud platform supporting SSLVPN gateway method, by setting a secure gateway agent module (sslvpn-agent) in the SSLVPN gateway node and setting a secure gateway plug-in in the virtual network service of the cloud platform, the cloud platform can create an SSLVPN server, receive SSLVPN connection requests, negotiate to create an SSLVPN connection, and realize the SSLVPN function. This fills the gap that the cloud platform does not support the SSLVPN function. Mobile devices can access cloud platform data safely and conveniently.

[0112] It should be understood that although Figure 2-Figure 4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-Figure 4 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0113] In one embodiment, Figure 1 , Figure 3 As shown, a cloud platform supporting SSLVPN gateway system is provided, the system comprising a control node, an SLVPN gateway node and a computing node;

[0114] The SLVPN gateway node is provided with a security gateway agent module, the control node is provided with a virtual network service, the virtual network service is provided with a security gateway plug-in, and the security gateway plug-in and the security gateway agent module establish a remote call connection through a message queue;

[0115] The computing node is provided with a router, a switch and a cloud host, and the router is connected to the cloud host through the switch;

[0116] The security gateway plug-in receives a request to create an SSLVPN, and according to the configuration information in the request to create an SSLVPN, applies for a gateway port on an external network, creates a transmission network and a router associated with the transmission network, and creates a transmission port;

[0117] The security gateway plug-in transmits the configuration information to the security gateway proxy module, and the security gateway proxy module creates a security gateway network namespace in the SLVPN gateway node, creates a diversion device corresponding to the security gateway network namespace, binds the gateway port and the transmission port, and starts the SSLVPN server to receive a request to establish an SSLVPN connection;

[0118] The mobile device establishes an SSLVPN connection with the SSLVPN server by sending an SSLVPN connection request. The security gateway plug-in sends a static route for diversion to the router, and forwards the received SSLVPN network traffic to the cloud host through the router, so that the mobile device can access the data of the cloud platform through the SSLVPN connection.

[0119] Among them, the virtual network service (neutron) is provided with an ovn-l3 plug-in and an ml2 plug-in connected to the security gateway plug-in (SSLVPN plug-in), and the control node is also provided with ovn-nb, ovn-northd and a southbound database (ovn-sb database). The SLVPN gateway node is provided with a security gateway agent module (sslvpn-agent), a virtual switch OVS, an ovn controller (ovn-controller) and a security gateway network namespace (sslvpn-netns), and an openvpn program is set in the security gateway network namespace (sslvpn-netns). The computing node is also provided with an ovn controller (ovn-controller). The ovn controller (ovn-controller) is connected to the switch.

[0120] In this embodiment, after the security gateway agent module (sslvpn-agent) is started, the deployment data of the security gateway agent module (sslvpn-agent) is written into the chassis private table (Chassis Private table) of the southbound database (ovn-sb database) of the cloud platform;

[0121] After the security gateway plug-in (SSLVPN plug-in) is started, the security gateway plug-in (SSLVPN plug-in) obtains the deployment information of the security gateway agent module (sslvpn-agent) by reading the deployment data in the chassis private table (Chassis Private table) of the southbound database (ovn-sb database);

[0122] The security gateway plug-in (SSLVPN plug-in) and the security gateway agent module (sslvpn-agent) are set to establish a remote call (rpc) connection through a message queue (rabbitmq), so that the security gateway plug-in (SSLVPN plug-in) sends the configuration information data in the create SSLVPN request, and the security gateway agent module (sslvpn-agent) reports the operation information data of the SSLVPN gateway node.

[0123] In this embodiment, the cloud platform supports the SSLVPN gateway method further comprising:

[0124] The SSLVPN gateway node is configured to be deployed in a distributed manner, and multiple SSLVPN gateway nodes are deployed in the same cloud platform;

[0125] When the security gateway agent module (sslvpn-agent) is started, the security gateway agent module (sslvpn-agent) reads the chassis private table (Chassis Private table) of the southbound database (ovn-sb database), searches for the SSLVPN gateway node where the security gateway agent module (sslvpn-agent) is located, and adds the security gateway agent module (sslvpn-agent) deployment data in the SSLVPN gateway node;

[0126] The security gateway plug-in (SSLVPN plug-in) reads the chassis private table (Chassis Private table) of the southbound database (ovn-sb database), and obtains the deployment status of all security gateway agent modules (sslvpn-agent) according to the deployment data of the security gateway agent module (sslvpn-agent);

[0127] The security gateway agent module (sslvpn-agent) monitors the chassis private table (Chassis Private table), and regularly updates the security gateway agent module (sslvpn-agent) deployment data in the chassis private table (Chassis Private table);

[0128] The security gateway plug-in (SSLVPN plug-in) monitors the chassis private table (Chassis Private table), reads the latest security gateway agent module (sslvpn-agent) deployment data in the chassis private table (Chassis Private table), updates the local security gateway agent module (sslvpn-agent) deployment data, and updates the remote call (rpc) connection at the same time.

[0129] In this embodiment, the security gateway plug-in (SSLVPN plug-in) receives a request to create an SSLVPN, and (SSLVPN plug-in) applies for a gateway port (SSLVPN gateway port) on an external network according to the configuration information in the request to create an SSLVPN, creates a transmission network and a router associated with the transmission network, and creates a transmission port including:

[0130] The security gateway plug-in (SSLVPN plug-in) receives the request to create an SSLVPN, and parses the configuration information in the request to create an SSLVPN;

[0131] The secure gateway plug-in (SSLVPN plug-in) calls the ovn-l3 plug-in to obtain the NAT gateway and external network from the router;

[0132] The secure gateway plug-in (SSLVPN plug-in) calls the ml2 plug-in to apply for a gateway port (SSLVPN gateway port) from the external network;

[0133] The secure gateway plug-in (SSLVPN plug-in) calls the ml2 plug-in to create a transmission network and a transmission port at the same time;

[0134] The secure gateway plug-in (SSLVPN plug-in) calls the ovn-l3 plug-in to associate the transmission network with the router;

[0135] The transmission port is placed in a security gateway network namespace (sslvpn-netns) to connect the network link between the router and the security gateway network namespace (sslvpn-netns).

[0136] In this embodiment, the mobile device establishes an SSLVPN connection with the SSLVPN server by sending an SSLVPN connection establishment request, and the security gateway plug-in (SSLVPN plug-in) sends a static route for diversion to the router to enable the mobile device to access the data of the cloud platform through the SSLVPN connection, including:

[0137] The mobile device sends a request to establish an SSLVPN connection to the SSLVPN server through an SSLVPN client (sslvpn-client), and the SSLVPN client (sslvpn-client) and the SSLVPN server negotiate to create a tun interface and establish an SSLVPN connection;

[0138] After the SSLVPN connection is successfully established, the security gateway plug-in (SSLVPN plug-in) sends a static route for diversion to the router, forwards the received SSLVPN network traffic to the cloud host (VM) through the router, and enables the mobile device to access the data of the cloud platform through the SSLVPN connection.

[0139] In this embodiment, the mobile device sends an SSLVPN connection establishment request to the SSLVPN server through an SSLVPN client (sslvpn-client), and the SSLVPN client (sslvpn-client) and the SSLVPN server negotiate to create a tun interface. Establishing the SSLVPN connection includes:

[0140] The user sends a request to create an SSLVPN connection to the SSLVPN server through the SSLVPN client on the mobile device;

[0141] The SSLVPN server verifies the user's authentication information. After the authentication is completed, the SSLVPN client and the SSLVPN server negotiate the encryption algorithm and key, and create a tun interface;

[0142] When receiving the SSLVPN message, the tun interface decrypts and decapsulates the SSLVPN message received by the cloud platform according to the negotiated encryption algorithm and secret key, obtains the user data message, and forwards it to the cloud host through the transmission port;

[0143] The security gateway agent module (sslvpn-agent) monitors the SSLVPN connection status in the SSLVPN server, and notifies the security gateway plug-in (SSLVPN plug-in) through a remote call (rpc) connection. After the security gateway plug-in (SSLVPN plug-in) confirms that the SSLVPN connection is successful, it sends a static route to the router, and forwards the cloud host data message to the security gateway network namespace (sslvpn-netns) through the transmission network;

[0144] When receiving the cloud host data message, the tun interface encrypts and encapsulates the cloud host data message according to the negotiated encryption algorithm and key, obtains the SSLVPN reply message, and forwards it out of the cloud platform.

[0145] In this embodiment, when the mobile device accesses the data of the cloud platform through the SSLVPN connection, the method includes:

[0146] The cloud platform receives the SSLVPN message sent by the mobile device from the external network, and forwards the SSLVPN message to the security gateway network namespace (sslvpn-netns);

[0147] The tun interface in the security gateway network namespace (sslvpn-netns) decapsulates the SSLVPN message, decrypts the user data message in the SSLVPN message, and then transmits the user data message to the router from the transmission interface, and the router transmits the user data message to the corresponding cloud host (VM);

[0148] After the cloud host processes the service, the cloud host data message is sent to the router;

[0149] The router sends the cloud host data message to the security gateway network namespace (sslvpn-netns) according to the static flow table;

[0150] The tun interface in the secure gateway network namespace (sslvpn-netns) encrypts the cloud host data message, encapsulates it into an SSLVPN reply message, forwards it to the external network, and forwards it to the mobile device through the external network.

[0151] The cloud platform supports the SSLVPN gateway system. By setting the secure gateway agent module (sslvpn-agent) in the SSLVPN gateway node and setting the secure gateway plug-in in the virtual network service of the cloud platform, the cloud platform can create an SSLVPN server, receive SSLVPN connection requests, negotiate to create an SSLVPN connection, and realize the SSLVPN function. This fills the gap that the cloud platform does not support the SSLVPN function. Mobile devices can access cloud platform data safely and conveniently.

[0152] For the specific limitations on the cloud platform supporting the SSLVPN gateway system, please refer to the limitations on the cloud platform supporting the SSLVPN gateway method above, which will not be repeated here. The various modules in the above-mentioned cloud platform supporting the SSLVPN gateway system can be implemented in whole or in part through software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0153] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0154] The security gateway plug-in receives a request to create an SSLVPN, and according to the configuration information in the request to create an SSLVPN, applies for a gateway port on an external network, creates a transmission network and a router associated with the transmission network, and creates a transmission port;

[0155] The security gateway plug-in transmits the configuration information to the security gateway proxy module, and the security gateway proxy module creates a security gateway network namespace, creates a diversion device corresponding to the security gateway network namespace, binds the gateway port and the transmission port, and starts the SSLVPN server to receive a request to establish an SSLVPN connection;

[0156] The mobile device establishes an SSLVPN connection with the SSLVPN server by sending an SSLVPN connection establishment request, and the security gateway plug-in sends a static route for diversion to the router to enable the mobile device to access the data of the cloud platform through the SSLVPN connection.

[0157] In one embodiment, the computer program further implements the following steps when executed by a processor:

[0158] After the security gateway agent module (sslvpn-agent) is started, the deployment data of the security gateway agent module (sslvpn-agent) is written into the chassis private table (ChassisPrivate table) of the southbound database (ovn-sb database) of the cloud platform;

[0159] After the security gateway plug-in (SSLVPN plug-in) is started, the security gateway plug-in (SSLVPN plug-in) obtains the deployment information of the security gateway agent module (sslvpn-agent) by reading the deployment data in the chassis private table (Chassis Private table) of the southbound database (ovn-sb database);

[0160] The security gateway plug-in (SSLVPN plug-in) and the security gateway agent module (sslvpn-agent) are set to establish a remote call (rpc) connection through a message queue (rabbitmq), so that the security gateway plug-in (SSLVPN plug-in) sends the configuration information data in the create SSLVPN request, and the security gateway agent module (sslvpn-agent) reports the operation information data of the SSLVPN gateway node.

[0161] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0162] The SSLVPN gateway node is configured to be deployed in a distributed manner, and multiple SSLVPN gateway nodes are deployed in the same cloud platform;

[0163] When the security gateway agent module (sslvpn-agent) is started, the security gateway agent module (sslvpn-agent) reads the chassis private table (Chassis Private table) of the southbound database (ovn-sb database), searches for the SSLVPN gateway node where the security gateway agent module (sslvpn-agent) is located, and adds the security gateway agent module (sslvpn-agent) deployment data in the SSLVPN gateway node;

[0164] The security gateway plug-in (SSLVPN plug-in) reads the chassis private table (Chassis Private table) of the southbound database (ovn-sb database), and obtains the deployment status of all security gateway agent modules (sslvpn-agent) according to the deployment data of the security gateway agent module (sslvpn-agent);

[0165] The security gateway agent module (sslvpn-agent) monitors the chassis private table (Chassis Private table), and regularly updates the security gateway agent module (sslvpn-agent) deployment data in the chassis private table (Chassis Private table);

[0166] The security gateway plug-in (SSLVPN plug-in) monitors the chassis private table (Chassis Private table), reads the latest security gateway agent module (sslvpn-agent) deployment data in the chassis private table (Chassis Private table), updates the local security gateway agent module (sslvpn-agent) deployment data, and updates the remote call (rpc) connection at the same time.

[0167] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0168] The security gateway plug-in (SSLVPN plug-in) receives the request to create an SSLVPN, and (SSLVPN plug-in) applies for a gateway port (SSLVPN gateway port) on an external network according to the configuration information in the request to create an SSLVPN, and creates a transmission network and a router associated with the transmission network, wherein the creation of the transmission port includes:

[0169] The security gateway plug-in (SSLVPN plug-in) receives the request to create an SSLVPN, and parses the configuration information in the request to create an SSLVPN;

[0170] The secure gateway plug-in (SSLVPN plug-in) calls the ovn-l3 plug-in to obtain the NAT gateway and external network from the router;

[0171] The secure gateway plug-in (SSLVPN plug-in) calls the ml2 plug-in to apply for a gateway port (SSLVPN gateway port) from the external network;

[0172] The secure gateway plug-in (SSLVPN plug-in) calls the ml2 plug-in to create a transmission network and a transmission port at the same time;

[0173] The secure gateway plug-in (SSLVPN plug-in) calls the ovn-l3 plug-in to associate the transmission network with the router;

[0174] The transmission port is placed in a security gateway network namespace (sslvpn-netns) to connect the network link between the router and the security gateway network namespace (sslvpn-netns).

[0175] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0176] The mobile device establishes an SSLVPN connection with the SSLVPN server by sending an SSLVPN connection establishment request, and the security gateway plug-in (SSLVPN plug-in) sends a static route for diversion to the router to enable the mobile device to access the data of the cloud platform through the SSLVPN connection, including:

[0177] The mobile device sends a request to establish an SSLVPN connection to the SSLVPN server through an SSLVPN client (sslvpn-client), and the SSLVPN client (sslvpn-client) and the SSLVPN server negotiate to create a tun interface and establish an SSLVPN connection;

[0178] After the SSLVPN connection is successfully established, the security gateway plug-in (SSLVPN plug-in) sends a static route for diversion to the router, forwards the received SSLVPN network traffic to the cloud host (VM) through the router, and enables the mobile device to access the data of the cloud platform through the SSLVPN connection.

[0179] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0180] The mobile device sends an SSLVPN connection establishment request to the SSLVPN server through an SSLVPN client (sslvpn-client), and the SSLVPN client (sslvpn-client) and the SSLVPN server negotiate to create a tun interface. Establishing the SSLVPN connection includes:

[0181] The user sends a request to create an SSLVPN connection to the SSLVPN server through the SSLVPN client on the mobile device;

[0182] The SSLVPN server verifies the user's authentication information. After the authentication is completed, the SSLVPN client and the SSLVPN server negotiate the encryption algorithm and key, and create a tun interface;

[0183] When receiving the SSLVPN message, the tun interface decrypts and decapsulates the SSLVPN message received by the cloud platform according to the negotiated encryption algorithm and secret key, obtains the user data message, and forwards it to the cloud host through the transmission port;

[0184] The security gateway agent module (sslvpn-agent) monitors the SSLVPN connection status in the SSLVPN server, and notifies the security gateway plug-in (SSLVPN plug-in) through a remote call (rpc) connection. After the security gateway plug-in (SSLVPN plug-in) confirms that the SSLVPN connection is successful, it sends a static route to the router, and forwards the cloud host data message to the security gateway network namespace (sslvpn-netns) through the transmission network;

[0185] When receiving the cloud host data message, the tun interface encrypts and encapsulates the cloud host data message according to the negotiated encryption algorithm and key, obtains the SSLVPN reply message, and forwards it out of the cloud platform.

[0186] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0187] When the mobile device accesses the data of the cloud platform through the SSLVPN connection, the method includes:

[0188] The cloud platform receives the SSLVPN message sent by the mobile device from the external network, and forwards the SSLVPN message to the security gateway network namespace (sslvpn-netns);

[0189] The tun interface in the security gateway network namespace (sslvpn-netns) decapsulates the SSLVPN message, decrypts the user data message in the SSLVPN message, and then transmits the user data message to the router from the transmission interface, and the router transmits the user data message to the corresponding cloud host (VM);

[0190] After the cloud host processes the service, the cloud host data message is sent to the router;

[0191] The router sends the cloud host data message to the security gateway network namespace (sslvpn-netns) according to the static flow table;

[0192] The tun interface in the secure gateway network namespace (sslvpn-netns) encrypts the cloud host data message, encapsulates it into an SSLVPN reply message, forwards it to the external network, and forwards it to the mobile device through the external network.

[0193] For the specific limitations on the steps implemented when the computer program is executed by the processor, please refer to the above limitations on the method for the cloud platform to support the SSLVPN gateway, which will not be repeated here.

[0194] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store cloud platform support SSLVPN gateway data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a cloud platform supports SSLVPN gateway method.

[0195] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0196] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0197] The security gateway plug-in receives a request to create an SSLVPN, and according to the configuration information in the request to create an SSLVPN, applies for a gateway port on an external network, creates a transmission network and a router associated with the transmission network, and creates a transmission port;

[0198] The security gateway plug-in transmits the configuration information to the security gateway proxy module, and the security gateway proxy module creates a security gateway network namespace, creates a diversion device corresponding to the security gateway network namespace, binds the gateway port and the transmission port, and starts the SSLVPN server to receive a request to establish an SSLVPN connection;

[0199] The mobile device establishes an SSLVPN connection with the SSLVPN server by sending an SSLVPN connection establishment request, and the security gateway plug-in sends a static route for diversion to the router to enable the mobile device to access the data of the cloud platform through the SSLVPN connection.

[0200] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0201] After the security gateway agent module (sslvpn-agent) is started, the deployment data of the security gateway agent module (sslvpn-agent) is written into the chassis private table (ChassisPrivate table) of the southbound database (ovn-sb database) of the cloud platform;

[0202] After the security gateway plug-in (SSLVPN plug-in) is started, the security gateway plug-in (SSLVPN plug-in) obtains the deployment information of the security gateway agent module (sslvpn-agent) by reading the deployment data in the chassis private table (Chassis Private table) of the southbound database (ovn-sb database);

[0203] The security gateway plug-in (SSLVPN plug-in) and the security gateway agent module (sslvpn-agent) are set to establish a remote call (rpc) connection through a message queue (rabbitmq), so that the security gateway plug-in (SSLVPN plug-in) sends the configuration information data in the create SSLVPN request, and the security gateway agent module (sslvpn-agent) reports the operation information data of the SSLVPN gateway node.

[0204] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0205] The SSLVPN gateway node is configured to be deployed in a distributed manner, and multiple SSLVPN gateway nodes are deployed in the same cloud platform;

[0206] When the security gateway agent module (sslvpn-agent) is started, the security gateway agent module (sslvpn-agent) reads the chassis private table (Chassis Private table) of the southbound database (ovn-sb database), searches for the SSLVPN gateway node where the security gateway agent module (sslvpn-agent) is located, and adds the security gateway agent module (sslvpn-agent) deployment data in the SSLVPN gateway node;

[0207] The security gateway plug-in (SSLVPN plug-in) reads the chassis private table (Chassis Private table) of the southbound database (ovn-sb database), and obtains the deployment status of all security gateway agent modules (sslvpn-agent) according to the deployment data of the security gateway agent module (sslvpn-agent);

[0208] The security gateway agent module (sslvpn-agent) monitors the chassis private table (Chassis Private table), and regularly updates the security gateway agent module (sslvpn-agent) deployment data in the chassis private table (Chassis Private table);

[0209] The security gateway plug-in (SSLVPN plug-in) monitors the chassis private table (Chassis Private table), reads the latest security gateway agent module (sslvpn-agent) deployment data in the chassis private table (Chassis Private table), updates the local security gateway agent module (sslvpn-agent) deployment data, and updates the remote call (rpc) connection at the same time.

[0210] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0211] The security gateway plug-in (SSLVPN plug-in) receives the request to create an SSLVPN, and (SSLVPN plug-in) applies for a gateway port (SSLVPN gateway port) on an external network according to the configuration information in the request to create an SSLVPN, and creates a transmission network and a router associated with the transmission network, wherein the creation of the transmission port includes:

[0212] The security gateway plug-in (SSLVPN plug-in) receives the request to create an SSLVPN, and parses the configuration information in the request to create an SSLVPN;

[0213] The secure gateway plug-in (SSLVPN plug-in) calls the ovn-l3 plug-in to obtain the NAT gateway and external network from the router;

[0214] The secure gateway plug-in (SSLVPN plug-in) calls the ml2 plug-in to apply for a gateway port (SSLVPN gateway port) from the external network;

[0215] The secure gateway plug-in (SSLVPN plug-in) calls the ml2 plug-in to create a transmission network and a transmission port at the same time;

[0216] The secure gateway plug-in (SSLVPN plug-in) calls the ovn-l3 plug-in to associate the transmission network with the router;

[0217] The transmission port is placed in a security gateway network namespace (sslvpn-netns) to connect the network link between the router and the security gateway network namespace (sslvpn-netns).

[0218] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0219] The mobile device establishes an SSLVPN connection with the SSLVPN server by sending an SSLVPN connection establishment request, and the security gateway plug-in (SSLVPN plug-in) sends a static route for diversion to the router to enable the mobile device to access the data of the cloud platform through the SSLVPN connection, including:

[0220] The mobile device sends a request to establish an SSLVPN connection to the SSLVPN server through an SSLVPN client (sslvpn-client), and the SSLVPN client (sslvpn-client) and the SSLVPN server negotiate to create a tun interface and establish an SSLVPN connection;

[0221] After the SSLVPN connection is successfully established, the security gateway plug-in (SSLVPN plug-in) sends a static route for diversion to the router, forwards the received SSLVPN network traffic to the cloud host (VM) through the router, and enables the mobile device to access the data of the cloud platform through the SSLVPN connection.

[0222] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0223] The mobile device sends an SSLVPN connection establishment request to the SSLVPN server through an SSLVPN client (sslvpn-client), and the SSLVPN client (sslvpn-client) and the SSLVPN server negotiate to create a tun interface. Establishing the SSLVPN connection includes:

[0224] The user sends a request to create an SSLVPN connection to the SSLVPN server through the SSLVPN client on the mobile device;

[0225] The SSLVPN server verifies the user's authentication information. After the authentication is completed, the SSLVPN client and the SSLVPN server negotiate the encryption algorithm and key, and create a tun interface;

[0226] When receiving the SSLVPN message, the tun interface decrypts and decapsulates the SSLVPN message received by the cloud platform according to the negotiated encryption algorithm and secret key, obtains the user data message, and forwards it to the cloud host through the transmission port;

[0227] The security gateway agent module (sslvpn-agent) monitors the SSLVPN connection status in the SSLVPN server, and notifies the security gateway plug-in (SSLVPN plug-in) through a remote call (rpc) connection. After the security gateway plug-in (SSLVPN plug-in) confirms that the SSLVPN connection is successful, it sends a static route to the router, and forwards the cloud host data message to the security gateway network namespace (sslvpn-netns) through the transmission network;

[0228] When receiving the cloud host data message, the tun interface encrypts and encapsulates the cloud host data message according to the negotiated encryption algorithm and key, obtains the SSLVPN reply message, and forwards it out of the cloud platform.

[0229] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0230] When the mobile device accesses the data of the cloud platform through the SSLVPN connection, the method includes:

[0231] The cloud platform receives the SSLVPN message sent by the mobile device from the external network, and forwards the SSLVPN message to the security gateway network namespace (sslvpn-netns);

[0232] The tun interface in the security gateway network namespace (sslvpn-netns) decapsulates the SSLVPN message, decrypts the user data message in the SSLVPN message, and then transmits the user data message to the router from the transmission interface, and the router transmits the user data message to the corresponding cloud host (VM);

[0233] After the cloud host processes the service, the cloud host data message is sent to the router;

[0234] The router sends the cloud host data message to the security gateway network namespace (sslvpn-netns) according to the static flow table;

[0235] The tun interface in the secure gateway network namespace (sslvpn-netns) encrypts the cloud host data message, encapsulates it into an SSLVPN reply message, forwards it to the external network, and forwards it to the mobile device through the external network.

[0236] For the specific limitations on the steps implemented when the processor executes the computer program, please refer to the limitations on the method for the cloud platform to support the SSLVPN gateway above, which will not be repeated here.

[0237] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0238] The security gateway plug-in receives a request to create an SSLVPN, and according to the configuration information in the request to create an SSLVPN, applies for a gateway port on an external network, creates a transmission network and a router associated with the transmission network, and creates a transmission port;

[0239] The security gateway plug-in transmits the configuration information to the security gateway proxy module, and the security gateway proxy module creates a security gateway network namespace, creates a diversion device corresponding to the security gateway network namespace, binds the gateway port and the transmission port, and starts the SSLVPN server to receive a request to establish an SSLVPN connection;

[0240] The mobile device establishes an SSLVPN connection with the SSLVPN server by sending an SSLVPN connection establishment request, and the security gateway plug-in sends a static route for diversion to the router to enable the mobile device to access the data of the cloud platform through the SSLVPN connection.

[0241] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0242] After the security gateway agent module (sslvpn-agent) is started, the deployment data of the security gateway agent module (sslvpn-agent) is written into the chassis private table (ChassisPrivate table) of the southbound database (ovn-sb database) of the cloud platform;

[0243] After the security gateway plug-in (SSLVPN plug-in) is started, the security gateway plug-in (SSLVPN plug-in) obtains the deployment information of the security gateway agent module (sslvpn-agent) by reading the deployment data in the chassis private table (Chassis Private table) of the southbound database (ovn-sb database);

[0244] The security gateway plug-in (SSLVPN plug-in) and the security gateway agent module (sslvpn-agent) are set to establish a remote call (rpc) connection through a message queue (rabbitmq), so that the security gateway plug-in (SSLVPN plug-in) sends the configuration information data in the create SSLVPN request, and the security gateway agent module (sslvpn-agent) reports the operation information data of the SSLVPN gateway node.

[0245] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0246] The SSLVPN gateway node is configured to be deployed in a distributed manner, and multiple SSLVPN gateway nodes are deployed in the same cloud platform;

[0247] When the security gateway agent module (sslvpn-agent) is started, the security gateway agent module (sslvpn-agent) reads the chassis private table (Chassis Private table) of the southbound database (ovn-sb database), searches for the SSLVPN gateway node where the security gateway agent module (sslvpn-agent) is located, and adds the security gateway agent module (sslvpn-agent) deployment data in the SSLVPN gateway node;

[0248] The security gateway plug-in (SSLVPN plug-in) reads the chassis private table (Chassis Private table) of the southbound database (ovn-sb database), and obtains the deployment status of all security gateway agent modules (sslvpn-agent) according to the deployment data of the security gateway agent module (sslvpn-agent);

[0249] The security gateway agent module (sslvpn-agent) monitors the chassis private table (Chassis Private table), and regularly updates the security gateway agent module (sslvpn-agent) deployment data in the chassis private table (Chassis Private table);

[0250] The security gateway plug-in (SSLVPN plug-in) monitors the chassis private table (Chassis Private table), reads the latest security gateway agent module (sslvpn-agent) deployment data in the chassis private table (Chassis Private table), updates the local security gateway agent module (sslvpn-agent) deployment data, and updates the remote call (rpc) connection at the same time.

[0251] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0252] The security gateway plug-in (SSLVPN plug-in) receives the request to create an SSLVPN, and (SSLVPN plug-in) applies for a gateway port (SSLVPN gateway port) on an external network according to the configuration information in the request to create an SSLVPN, and creates a transmission network and a router associated with the transmission network, wherein the creation of the transmission port includes:

[0253] The security gateway plug-in (SSLVPN plug-in) receives the request to create an SSLVPN, and parses the configuration information in the request to create an SSLVPN;

[0254] The secure gateway plug-in (SSLVPN plug-in) calls the ovn-l3 plug-in to obtain the NAT gateway and external network from the router;

[0255] The secure gateway plug-in (SSLVPN plug-in) calls the ml2 plug-in to apply for a gateway port (SSLVPN gateway port) from the external network;

[0256] The secure gateway plug-in (SSLVPN plug-in) calls the ml2 plug-in to create a transmission network and a transmission port at the same time;

[0257] The secure gateway plug-in (SSLVPN plug-in) calls the ovn-l3 plug-in to associate the transmission network with the router;

[0258] The transmission port is placed in a security gateway network namespace (sslvpn-netns) to connect the network link between the router and the security gateway network namespace (sslvpn-netns).

[0259] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0260] The mobile device establishes an SSLVPN connection with the SSLVPN server by sending an SSLVPN connection establishment request, and the security gateway plug-in (SSLVPN plug-in) sends a static route for diversion to the router to enable the mobile device to access the data of the cloud platform through the SSLVPN connection, including:

[0261] The mobile device sends a request to establish an SSLVPN connection to the SSLVPN server through an SSLVPN client (sslvpn-client), and the SSLVPN client (sslvpn-client) and the SSLVPN server negotiate to create a tun interface and establish an SSLVPN connection;

[0262] After the SSLVPN connection is successfully established, the security gateway plug-in (SSLVPN plug-in) sends a static route for diversion to the router, forwards the received SSLVPN network traffic to the cloud host (VM) through the router, and enables the mobile device to access the data of the cloud platform through the SSLVPN connection.

[0263] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0264] The mobile device sends an SSLVPN connection establishment request to the SSLVPN server through an SSLVPN client (sslvpn-client), and the SSLVPN client (sslvpn-client) and the SSLVPN server negotiate to create a tun interface. Establishing the SSLVPN connection includes:

[0265] The user sends a request to create an SSLVPN connection to the SSLVPN server through the SSLVPN client on the mobile device;

[0266] The SSLVPN server verifies the user's authentication information. After the authentication is completed, the SSLVPN client and the SSLVPN server negotiate the encryption algorithm and key, and create a tun interface;

[0267] When receiving the SSLVPN message, the tun interface decrypts and decapsulates the SSLVPN message received by the cloud platform according to the negotiated encryption algorithm and secret key, obtains the user data message, and forwards it to the cloud host through the transmission port;

[0268] The security gateway agent module (sslvpn-agent) monitors the SSLVPN connection status in the SSLVPN server, and notifies the security gateway plug-in (SSLVPN plug-in) through a remote call (rpc) connection. After the security gateway plug-in (SSLVPN plug-in) confirms that the SSLVPN connection is successful, it sends a static route to the router, and forwards the cloud host data message to the security gateway network namespace (sslvpn-netns) through the transmission network;

[0269] When receiving the cloud host data message, the tun interface encrypts and encapsulates the cloud host data message according to the negotiated encryption algorithm and key, obtains the SSLVPN reply message, and forwards it out of the cloud platform.

[0270] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0271] When the mobile device accesses the data of the cloud platform through the SSLVPN connection, the method includes:

[0272] The cloud platform receives the SSLVPN message sent by the mobile device from the external network, and forwards the SSLVPN message to the security gateway network namespace (sslvpn-netns);

[0273] The tun interface in the security gateway network namespace (sslvpn-netns) decapsulates the SSLVPN message, decrypts the user data message in the SSLVPN message, and then transmits the user data message to the router from the transmission interface, and the router transmits the user data message to the corresponding cloud host (VM);

[0274] After the cloud host processes the service, the cloud host data message is sent to the router;

[0275] The router sends the cloud host data message to the security gateway network namespace (sslvpn-netns) according to the static flow table;

[0276] The tun interface in the secure gateway network namespace (sslvpn-netns) encrypts the cloud host data message, encapsulates it into an SSLVPN reply message, forwards it to the external network, and forwards it to the mobile device through the external network.

[0277] For the specific limitations on the steps implemented when the computer program is executed by the processor, please refer to the above limitations on the method for the cloud platform to support the SSLVPN gateway, which will not be repeated here.

[0278] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0279] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0280] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A cloud platform supports SSLVPN gateway method, It is characterized in that A secure gateway proxy module is provided in the SSLVPN gateway node, and a secure gateway plug-in is provided in the virtual network service of the cloud platform, and the secure gateway plug-in and the secure gateway proxy module establish a remote call connection; The cloud platform supports the following SSLVPN gateway methods: The security gateway plug-in receives a request to create an SSLVPN, and according to the configuration information in the request to create an SSLVPN, applies for a gateway port on an external network, creates a transmission network and a router associated with the transmission network, and creates a transmission port; The security gateway plug-in transmits the configuration information to the security gateway proxy module, and the security gateway proxy module creates a security gateway network namespace, creates a diversion device corresponding to the security gateway network namespace, binds the gateway port and the transmission port, and starts the SSLVPN server to receive a request to establish an SSLVPN connection; The mobile device establishes an SSLVPN connection with the SSLVPN server by sending an SSLVPN connection establishment request, and the security gateway plug-in sends a static route for diversion to the router to enable the mobile device to access the data of the cloud platform through the SSLVPN connection.

2. The cloud platform supports SSLVPN gateway method according to claim 1, It is characterized in that The cloud platform supports the SSLVPN gateway method and method further includes: After the security gateway proxy module is started, the security gateway proxy module deployment data is written into the chassis private table of the southbound database of the cloud platform; After the security gateway plug-in is started, the security gateway plug-in obtains the deployment information of the security gateway proxy module by reading the deployment data in the chassis private table of the southbound database; The secure gateway plug-in and the secure gateway proxy module are configured to establish a remote call connection through a message queue, so that the secure gateway plug-in sends the configuration information data in the create SSLVPN request, and the secure gateway proxy module reports the operation information data of the SSLVPN gateway node.

3. The cloud platform supports SSLVPN gateway method according to claim 2, It is characterized in that The cloud platform supports the SSLVPN gateway method further comprising: The SSLVPN gateway node is configured to be deployed in a distributed manner, and multiple SSLVPN gateway nodes are deployed in the same cloud platform; When the security gateway proxy module is started, the security gateway proxy module reads the chassis private table of the southbound database, searches for the SSLVPN gateway node where the security gateway proxy module is located, and adds the security gateway proxy module deployment data in the SSLVPN gateway node; The security gateway plug-in reads the chassis private table of the southbound database, and obtains the deployment status of all security gateway proxy modules according to the security gateway proxy module deployment data; The security gateway proxy module monitors the chassis private table and regularly updates the security gateway proxy module deployment data in the chassis private table; The security gateway plug-in monitors the chassis private table, reads the latest security gateway proxy module deployment data in the chassis private table, updates the local security gateway proxy module deployment data, and updates the remote call connection at the same time.

4. The cloud platform supporting SSLVPN gateway method according to claim 1, It is characterized in that The security gateway plug-in receives a request to create an SSLVPN, and according to the configuration information in the request to create an SSLVPN, applies for a gateway port on an external network, creates a transmission network and a router associated with the transmission network, and the creation of the transmission port includes: The security gateway plug-in receives a request to create an SSLVPN, and parses configuration information in the request to create an SSLVPN; The security gateway plug-in calls the ovn-l3 plug-in to obtain the NAT gateway and external network from the router; The security gateway plug-in calls the ml2 plug-in to apply for a gateway port from the external network; The security gateway plug-in calls the ml2 plug-in to create a transmission network and a transmission port at the same time; The security gateway plug-in calls the ovn-l3 plug-in to associate the transmission network with the router; The transmission port is placed in the security gateway network namespace to connect the network link between the router and the security gateway network namespace.

5. The cloud platform supports SSLVPN gateway method according to claim 1, It is characterized in that The mobile device establishes an SSLVPN connection with the SSLVPN server by sending an SSLVPN connection establishment request, and the security gateway plug-in sends a static route for diversion to the router to enable the mobile device to access the data of the cloud platform through the SSLVPN connection, including: The mobile device sends a request to establish an SSLVPN connection to the SSLVPN server through the SSLVPN client, and the SSLVPN client and the SSLVPN server negotiate to create a tun interface and establish an SSLVPN connection; After the SSLVPN connection is successfully established, the security gateway plug-in sends a static route for diversion to the router, forwards the received SSLVPN network traffic to the cloud host through the router, and enables the mobile device to access the cloud platform data through the SSLVPN connection.

6. The cloud platform supporting SSLVPN gateway method according to claim 5, It is characterized in that The mobile device sends an SSLVPN connection establishment request to the SSLVPN server through the SSLVPN client, and the SSLVPN client and the SSLVPN server negotiate to create a tun interface. Establishing the SSLVPN connection includes: The user sends a request to create an SSLVPN connection to the SSLVPN server through the SSLVPN client on the mobile device; The SSLVPN server verifies the user's authentication information. After the authentication is completed, the SSLVPN client and the SSLVPN server negotiate the encryption algorithm and key, and create a tun interface; When receiving the SSLVPN message, the tun interface decrypts and decapsulates the SSLVPN message received by the cloud platform according to the negotiated encryption algorithm and secret key, obtains the user data message, and forwards it to the cloud host through the transmission port; The security gateway proxy module monitors the SSLVPN connection status in the SSLVPN server, notifies the security gateway plug-in through a remote call connection, and after the security gateway plug-in confirms that the SSLVPN connection is successful, sends a static route to the router, and forwards the cloud host data message to the security gateway network namespace through the transmission network; When receiving the cloud host data message, the tun interface encrypts and encapsulates the cloud host data message according to the negotiated encryption algorithm and key, obtains the SSLVPN reply message, and forwards it out of the cloud platform.

7. The cloud platform supports SSLVPN gateway method according to claim 6, It is characterized in that When the mobile device accesses the data of the cloud platform through the SSLVPN connection, the method includes: The cloud platform receives the SSLVPN message sent by the mobile device from the external network, and forwards the SSLVPN message to the security gateway network namespace; The tun interface in the network namespace of the security gateway decapsulates the SSLVPN message, decrypts the user data message in the SSLVPN message, and then transmits the user data message to the router from the transmission interface, and the router transmits the user data message to the corresponding cloud host; After the cloud host processes the service, the cloud host data message is sent to the router; The router sends the cloud host data message to the security gateway network namespace according to the static flow table; The tun interface in the network namespace of the security gateway encrypts the cloud host data message, encapsulates it into an SSLVPN reply message, forwards it to the external network, and forwards it to the mobile device through the external network.

8. A cloud platform supports SSLVPN gateway system, It is characterized in that The system includes a control node, a SLVPN gateway node and a computing node; The SLVPN gateway node is provided with a security gateway agent module, the control node is provided with a virtual network service, the virtual network service is provided with a security gateway plug-in, and the security gateway plug-in and the security gateway agent module establish a remote call connection through a message queue; The computing node is provided with a router, a switch and a cloud host, and the router is connected to the cloud host through the switch; The security gateway plug-in receives a request to create an SSLVPN, and according to the configuration information in the request to create an SSLVPN, applies for a gateway port on an external network, creates a transmission network and a router associated with the transmission network, and creates a transmission port; The security gateway plug-in transmits the configuration information to the security gateway proxy module, and the security gateway proxy module creates a security gateway network namespace in the SLVPN gateway node, creates a diversion device corresponding to the security gateway network namespace, binds the gateway port and the transmission port, and starts the SSLVPN server to receive a request to establish an SSLVPN connection; The mobile device establishes an SSLVPN connection with the SSLVPN server by sending an SSLVPN connection request. The security gateway plug-in sends a static route for diversion to the router, and forwards the received SSLVPN network traffic to the cloud host through the router, so that the mobile device can access the data of the cloud platform through the SSLVPN connection.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Security service deployment system, method and device

    CN111224821A

  • Aggregation method and device for issuing routing policy based on SSLVPN

    CN113595907A

  • Cloud resource pool SSLVPN device deployment method and device

    CN115277308A

  • Method for realizing remote access of user to virtual device based on SSLVPN

    CN115766186A

  • Mobile terminal SSLVPN security tunnel configuration system and configuration method

    CN115766339A