A WEB end real-time remote connection monitoring method based on an RDP protocol comprises the following steps that a gateway
server is maintained between an RDP
client and a
server, a firewall is configured, a routing rule is added, and RDP flow is forwarded to a local
loopback address; the rear end of the gateway
server starts an RDP
proxy service, receives the RDP traffic forwarded by the firewall, and creates an independent thread to run a Flask application; after the RDP
proxy service receives the RDP data packet, an RDP
protocol data unit is analyzed according to a protocol format; establishing connection between the RDP
proxy service and the Web front end through
WebSocket, defining a corresponding event according to the analyzed PDU
data type, and transmitting the event to the
Web browser end in real time; and the Web end creates a
bitmap cache and canvas cache canvas, and displays a remote picture and key data connected with the RDP on a
Web page in real time. The scheme not only can effectively monitor the
remote desktop session, but also has the advantages of
high bandwidth utilization rate,
low resource consumption, convenience in cross-platform deployment and the like.