Movatterモバイル変換


[0]ホーム

URL:


CN112492055A - Method, device and equipment for redirecting transmission protocol and readable storage medium - Google Patents

Method, device and equipment for redirecting transmission protocol and readable storage medium
Download PDF

Info

Publication number
CN112492055A
CN112492055ACN202011256472.5ACN202011256472ACN112492055ACN 112492055 ACN112492055 ACN 112492055ACN 202011256472 ACN202011256472 ACN 202011256472ACN 112492055 ACN112492055 ACN 112492055A
Authority
CN
China
Prior art keywords
hypertext transfer
access request
client
transfer protocol
http
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011256472.5A
Other languages
Chinese (zh)
Inventor
刘锡伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Power Commercial Systems Co Ltd
Original Assignee
Inspur Power Commercial Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Power Commercial Systems Co LtdfiledCriticalInspur Power Commercial Systems Co Ltd
Priority to CN202011256472.5ApriorityCriticalpatent/CN112492055A/en
Publication of CN112492055ApublicationCriticalpatent/CN112492055A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种传输协议重定向的方法、装置、设备及可读存储介质,基于开源的基板管理控制器OpenBMC,利用预先配置的NetCat命令代替万维网代理服务器Nginx监听超文本传输协议http默认端口,减小了监听工具占用的系统空间,在接收到客户端发送的超文本传输协议http访问请求后,将超文本传输协议http访问请求所需访问的第一地址信息封装为超文本传输安全协议https访问请求数据包发送至客户端,并向客户端发送永久重定向状态码,以使客户端根据超文本传输安全协议https访问请求数据包中的第二地址信息进行超文本传输安全协议https访问,提供了一种轻巧方便的实现传输协议重定向任务的方案。

Figure 202011256472

The invention discloses a transmission protocol redirection method, device, equipment and readable storage medium. Based on the open source baseboard management controller OpenBMC, the preconfigured NetCat command is used instead of the World Wide Web proxy server Nginx to monitor the hypertext transmission protocol http default port , reduces the system space occupied by the monitoring tool, after receiving the hypertext transfer protocol http access request sent by the client, encapsulates the first address information to be accessed by the hypertext transfer protocol http access request as a hypertext transfer security protocol The https access request data packet is sent to the client, and a permanent redirect status code is sent to the client, so that the client can perform the hypertext transfer security protocol https access according to the second address information in the hypertext transfer security protocol https access request data packet , which provides a light and convenient scheme for realizing the task of redirection of the transmission protocol.

Figure 202011256472

Description

Method, device and equipment for redirecting transmission protocol and readable storage medium
Technical Field
The present invention relates to the field of server technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for transport protocol redirection.
Background
In server management, it is often necessary to browse and set up some configuration information of the server using the World Wide Web (also known as the World Wide Web). Nowadays, most of the web uses the hypertext Transfer security Protocol http (hyper Text Transfer Protocol over secure session layer), and some clients still use the hypertext Transfer Protocol http (hyper Text Transfer Protocol) to access the web, so that the hypertext Transfer Protocol http needs to be redirected to the hyper Text Transfer security Protocol https.
Currently, the web proxy server nginx (engine x) configuration is mainly utilized to execute the task of http redirection to http task. However, the world wide web proxy server Nginx plug-in occupies a large space, and the size of the system image file is greatly increased.
Disclosure of Invention
The invention aims to provide a method, a device and equipment for redirecting a transmission protocol and a readable storage medium, which are used for realizing the task of redirecting a hypertext transfer protocol http to a hypertext transfer security protocol https on the basis of saving system space.
In order to solve the above technical problem, the present invention provides a method for redirecting a transport protocol, where an OpenBMC is a baseboard management controller based on an open source, and the method includes:
monitoring a hypertext transfer protocol http default port by utilizing a preconfigured NetCat command;
after receiving a hypertext transfer protocol http access request sent by a client from the hypertext transfer protocol http default port, analyzing the hypertext transfer protocol http access request to obtain first address information required to be accessed by the hypertext transfer protocol http access request;
and packaging the first address information into a hypertext transfer security protocol https access request data packet, sending the http https access request data packet to the client, and sending a permanent redirection state code to the client, so that the client performs hypertext transfer security protocol https access according to second address information in the hypertext transfer security protocol https access request data packet.
Optionally, the method further includes:
and after receiving a hypertext transfer security protocol https access request of the client, sending a hypertext transfer security protocol https data packet to the client.
Optionally, the receiving, from the http default port of the hypertext transfer protocol http, the http access request sent by the client includes:
and receiving a hypertext transfer protocol http access request sent by the client through a web browser from the hypertext transfer protocol http default port.
Optionally, the analyzing the http access request to obtain first address information that the http access request needs to access includes:
and analyzing the message header of the HTTP access request to obtain the first address information.
Optionally, the first address information specifically includes an IP address and a uniform resource locator corresponding to the http access request of the hypertext transfer protocol;
correspondingly, the second address information specifically includes the IP address and a uniform resource locator corresponding to the https access request.
Optionally, before monitoring the http default port of the hypertext transfer protocol by using the preconfigured NetCat command, the method further includes:
and after the server is started, starting the NetCat command to monitor the HTTP default port, and starting a transmission protocol redirection script to execute a task of redirecting the HTTP of the client to the HTTP http of the HTTP security protocol after receiving the HTTP access request sent by the client from the HTTP default port.
In order to solve the above technical problem, the present invention further provides a device for redirecting a transport protocol, including:
the monitoring unit is used for monitoring a hypertext transfer protocol http default port by utilizing a preconfigured NetCat command;
the analysis unit is used for analyzing the HTTP access request to obtain first address information required to be accessed by the HTTP access request after the HTTP access request sent by the client is received from the HTTP default port;
and the packaging unit is used for packaging the first address information into a hypertext transfer security protocol https access request data packet and sending the hypertext transfer security protocol https access request data packet to the client, and sending a permanent redirection state code to the client, so that the client performs hypertext transfer security protocol https access according to second address information in the hypertext transfer security protocol https access request data packet.
Optionally, the method further includes:
and the receiving unit is used for sending a hypertext transfer security protocol https data packet to the client after receiving the hypertext transfer security protocol https access request of the client.
In order to solve the above technical problem, the present invention further provides a device for redirecting a transport protocol, including:
a memory for storing instructions, said instructions comprising the steps of any of the above described methods of transport protocol redirection;
a processor to execute the instructions.
To solve the above technical problem, the present invention further provides a readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method for transport protocol redirection as described in any one of the above.
The method for redirecting the transmission protocol comprises the steps that an open-source-based substrate management controller OpenBMC monitors a hypertext transfer protocol http default port by utilizing a pre-configured NetCat command, replaces a scheme configured by a world Wide Web proxy server Nginx, analyzes the hypertext transfer protocol http access request to obtain first address information required to be accessed by the hypertext transfer protocol http access request after the hypertext transfer protocol http access request sent by a client is received from the hypertext transfer protocol http default port, packages the first address information into a hypertext transfer security protocol http access request data packet and sends the first address information to the client, and sends a permanent redirection state code to the client so that the client performs hypertext transfer security protocol http access according to second address information in the hypertext transfer security protocol http access request data packet. Compared with the Nginx configuration of a world wide web proxy server, the NetCat command occupies less space, the invention monitors the HTTP default port by utilizing the NetCat command, and executes the subsequent redirection task when monitoring the HTTP access request, thereby providing a light and convenient scheme for realizing the redirection from the HTTP to the HTTP http task, reducing the complexity of the system and being beneficial to debugging and maintenance. The invention also provides a device, equipment and a readable storage medium for redirecting the transmission protocol, which have the beneficial effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for redirecting a transport protocol according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a device for redirecting a transport protocol according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a device for redirecting a transport protocol according to an embodiment of the present invention.
Detailed Description
The core of the invention is to provide a method, a device, equipment and a readable storage medium for redirecting a transmission protocol, which are used for realizing the task of redirecting a hypertext transfer protocol http to a hypertext transfer security protocol https on the basis of saving system space.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a method for redirecting a transport protocol according to an embodiment of the present invention.
As shown in fig. 1, based on an OpenBMC that is an open-source baseboard management controller, the method for redirecting a transport protocol provided in the embodiment of the present invention includes:
s101: and monitoring a hypertext transfer protocol http default port by utilizing a preconfigured NetCat command.
NetCat has a name of "swiss saber" in a network tool, can read and write data in a network through TCP and UDP, and is usually installed in a device by default and in a disabled state. Because the quantity of the NetCat is smaller than that of the world wide web proxy server Nginx plug-in, a NetCat command is started and configured in advance to replace the world wide web proxy server Nginx plug-in to monitor a hypertext transfer protocol http default port (80 port) to combine with a transmission protocol redirection script to realize the task of redirecting the hypertext transfer protocol http to the hypertext transfer security protocol http, so that the space can be effectively saved, and the size of a system image file can be reduced.
S102: and after receiving a hypertext transfer protocol http access request sent by a client from a hypertext transfer protocol http default port, analyzing the hypertext transfer protocol http access request to obtain first address information required to be accessed by the hypertext transfer protocol http access request.
The method mainly aims at that a client sends a hypertext transfer protocol http access request through a web browser.
The current web usually adopts a hypertext transfer security protocol (http) protocol, but some clients also use the hypertext transfer protocol (http) protocol when accessing the web, and redirection is needed at the moment. Aiming at an access request of a client, a web system is provided with a hypertext transfer protocol http default port and a hypertext transfer security protocol http default port, and the access request received from the hypertext transfer protocol http default port is the hypertext transfer protocol http access request.
After receiving a hypertext transfer protocol http access request sent by a client, the open-source substrate management controller OpenBMC analyzes the hypertext transfer protocol http access request to obtain first address information required to be accessed by the hypertext transfer protocol http access request.
The address information in the http access request is usually located in a message header, and in order to reduce calculation and speed up processing, only the message header of the http access request may be analyzed to obtain the first address information.
Typically, the first address information specifically includes an IP (Internet Protocol) address and a Uniform Resource Locator (URL) corresponding to a hypertext transfer Protocol http access request.
S103: and packaging the first address information into a hypertext transfer security protocol https access request data packet, sending the hypertext transfer security protocol https access request data packet to the client, and sending a permanent redirection state code to the client, so that the client performs hypertext transfer security protocol https access according to second address information in the hypertext transfer security protocol https access request data packet.
And the first address information is packaged into a hypertext transfer security protocol https access request data packet, wherein the IP address is unchanged, and the uniform resource locator is changed into a uniform resource locator corresponding to the hypertext transfer security protocol https access request, namely the second address information specifically comprises the IP address and the uniform resource locator corresponding to the hypertext transfer security protocol https access request.
And meanwhile, setting the state code to be 308(Permanent Redirect state code) and then sending the state code to the client.
After receiving a hypertext transfer security protocol https access request data packet and a permanent redirection state code, a client sends a hypertext transfer security protocol https access request during subsequent access according to the permanent redirection state code; in the current access, a server is accessed by using a url website of a new hypertext transfer security protocol https protocol through an IP address in a hypertext transfer security protocol https access request data packet and a uniform resource locator corresponding to the hypertext transfer security protocol https access request.
Further, the method for redirecting a transport protocol provided in the embodiment of the present invention further includes:
and after receiving a hypertext transfer security protocol https access request of the client, sending a hypertext transfer security protocol https data packet to the client.
After receiving a hypertext transfer security protocol https access request of a client, an open-source substrate management controller (OpenBMC) of a server sends a hypertext transfer security protocol https data packet to the client to establish a link between the client and a target website.
The method for redirecting the transmission protocol, provided by the embodiment of the invention, comprises the steps of monitoring a hypertext transfer protocol http default port by utilizing a pre-configured NetCat command based on an open-source substrate management controller OpenBMC (open network controller), replacing a scheme configured by a world Wide Web proxy server Nginx, analyzing the hypertext transfer protocol http access request to obtain first address information required to be accessed by the hypertext transfer protocol http access request after the hypertext transfer protocol http access request sent by a client is received from the hypertext transfer protocol http default port, packaging the first address information into a hypertext transfer security protocol http access request data packet, sending the first address information to the client, and sending a permanent redirection state code to the client so that the client performs hypertext transfer security protocol http access according to second address information in the hypertext transfer security protocol http access request data packet. Compared with the Nginx configuration of a world wide web proxy server, the NetCat command occupies less space, the embodiment of the invention monitors the HTTP default port by using the NetCat command, and executes the subsequent redirection task when monitoring the HTTP access request, thereby providing a light and convenient scheme for realizing the redirection from the HTTP to the HTTP http task, reducing the complexity of the system and being beneficial to debugging and maintenance.
On the basis of the above embodiment, for convenient use, in step S101, before monitoring the default port of http over http by using the preconfigured NetCat command, the method further includes:
after the server is started, a NetCat command is started to monitor a hypertext transfer protocol http default port, and a transmission protocol redirection script is started to execute a task of redirecting the hypertext transfer protocol http of the client to the hypertext transfer security protocol http after a hypertext transfer protocol http access request sent by the client is received from the hypertext transfer protocol http default port.
In specific implementation, the NetCat command is set to be started up and started up, so that after the server is started up, the open-source substrate management controller OpenBMC automatically starts a pre-configured NetCat command to monitor the hypertext transfer protocol http default port, and when a hypertext transfer protocol http access request sent by a client is received from the hypertext transfer protocol http default port, a transmission protocol redirection script is called to execute a task of redirecting the hypertext transfer protocol http of the client to the hypertext transfer security protocol http.
On the basis of the above detailed description of the embodiments corresponding to the method for redirecting the transport protocol, the invention also discloses a device, equipment and a readable storage medium for redirecting the transport protocol corresponding to the method.
Fig. 2 is a schematic structural diagram of a device for redirecting a transport protocol according to an embodiment of the present invention.
As shown in fig. 2, the apparatus for redirecting a transport protocol according to an embodiment of the present invention includes:
themonitoring unit 201 is configured to monitor a hypertext transfer protocol http default port by using a preconfigured NetCat command;
theanalysis unit 202 is configured to, after receiving a hypertext transfer protocol http access request sent by a client from a hypertext transfer protocol http default port, analyze the hypertext transfer protocol http access request to obtain first address information to be accessed by the hypertext transfer protocol http access request;
and the encapsulatingunit 203 is configured to encapsulate the first address information into a http https access request data packet, send the http https access request data packet to the client, and send a permanent redirection status code to the client, so that the client performs http https access according to second address information in the http https access request data packet.
Further, the apparatus for redirecting a transport protocol provided in the embodiment of the present invention further includes:
and the receiving unit is used for sending the HTTP https data packet to the client after receiving the HTTP https access request of the client.
Further, the apparatus for redirecting a transport protocol provided in the embodiment of the present invention further includes:
and the calling unit is used for starting a NetCat command to monitor a hypertext transfer protocol http default port after the server is started, and starting a transmission protocol redirection script to execute a task of redirecting the hypertext transfer protocol http of the client to the hypertext transfer security protocol http after a hypertext transfer protocol http access request sent by the client is received from the hypertext transfer protocol http default port.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
Fig. 3 is a schematic structural diagram of a device for redirecting a transport protocol according to an embodiment of the present invention.
As shown in fig. 3, the apparatus for redirecting a transport protocol according to an embodiment of the present invention includes:
a memory 310 for storing instructions comprising the steps of the method for transport protocol redirection according to any of the above embodiments;
a processor 320 for executing the instructions.
Processor 320 may include one or more processing cores, such as a 3-core processor, an 8-core processor, and so forth. The processor 320 may be implemented in at least one hardware form of a digital Signal processing (dsp), a Field-Programmable Gate Array (FPGA), a Programmable Logic Array (pla), or a digital Signal processing (dsp). The processor 320 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a central Processing unit (cpu); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 320 may be integrated with an image processor GPU (graphics Processing unit), which is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, processor 320 may also include an Artificial Intelligence (AI) (artificial intelligence) processor for processing computational operations related to machine learning.
Memory 310 may include one or more readable storage media, which may be non-transitory. Memory 310 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 310 is at least used for storing a computer program 311, wherein after the computer program 311 is loaded and executed by the processor 320, the relevant steps in the method for redirecting a transport protocol disclosed in any of the foregoing embodiments can be implemented. In addition, the resources stored by the memory 310 may also include an operating system 312, data 313, and the like, and the storage may be transient storage or persistent storage. The operating system 312 may be Windows, among others. Data 313 may include, but is not limited to, data involved in the above-described methods.
In some embodiments, the transport protocol redirection device may further include adisplay 330, apower source 340, acommunication interface 350, an input output interface 360, asensor 370, and a communication bus 380.
Those skilled in the art will appreciate that the architecture shown in fig. 3 does not constitute a limitation of a transport protocol redirection device and may include more or fewer components than those shown.
The device for redirecting the transport protocol, provided by the embodiment of the application, includes a memory and a processor, and when the processor executes a program stored in the memory, the method for redirecting the transport protocol can be implemented, and the effect is the same as that described above.
It should be noted that the above-described embodiments of the apparatus and device are merely illustrative, for example, the division of modules is only one division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form. Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may be stored in a readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and performs all or part of the steps of the methods according to the embodiments of the present invention, or all or part of the technical solution.
To this end, an embodiment of the present invention further provides a readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the method, such as transport protocol redirection.
The readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory ROM (Read-Only Memory), a random Access Memory ram (random Access Memory), a magnetic disk, or an optical disk.
The readable storage medium provided in this embodiment contains a computer program capable of implementing the steps of the method for redirecting a transport protocol as described above when executed by a processor, and the same effect is achieved.
The method, apparatus, device and readable storage medium for redirecting a transport protocol provided by the present invention are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device, the apparatus and the readable storage medium disclosed by the embodiments correspond to the method disclosed by the embodiments, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

Translated fromChinese
1.一种传输协议重定向的方法,其特征在于,基于开源的基板管理控制器OpenBMC,包括:1. a method for transmission protocol redirection, is characterized in that, based on open source baseboard management controller OpenBMC, comprising:利用预先配置的NetCat命令监听超文本传输协议http默认端口;Use the pre-configured NetCat command to listen to the default port of the hypertext transfer protocol http;当自所述超文本传输协议http默认端口接收到客户端发送的超文本传输协议http访问请求后,解析所述超文本传输协议http访问请求得到所述超文本传输协议http访问请求所需访问的第一地址信息;After receiving the hypertext transfer protocol http access request sent by the client from the hypertext transfer protocol http default port, parse the hypertext transfer protocol http access request to obtain the access request required by the hypertext transfer protocol http access request first address information;将所述第一地址信息封装为超文本传输安全协议https访问请求数据包发送至所述客户端,并向所述客户端发送永久重定向状态码,以使所述客户端根据所述超文本传输安全协议https访问请求数据包中的第二地址信息进行超文本传输安全协议https访问。Encapsulate the first address information into a hypertext transmission security protocol https access request data packet and send it to the client, and send a permanent redirection status code to the client, so that the client can use the hypertext The second address information in the transmission security protocol https access request data packet is used for hypertext transmission security protocol https access.2.根据权利要求1所述的方法,其特征在于,还包括:2. The method of claim 1, further comprising:当接收到所述客户端的超文本传输安全协议https访问请求后,向所述客户端发送超文本传输安全协议https数据包。After receiving the hypertext transmission security protocol https access request from the client, send the hypertext transmission security protocol https data packet to the client.3.根据权利要求1所述的方法,其特征在于,所述自所述超文本传输协议http默认端口接收到客户端发送的超文本传输协议http访问请求,具体为:3. method according to claim 1, is characterized in that, the described hypertext transfer protocol http access request that client sends from described hypertext transfer protocol http default port is received, is specifically:自所述超文本传输协议http默认端口接收到所述客户端通过web浏览器发送的超文本传输协议http访问请求。A hypertext transfer protocol http access request sent by the client through a web browser is received from the hypertext transfer protocol http default port.4.根据权利要求1所述的方法,其特征在于,所述解析所述超文本传输协议http访问请求得到所述超文本传输协议http访问请求所需访问的第一地址信息,具体为:4. method according to claim 1, is characterized in that, described parsing described hypertext transfer protocol http access request obtains the first address information required to visit of described hypertext transfer protocol http access request, specifically:解析所述超文本传输协议http访问请求的消息头得到所述第一地址信息。The first address information is obtained by parsing the message header of the hypertext transfer protocol http access request.5.根据权利要求2所述的方法,其特征在于,所述第一地址信息具体包括IP地址和与所述超文本传输协议http访问请求对应的统一资源定位符;5. The method according to claim 2, wherein the first address information specifically comprises an IP address and a uniform resource locator corresponding to the hypertext transfer protocol http access request;相应的,所述第二地址信息具体包括所述IP地址和与所述超文本传输安全协议https访问请求对应的统一资源定位符。Correspondingly, the second address information specifically includes the IP address and a uniform resource locator corresponding to the hypertext transfer security protocol https access request.6.根据权利要求1所述的方法,其特征在于,在利用预先配置的NetCat命令监听超文本传输协议http默认端口之前,还包括:6. method according to claim 1, is characterized in that, before utilizing preconfigured NetCat command to monitor hypertext transfer protocol http default port, also comprises:在服务器开机后,启动所述NetCat命令以监听所述超文本传输协议http默认端口,并启动传输协议重定向脚本以在当自所述超文本传输协议http默认端口接收到所述客户端发送的超文本传输协议http访问请求后执行对所述客户端的超文本传输协议http重定向至超文本传输安全协议https的任务。After the server is powered on, start the NetCat command to monitor the hypertext transfer protocol http default port, and start the transfer protocol redirection script to receive the message sent by the client from the hypertext transfer protocol http default port After the hypertext transfer protocol http access request, the task of redirecting the client's hypertext transfer protocol http to the hypertext transfer security protocol https is performed.7.一种传输协议重定向的装置,其特征在于,包括:7. A device for transmission protocol redirection, characterized in that, comprising:监听单元,用于利用预先配置的NetCat命令监听超文本传输协议http默认端口;The monitoring unit is used to monitor the default port of the hypertext transfer protocol http by using the pre-configured NetCat command;解析单元,用于当自所述超文本传输协议http默认端口接收到客户端发送的超文本传输协议http访问请求后,解析所述超文本传输协议http访问请求得到所述超文本传输协议http访问请求所需访问的第一地址信息;a parsing unit, configured to parse the hypertext transfer protocol http access request to obtain the hypertext transfer protocol http access after receiving the hypertext transfer protocol http access request sent by the client from the hypertext transfer protocol http default port Request the first address information to be accessed;封装单元,用于将所述第一地址信息封装为超文本传输安全协议https访问请求数据包发送至所述客户端,并向所述客户端发送永久重定向状态码,以使所述客户端根据所述超文本传输安全协议https访问请求数据包中的第二地址信息进行超文本传输安全协议https访问。an encapsulation unit, configured to encapsulate the first address information into a hypertext transfer security protocol https access request data packet and send it to the client, and send a permanent redirection status code to the client, so that the client The hypertext transmission security protocol https access is performed according to the second address information in the hypertext transmission security protocol https access request data packet.8.根据权利要求7所述的装置,其特征在于,还包括:8. The apparatus of claim 7, further comprising:接收单元,用于当接收到所述客户端的超文本传输安全协议https访问请求后,向所述客户端发送超文本传输安全协议https数据包。A receiving unit, configured to send a hypertext transmission security protocol https data packet to the client after receiving the hypertext transmission security protocol https access request from the client.9.一种传输协议重定向的设备,其特征在于,包括:9. a kind of equipment of transmission protocol redirection, is characterized in that, comprises:存储器,用于存储指令,所述指令包括权利要求1至6任意一项所述传输协议重定向的方法的步骤;a memory for storing an instruction, the instruction comprising the steps of the method for redirecting a transmission protocol according to any one of claims 1 to 6;处理器,用于执行所述指令。a processor for executing the instructions.10.一种可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至6任意一项所述传输协议重定向的方法的步骤。10. A readable storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the method for redirecting a transmission protocol according to any one of claims 1 to 6 are implemented.
CN202011256472.5A2020-11-112020-11-11Method, device and equipment for redirecting transmission protocol and readable storage mediumPendingCN112492055A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202011256472.5ACN112492055A (en)2020-11-112020-11-11Method, device and equipment for redirecting transmission protocol and readable storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202011256472.5ACN112492055A (en)2020-11-112020-11-11Method, device and equipment for redirecting transmission protocol and readable storage medium

Publications (1)

Publication NumberPublication Date
CN112492055Atrue CN112492055A (en)2021-03-12

Family

ID=74929711

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202011256472.5APendingCN112492055A (en)2020-11-112020-11-11Method, device and equipment for redirecting transmission protocol and readable storage medium

Country Status (1)

CountryLink
CN (1)CN112492055A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113805880A (en)*2021-09-062021-12-17南京联创信息科技有限公司Method for solving request failure of https protocol under shiro framework
CN114666132A (en)*2022-03-222022-06-24深圳供电局有限公司Method for encrypting and authenticating application layer based on TCP/IP protocol

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105721479A (en)*2016-03-022016-06-29北京网康科技有限公司URL filtering method and device
CN106878434A (en)*2017-02-282017-06-20杭州迪普科技股份有限公司A kind of method and device of redirection
CN107040429A (en)*2017-03-132017-08-11上海斐讯数据通信技术有限公司A kind of method of testing and system of port forwarding performance
CN107465551A (en)*2017-08-242017-12-12深圳互联先锋科技有限公司port detecting method and device
CN108494825A (en)*2018-02-242018-09-04深圳市联软科技股份有限公司A kind of method, medium and equipment redirecting access request
CN111064804A (en)*2019-12-302020-04-24杭州迪普科技股份有限公司Network access method and device
CN111147583A (en)*2019-12-272020-05-12杭州迪普科技股份有限公司HTTP redirection rewriting method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105721479A (en)*2016-03-022016-06-29北京网康科技有限公司URL filtering method and device
CN106878434A (en)*2017-02-282017-06-20杭州迪普科技股份有限公司A kind of method and device of redirection
CN107040429A (en)*2017-03-132017-08-11上海斐讯数据通信技术有限公司A kind of method of testing and system of port forwarding performance
CN107465551A (en)*2017-08-242017-12-12深圳互联先锋科技有限公司port detecting method and device
CN108494825A (en)*2018-02-242018-09-04深圳市联软科技股份有限公司A kind of method, medium and equipment redirecting access request
CN111147583A (en)*2019-12-272020-05-12杭州迪普科技股份有限公司HTTP redirection rewriting method and device
CN111064804A (en)*2019-12-302020-04-24杭州迪普科技股份有限公司Network access method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113805880A (en)*2021-09-062021-12-17南京联创信息科技有限公司Method for solving request failure of https protocol under shiro framework
CN114666132A (en)*2022-03-222022-06-24深圳供电局有限公司Method for encrypting and authenticating application layer based on TCP/IP protocol
CN114666132B (en)*2022-03-222024-01-30深圳供电局有限公司 Method for application layer encryption and authentication based on TCP/IP protocol

Similar Documents

PublicationPublication DateTitle
US20220038550A1 (en)Method and Apparatus for Automatically Optimizing the Loading of Images in a Cloud-Based Proxy Service
CN114124929B (en) Cross-network data processing methods and devices
CN102843393B (en)Running device and method of network application
CN107766509B (en)Method and device for static backup of webpage
CN110769009B (en)User identity authentication method and system
US20250047733A1 (en)Media streaming method and system
CN102368249B (en)Page downloading control method and system for IE (Internet Explorer) core browser
US20150296014A1 (en)Picture download method and apparatus
CN104065679B (en)The method and client of a kind of remote desktop operation
CN112492055A (en)Method, device and equipment for redirecting transmission protocol and readable storage medium
CN103716319B (en)A kind of apparatus and method of web access optimization
CN102843394B (en)Framework device and operation method of network application
US9614900B1 (en)Multi-process architecture for a split browser
CN113220481A (en)Request processing and feedback method and device, computer equipment and readable storage medium
CN102368250A (en)Page downloading control method and system for IE (Internet Explore) kernel browser
CN116150513A (en) Data processing method, device, electronic device, and computer-readable storage medium
CN115665254A (en)Request processing method and device and readable storage medium
CN104270443A (en)Cloud computing system and method capable of dynamically analyzing Web application
CN105407150A (en)Remote control method of application program
CN108376090A (en) Method, device, terminal and storage medium for operating web page pictures
US7797405B2 (en)Streaming file transfer apparatus, systems, and methods
WO2024139412A1 (en)Application traffic comprehensive management method, apparatus, and electronic device
Gong et al.Wwof: an energy efficient offloading framework for mobile webpage
hong-you et al.The predigest project of TCP/IP protocol communication system based on DSP technology and Ethernet
US20210208913A1 (en)Method for dynamic optimization of web applications

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20210312

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp