CN115426404A - Intranet resource access method, system, equipment and computer readable storage medium - Google Patents

Intranet resource access method, system, equipment and computer readable storage medium Download PDF

Info

Publication number
CN115426404A
CN115426404A CN202211365529.4A CN202211365529A CN115426404A CN 115426404 A CN115426404 A CN 115426404A CN 202211365529 A CN202211365529 A CN 202211365529A CN 115426404 A CN115426404 A CN 115426404A
Authority
CN
China
Prior art keywords
resource
intranet
request
server
target
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
CN202211365529.4A
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.)
Shenzhen Mingyuan Cloud Technology Co Ltd
Original Assignee
Shenzhen Mingyuan Cloud Technology 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 Shenzhen Mingyuan Cloud Technology Co Ltd filed Critical Shenzhen Mingyuan Cloud Technology Co Ltd
Priority to CN202211365529.4A priority Critical patent/CN115426404A/en
Publication of CN115426404A publication Critical patent/CN115426404A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The application discloses an intranet resource access method, an intranet resource access system, intranet resource access equipment and a computer readable storage medium, wherein the method is applied to a server, and when the server receives a resource request for accessing an intranet, which is sent by a requester, the server sends the resource request to an agent program under a target internal network; acquiring a target resource corresponding to the resource request in the internal network through the agent program; and sending the target resource to the requester sending the resource request. That is, in the present application, a user can access resources in the intranet through interaction between the server and the agent located in the intranet. Compare in the current internal network of direct access through setting up VPN or the proxy server who uses, under the scene that light-weight intranet penetrated the access, this application only need can realize with the help of the agent program of operation at the intranet to the significantly reduced intranet pierces through the resource cost who realizes, and deploys more nimble convenience.

Description

Intranet resource access method, system, equipment and computer readable storage medium
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a method, a system, a device, and a computer-readable storage medium for accessing intranet resources.
Background
In order to meet business requirements, part of workers in an enterprise need to go out for work, and meanwhile, the workers need to use resources in an internal network of the company, but in order to ensure the security of internal resources (such as internal files or internal applications and the like), part of the internal resources may not be directly accessed or acquired by the internet, which causes obstacles to the workers who need to use the internet for work to access the internal resources. A common solution to the above scenario in the industry is to establish a Virtual Network between a VPN (Virtual Private Network) and an intranet to achieve the purpose of accessing the intranet, but this solution has a high cost and requires a special server and a Network bandwidth to be installed, and a function of accessing the VPN by penetrating through the intranet with a low frequency or a light weight is also redundant.
The above is only for the purpose of assisting understanding of the technical solutions of the present application, and does not represent an admission that the above is prior art.
Disclosure of Invention
The present application mainly aims to provide an intranet resource access method, system, device and computer readable storage medium, and aims to solve the technical problem of high cost when using a VPN method to access an intranet at present.
In order to achieve the above object, the present application provides an intranet resource access method, where the intranet resource access method is applied to a server, and the method includes the following steps:
when a resource request for accessing the intranet, which is sent by a requester, is received, sending the resource request to an agent program in a target internal network;
acquiring a target resource corresponding to the resource request in the internal network through the agent program;
and sending the target resource to the requester sending the resource request.
Further, the step of sending the resource request to an agent under the target internal network includes:
acquiring an agent identifier in the resource request;
determining the agent program under the target internal network according to the agent identification;
and sending the resource request to the agent program through a pre-established bidirectional TCP channel.
Further, before the step of sending the resource request to an agent under a target internal network, the method includes:
receiving a TCP channel request sent by the agent program;
establishing the bidirectional TCP channel with the agent based on the TCP channel request.
In order to achieve the above object, the present application further provides an intranet resource access method, where the intranet resource access method is applied to an agent program, and the method includes the following steps:
when a resource request of a requester sent by a server is received, initiating a request to a local intranet based on a target resource corresponding to the resource request to obtain a response result of the local intranet;
and sending the response result as the target resource to the server so that the server sends the target resource to the requester.
Further, the step of initiating a request to a local intranet based on a target resource corresponding to the resource request to obtain a response result of the local intranet includes:
acquiring a resource identifier in the resource request;
determining the target resource according to the resource identifier;
and initiating a secondary resource request to the local intranet based on the target resource to obtain a response result of the local intranet based on the secondary resource request.
Further, the step of sending the response result as the target resource to the server includes:
and sending the response result serving as the target resource to the server through a bidirectional TCP channel pre-established with the server.
Further, before the step of initiating a request to a local intranet to obtain a response result of the local intranet based on a target resource corresponding to the resource request, the method includes:
monitoring the communication state with the server;
and if the communication state is in the communication interruption state, sending a TCP channel request to the server to establish a bidirectional TCP channel between the server and the server for data communication.
In order to achieve the above object, the present application further provides an intranet resource access system, where the intranet resource access system includes:
the server is used for sending the resource request to an agent program under a target internal network when receiving the resource request for accessing the internal network sent by the requester;
acquiring a target resource corresponding to the resource request in the internal network through the agent program;
sending the target resource to the requester sending the resource request;
the agent program is used for initiating a request to a local intranet based on a target resource corresponding to a resource request to obtain a response result of the local intranet when the resource request of a requester sent by a server is received;
and sending the response result as the target resource to the server so that the server sends the target resource to the requester.
In order to achieve the above object, the present application further provides an intranet resource access device, where the intranet resource access device includes: the intranet resource access method comprises a memory, a processor and an intranet resource access program which is stored on the memory and can run on the processor, wherein the intranet resource access program realizes the steps of the intranet resource access method when being executed by the processor.
In order to achieve the above object, the present application further provides a computer-readable storage medium, in which an intranet resource access program is stored, and when the intranet resource access program is executed by a processor, the steps of the intranet resource access method are implemented.
The intranet resource access method provided by the embodiment of the application is applied to a server, and comprises the following steps: when a resource request for accessing the intranet, which is sent by a requester, is received, sending the resource request to an agent program in a target internal network; acquiring a target resource corresponding to the resource request in the internal network through the agent program; and sending the target resource to the requester sending the resource request.
Applied to an agent, the method comprising the steps of: when a resource request of a requester sent by a server is received, initiating a request to a local intranet based on a target resource corresponding to the resource request to obtain a response result of the local intranet; and sending the response result as the target resource to the server so that the server sends the target resource to the requester.
That is, in the present application, a user can access resources in the intranet through interaction between the server and the agent located in the intranet. Compared with the prior art that the internal network is directly accessed through constructing the VPN or using the proxy server, under the scene that the lightweight intranet is accessed through, the method and the system can be realized only by means of the proxy program which is operated on the intranet, so that the resource cost of the intranet for realizing the penetration is greatly reduced, and the deployment is more flexible and convenient.
Drawings
Fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a first embodiment of an intranet resource access method according to the present application;
fig. 3 is a schematic flowchart of a second embodiment of the method for accessing intranet resources according to the present application;
FIG. 4 is a schematic diagram of an intranet resource access system in the intranet resource access method of the present application;
fig. 5 is a schematic diagram of a multi-intranet scenario in the intranet resource access method of the present application.
The implementation, functional features and advantages of the object of the present application will be further explained with reference to the embodiments, and with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The main solution of the embodiment of the invention is as follows: when receiving a resource request for accessing the intranet sent by a requester, a server sends the resource request to an agent program under a target internal network; acquiring a target resource corresponding to the resource request in the internal network through the agent program; and sending the target resource to the requester sending the resource request.
The problem of high cost exists when the intranet is accessed by using a VPN method at present.
The invention provides a solution, and a user can access resources under an intranet through interaction of a server and an agent program positioned in the intranet. Compared with the prior art that the internal network is directly accessed through constructing the VPN or using the proxy server, under the scene that the lightweight intranet is accessed through, the method and the system can be realized only by means of the proxy program which is operated on the intranet, so that the resource cost of the intranet for realizing the penetration is greatly reduced, and the deployment is more flexible and convenient.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present application.
The device in the embodiment of the application can be a server, and can also be an electronic terminal device with data receiving, data processing and data sending functions, such as a smart phone, a PC, a tablet computer and a portable computer.
As shown in fig. 1, the apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory such as a disk memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the device may also include a camera, RF (Radio Frequency) circuitry, sensors, audio circuitry, wiFi modules, and so forth. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the configuration of the apparatus shown in fig. 1 is not intended to be limiting of the apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an intranet resource access program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the intranet resource access program stored in the memory 1005, and perform the following operations:
applied to the server side, comprising:
when a resource request for accessing the intranet, which is sent by a requester, is received, sending the resource request to an agent program in a target internal network;
acquiring a target resource corresponding to the resource request in the internal network through the agent program;
and sending the target resource to the requester sending the resource request.
Further, the processor 1001 may call the intranet resource access program stored in the memory 1005, and further perform the following operations:
the step of sending the resource request to an agent under a target internal network includes:
acquiring an agent identifier in the resource request;
determining the agent program under the target internal network according to the agent identification;
and sending the resource request to the agent program through a pre-established bidirectional TCP channel.
Further, the processor 1001 may call the intranet resource access program stored in the memory 1005, and further perform the following operations:
before the step of sending the resource request to an agent under a target internal network, the method comprises:
receiving a TCP channel request sent by the agent program;
establishing the bidirectional TCP channel with the agent based on the TCP channel request.
Further, the processor 1001 may call the intranet resource access program stored in the memory 1005, and further perform the following operations:
applied to an agent program, comprising:
when a resource request of a requester sent by a server is received, initiating a request to a local intranet based on a target resource corresponding to the resource request to obtain a response result of the local intranet;
and sending the response result as the target resource to the server so that the server sends the target resource to the requester.
Further, the processor 1001 may call the intranet resource access program stored in the memory 1005, and further perform the following operations:
the step of initiating a request to a local intranet based on a target resource corresponding to the resource request to obtain a response result of the local intranet comprises:
acquiring a resource identifier in the resource request;
determining the target resource according to the resource identifier;
and initiating a secondary resource request to the local intranet based on the target resource to obtain a response result of the local intranet based on the secondary resource request.
Further, the processor 1001 may call the intranet resource access program stored in the memory 1005, and further perform the following operations:
the step of sending the response result as the target resource to the server comprises:
and sending the response result serving as the target resource to the server through a bidirectional TCP channel pre-established with the server.
Further, the processor 1001 may call the intranet resource access program stored in the memory 1005, and further perform the following operations:
before the step of initiating a request to a local intranet to obtain a response result of the local intranet based on a target resource corresponding to the resource request, the method includes:
monitoring the communication state with the server;
and if the communication state is in the communication interruption state, sending a TCP channel request to the server so as to establish a bidirectional TCP channel between the server and carry out data communication.
Referring to fig. 2, in a first embodiment of the intranet resource access method according to the present application, an intranet resource access method is applied to a server, and the intranet resource access method includes:
step S10, when receiving a resource request for accessing the intranet sent by a requester, sending the resource request to an agent program under a target internal network;
in the present embodiment, the scenario that the user accesses the enterprise or the company intranet through the external internet is mainly targeted. In addition, in this embodiment, the main implementation body of the intranet resource access method is a server, and specifically, the requester is an electronic device used when a user sends a resource request, such as a computer, a smart phone, a tablet computer, and the like. Taking a computer as an example, the user may send the Resource request through a browser of the computer, where the Resource request may be in the form of a URL (Uniform Resource Locator), such as https:// proxy.xxx.com/target/Resource (i.e., the user may input the Resource request https:// proxy.xxx.com/target/Resource in the browser). The https:// proxy.xxx.com is the address of the server, the target is the agent identifier, and the resource is the target resource. It is understood that https:// proxy. Xxx. Com-based resource requests can be made to be sent from the electronic device used by the user to the server via the external internet. And the server address, the agent identifier and the corresponding content of the target resource in the resource request can be set by technical personnel according to requirements.
Further, acquiring an agent identifier in the resource request; determining the agent program under the target internal network according to the agent identification; and sending the resource request to the agent program through a pre-established bidirectional TCP channel.
Specifically, the server receives the resource request and includes an agent identifier, and it can be understood that the agent identifier usually points to an agent program in the intranet, so that the resource request can be indicated to access the internal network. When the server receives the resource request, the agent identifier in the resource request, such as the target in https:// proxy.xxx.com/target/resource, is obtained, and the agent program to be sent by the resource request can be determined through the agent identifier, wherein the agent program is a program of any host installed under the internal network. In addition, in this embodiment, different internal networks may be installed for a company or an enterprise, and partitions exist between the internal networks and cannot be directly accessed. One agent is installed per internal network, so that there are a plurality of agents. And the server determines the agent program corresponding to the agent identifier according to the agent identifier in the resource request (and may also determine the internal network corresponding to the resource request in the same way). The server sends the resource request to the corresponding agent program through a pre-established bidirectional TCP (Transmission Control Protocol) channel between the server and the agent program. Referring to fig. 5, a schematic diagram of a multi-intranet scenario of the intranet resource access method according to the present application is shown, where the diagram includes an electronic device, a server, internal networks 1 to 3, and agent programs 1 to 3 corresponding to the internal networks, respectively, where the electronic device sends a resource request 1 to the server, and what needs to be described is an agent identifier indicated by 1 in the resource request 1, the server can determine a target agent program 1 for sending the resource request 1 according to the resource request 1, and the corresponding server sends the resource request 1 to the agent program 1 in the internal network 1.
Further, before the step of sending the resource request to an agent under a target internal network, the method includes: receiving a TCP channel request sent by the agent program; establishing the bidirectional TCP channel with the agent based on the TCP channel request.
Specifically, a bidirectional TCP channel between the server and the agent is actively established by the agent, wherein the agent monitors a communication state with the server, and if the communication state is in a communication interruption state, the agent actively sends a TCP channel request to the server to establish the bidirectional TCP channel. After receiving the TCP channel request sent by the agent program, the server finishes three-way handshake with the agent program, and then the construction of the bidirectional TCP channel can be finished.
Step S20, acquiring a target resource corresponding to the resource request in the internal network through the agent program;
specifically, after the server issues the resource request to the corresponding agent, the server enters a state where the request of the current resource waits for the response of the agent. The agent program initiates a resource request to a local intranet (the local intranet refers to the intranet where the agent program is located) based on the resource request, and an application in the local intranet responds to the request of the agent program. The agent program sends the response result of the local intranet to the server through the bidirectional TCP channel (the response result of the local intranet is also the response result of the agent program responding to the server), and the server takes the response result of the agent program as the target resource.
Step S30, the target resource is sent to the requester sending the resource request.
Specifically, the server sends the target resource to the requester sending the resource request. As in the example based on the computer, the target resource is sent to the computer used by the user, and correspondingly, the computer browser renders the target resource and displays the rendered target resource to the user.
In this embodiment, when receiving a resource request for accessing an intranet sent by a requester, a server sends the resource request to an agent program in a target internal network; acquiring a target resource corresponding to the resource request in the internal network through the agent program; and sending the target resource to the requester sending the resource request. That is, in the present application, a user can access resources in the intranet through interaction between the server and the agent located in the intranet. Compared with the prior art that the internal network is directly accessed through constructing the VPN or using the proxy server, under the scene that the lightweight intranet is accessed through, the method and the system can be realized only by means of the proxy program which is operated on the intranet, so that the resource cost of the intranet for realizing the penetration is greatly reduced, and the deployment is more flexible and convenient.
Referring to fig. 3, in a second embodiment of the intranet resource access method according to the present application, the intranet resource access method is applied to an agent program, and the intranet resource access method includes:
step S100, when a resource request of a requester sent by a server is received, initiating a request to a local intranet based on a target resource corresponding to the resource request to obtain a response result of the local intranet;
in this embodiment, the intranet resource access method is an agent. Specifically, the requesting party is an electronic device, which may be a computer, a smart phone, a tablet computer, or the like, when the user sends the resource request to the server through the internet. And the resource request may be in the form of a URL, such as https:// proxy. XXX. Com/target/resource.
Further, acquiring a resource identifier in the resource request; determining the target resource according to the resource identifier; and initiating a secondary resource request to the local intranet based on the target resource to obtain a response result of the local intranet based on the secondary resource request.
Specifically, the agent program obtains the resource identifier in the resource request, such as resource in https:// proxy.XXX.com/target/resource. And the agent program initiates a secondary resource request to the application under the local intranet according to the resource, for example, the application under the local intranet can be a Grafana component playing a monitoring role in the intranet, and the corresponding target resource is monitoring data of the Grafana component. And the agent program initiates a request to an internal site of the Grafana component, and the Grafana component returns monitoring data to the agent program, wherein the monitoring data is a response result of the local intranet based on the secondary resource request.
Further, before the step of initiating a request to a local intranet to obtain a response result of the local intranet based on a target resource corresponding to the resource request, the method includes: monitoring the communication state with the server; and if the communication state is in the communication interruption state, sending a TCP channel request to the server to establish a bidirectional TCP channel between the server and the server for data communication.
It should be noted that the agent is a program on any host in an intranet, and the agent detects a communication state between itself and the server after being started, and if the agent is in a communication interruption state (it should be noted that the reason for the communication interruption state may be that the agent is just started, or may be an interruption caused by a network line or other factors during use), the agent actively sends a TCP channel request to the server. Similarly, the agent program will perform three-way handshake with the server, thereby completing the two-way TCP channel recovery communication between the agent program and the server. It can be understood that, in the present application, the establishment of the TCP channel is preferably initiated from the agent to the server, so as to avoid excessive resource consumption (such as a public network IP Address) when the establishment of the TCP channel is initiated from the server to the agent. Meanwhile, in the embodiment, the resources of the user accessing the intranet through the internet are transmitted through the TCP channel, so that the excessive resources of the intranet or the excessive authority of the intranet can be prevented from being opened to the outside, and the safety of the intranet is enhanced.
Step S200, the response result is used as the target resource and sent to the server, so that the server sends the target resource to the requester.
Further, the response result is sent to the server as the target resource through a bidirectional TCP channel pre-established with the server.
Specifically, the agent program sends the response result (such as monitoring data) as the target resource to the server, the server sends the received target resource to the requester, that is, the computer used when the user sends the resource request, and the computer browser renders the target resource and displays the rendered target resource to the user.
In this embodiment, when receiving a resource request of a requester sent by a server, an agent initiates a request to a local intranet based on a target resource corresponding to the resource request to obtain a response result of the local intranet; and sending the response result as the target resource to the server so that the server sends the target resource to the requester. That is, in the present application, the user can access the resources in the intranet through the interaction between the server and the agent program in the intranet. Compare in the current internal network of direct access through setting up VPN or the proxy server who uses, under the scene that light-weight intranet penetrated the access, this application only need can realize with the help of the agent program of operation at the intranet to the significantly reduced intranet pierces through the resource cost who realizes, and deploys more nimble convenience.
In addition, an embodiment of the present application further provides an intranet resource access system, as shown in fig. 4, the intranet resource access system includes:
the server is used for sending a resource request to an agent program under a target internal network when receiving the resource request for accessing the internal network sent by a requester;
acquiring a target resource corresponding to the resource request in the internal network through the agent program;
sending the target resource to the requester sending the resource request;
the agent program is used for initiating a request to a local intranet based on a target resource corresponding to a resource request to obtain a response result of the local intranet when the resource request of a requester sent by a server is received;
and sending the response result as the target resource to the server so that the server sends the target resource to the requester.
Optionally, the server is further configured to:
acquiring an agent identifier in the resource request;
determining the agent program under the target internal network according to the agent identification;
and sending the resource request to the agent program through a pre-established bidirectional TCP channel.
Optionally, the server is further configured to:
receiving a TCP channel request sent by the agent program;
establishing the bidirectional TCP channel with the agent based on the TCP channel request.
Optionally, the agent is further configured to:
when a resource request of a requester sent by a server is received, initiating a request to a local intranet based on a target resource corresponding to the resource request to obtain a response result of the local intranet;
and sending the response result as the target resource to the server so that the server sends the target resource to the requester.
Optionally, the agent is further configured to:
acquiring a resource identifier in the resource request;
determining the target resource according to the resource identifier;
and initiating a secondary resource request to the local intranet based on the target resource to obtain a response result of the local intranet based on the secondary resource request.
Optionally, the agent is further configured to:
and sending the response result as the target resource to the server side through a bidirectional TCP channel pre-established with the server side.
Optionally, the agent is further configured to:
monitoring the communication state with the server;
and if the communication state is in the communication interruption state, sending a TCP channel request to the server to establish a bidirectional TCP channel between the server and the server for data communication.
Specifically, the intranet resource access system shown in fig. 4 includes a server, an agent, and an internal network, and may further include an electronic device used by a user. The method comprises the steps that a user sends a resource request to a server through electronic equipment (interaction between the electronic equipment and the server is carried out through the Internet), the server determines an agent program according to the resource request, the server sends the resource request to the determined agent program, the agent program initiates a request to an internal network based on target resources corresponding to the resource request, the internal network responds to the agent program with the target resources as results, the agent program sends the response results of the internal network to the server as the target resources (the interaction between the server and the agent program is completed through a pre-established bidirectional TCP channel, wherein the bidirectional TCP channel is established between the agent program and the server actively), and the server sends the target resources to the electronic equipment used by the user, so that the user can access intranet resources through the Internet.
In addition, the specific implementation processes and corresponding beneficial effects of the server and the agent in the intranet resource access system provided in this embodiment may also refer to the first embodiment and the second embodiment, and will not be described herein again.
In addition, this application embodiment also provides an intranet resource access device, where the intranet resource access device includes: the intranet resource access method comprises a memory, a processor and an intranet resource access program which is stored on the memory and can run on the processor, wherein the intranet resource access program realizes the steps of the intranet resource access method when being executed by the processor.
The specific implementation of the intranet resource access device in the present application is basically the same as each embodiment of the new intranet resource access method, and is not described herein again.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where an intranet resource access program is stored on the computer-readable storage medium, and when executed by a processor, the intranet resource access program implements the steps of the intranet resource access method as described above.
The specific implementation of the medium of the present application is substantially the same as that of each embodiment of the new intranet resource access method, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the advantages and disadvantages of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solution of the present application may be substantially or partially embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. An intranet resource access method is characterized in that the intranet resource access method is applied to a server side, and the method comprises the following steps:
when a resource request for accessing an intranet, which is sent by a requester, is received, the resource request is sent to an agent program in a target internal network;
acquiring a target resource corresponding to the resource request in the internal network through the agent program;
and sending the target resource to the requester sending the resource request.
2. The intranet resource access method according to claim 1, wherein the step of sending the resource request to an agent under a target intranet comprises:
acquiring an agent identifier in the resource request;
determining the agent program under the target internal network according to the agent identification;
and sending the resource request to the agent program through a pre-established bidirectional TCP channel.
3. The intranet resource access method according to claim 2, wherein before the step of sending the resource request to an agent under a target intranet, the method comprises:
receiving a TCP channel request sent by the agent program;
establishing the bidirectional TCP channel with the agent based on the TCP channel request.
4. An intranet resource access method is applied to an agent program, and the method comprises the following steps:
when a resource request of a requester sent by a server is received, initiating a request to a local intranet based on a target resource corresponding to the resource request to obtain a response result of the local intranet;
and sending the response result as the target resource to the server so that the server sends the target resource to the requester.
5. The intranet resource access method according to claim 4, wherein the step of initiating a request to a local intranet for obtaining a response result of the local intranet based on a target resource corresponding to the resource request comprises:
acquiring a resource identifier in the resource request;
determining the target resource according to the resource identifier;
and initiating a secondary resource request to the local intranet based on the target resource to obtain a response result of the local intranet based on the secondary resource request.
6. The intranet resource access method according to claim 5, wherein the step of sending the response result as the target resource to the server comprises:
and sending the response result as the target resource to the server side through a bidirectional TCP channel pre-established with the server side.
7. The intranet resource access method according to claim 6, wherein before the step of initiating a request to a local intranet for a response result of the local intranet based on a target resource corresponding to the resource request, the method comprises:
monitoring the communication state with the server;
and if the communication state is in the communication interruption state, sending a TCP channel request to the server to establish a bidirectional TCP channel between the server and the server for data communication.
8. An intranet resource access system, comprising:
the server is used for sending the resource request to an agent program under a target internal network when receiving the resource request for accessing the internal network sent by the requester;
acquiring a target resource corresponding to the resource request in the internal network through the agent program;
sending the target resource to the requester sending the resource request;
the agent program is used for initiating a request to a local intranet based on target resources corresponding to a resource request to obtain a response result of the local intranet when the resource request of a requester sent by a server is received;
and sending the response result as the target resource to the server so that the server sends the target resource to the requester.
9. An intranet resource access device, the intranet resource access device comprising: a memory, a processor and an intranet resource access program stored on the memory and operable on the processor, wherein the intranet resource access program when executed by the processor implements the steps of the intranet resource access method according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein an intranet resource access program is stored on the computer-readable storage medium, and when executed by a processor, the intranet resource access program implements the steps of the intranet resource access method according to any one of claims 1 to 7.
CN202211365529.4A 2022-11-03 2022-11-03 Intranet resource access method, system, equipment and computer readable storage medium Pending CN115426404A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211365529.4A CN115426404A (en) 2022-11-03 2022-11-03 Intranet resource access method, system, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211365529.4A CN115426404A (en) 2022-11-03 2022-11-03 Intranet resource access method, system, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115426404A true CN115426404A (en) 2022-12-02

Family

ID=84207300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211365529.4A Pending CN115426404A (en) 2022-11-03 2022-11-03 Intranet resource access method, system, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115426404A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117254977A (en) * 2023-11-16 2023-12-19 联通(广东)产业互联网有限公司 Network security monitoring method and system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110650214A (en) * 2019-10-21 2020-01-03 北京知道创宇信息技术股份有限公司 Agent method, device, electronic equipment and storage medium
CN111064742A (en) * 2019-12-28 2020-04-24 杭州安恒信息技术股份有限公司 Method, device and related equipment for realizing intranet access based on network agent
CN113468445A (en) * 2021-05-24 2021-10-01 北京旷视科技有限公司 Request processing method and device, electronic equipment and computer readable medium
CN115134105A (en) * 2021-03-26 2022-09-30 深圳云安宝科技有限公司 Resource configuration method and device of private network, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110650214A (en) * 2019-10-21 2020-01-03 北京知道创宇信息技术股份有限公司 Agent method, device, electronic equipment and storage medium
CN111064742A (en) * 2019-12-28 2020-04-24 杭州安恒信息技术股份有限公司 Method, device and related equipment for realizing intranet access based on network agent
CN115134105A (en) * 2021-03-26 2022-09-30 深圳云安宝科技有限公司 Resource configuration method and device of private network, electronic equipment and storage medium
CN113468445A (en) * 2021-05-24 2021-10-01 北京旷视科技有限公司 Request processing method and device, electronic equipment and computer readable medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117254977A (en) * 2023-11-16 2023-12-19 联通(广东)产业互联网有限公司 Network security monitoring method and system and storage medium
CN117254977B (en) * 2023-11-16 2024-03-01 联通(广东)产业互联网有限公司 Network security monitoring method and system and storage medium

Similar Documents

Publication Publication Date Title
CA2237333C (en) A method and apparatus for making a hypermedium interactive
US6662224B1 (en) Methods, systems and computer program products for providing alternative displays for networked devices
CN109688280B (en) Request processing method, request processing device, browser and storage medium
US9326115B2 (en) Information processing system, information processing method, mobile phone, server, and control method and control program thereof
CN109905380B (en) Node control method and related device in distributed system
CN110166439B (en) Equipment sharing method, terminal, router and server
US9686819B2 (en) Methods, devices and systems for router access control
US20180183840A1 (en) Method and apparatus for screen mirroring and casting using nfc connection
US20090307300A1 (en) Method and system for executing an application on a mobile device
CN110224920B (en) Sharing method and terminal equipment
US20140173121A1 (en) Method, device and computer-readable storage medium for client interaction of a network application executed by computer
CN115426404A (en) Intranet resource access method, system, equipment and computer readable storage medium
US10341346B2 (en) Information processing method, information processing apparatus, and storage medium
JP2009077031A (en) Portable communication device, mobile computer, system in organization, program, external communication connection control system, and external communication connection control method
JP4435089B2 (en) Provision of services to clients using wireless communication
KR20130084462A (en) Apparatas and method for managing service of providing server in a terminal
CN111556178A (en) Analytic system, method, equipment and storage medium
CN109165197B (en) File processing method, terminal and server
CN106878467A (en) The method and tele-control system of remote control equipment
CN111447208A (en) Information sharing method and electronic equipment
WO2006129474A1 (en) Data transfer method, transfer instructing communication terminal device, transfer controlling communication terminal device, transfer instructing program, and transfer controlling program
CN114258023A (en) Mesh networking method, device, equipment and readable storage medium
CN109450887B (en) Data transmission method, device and system
CN112333054A (en) Device communication method, device and computer readable storage medium
CN109688095B (en) Method, device and equipment for acquiring flow source information and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20221202

RJ01 Rejection of invention patent application after publication