CN114520780A - Access method and device for proxy server - Google Patents
Access method and device for proxy server Download PDFInfo
- Publication number
- CN114520780A CN114520780A CN202210107386.0A CN202210107386A CN114520780A CN 114520780 A CN114520780 A CN 114520780A CN 202210107386 A CN202210107386 A CN 202210107386A CN 114520780 A CN114520780 A CN 114520780A
- Authority
- CN
- China
- Prior art keywords
- test
- proxy server
- access
- router
- network
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000012360 testing method Methods 0.000 claims abstract description 199
- 238000004891 communication Methods 0.000 claims abstract description 29
- 238000012545 processing Methods 0.000 claims abstract description 27
- 238000013519 translation Methods 0.000 claims abstract description 12
- 238000004590 computer program Methods 0.000 claims description 12
- 239000000126 substance Substances 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 6
- 239000003795 chemical substances by application Substances 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000013522 software testing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The disclosure provides an access method and device for a proxy server, and relates to the technical field of computers. The specific implementation scheme is as follows: establishing communication connection between the router and a proxy server by configuring a network address translation table in the router, wherein the proxy server is used for processing the access flow of a test terminal to a specified test case or a test environment; and switching the access network of the target test terminal to the first network provided by the router so that the target test terminal accesses the proxy server and forwards the access traffic of the target test terminal to the specified test case or test environment to the proxy server for processing.
Description
Technical Field
The present disclosure relates to the field of computer technology, and may be used in a proxy server access scenario in software testing.
Background
In daily requirement testing, an agent tool (such as an agent server) is often used to switch test cases or test environments. The use of the proxy tool requires access to the proxy server, and the method of accessing the proxy server is generally in the form of using a plug-in the system network configuration or browser. However, this access method is not so simple, and especially after the mobile terminal configures the agent, some models may need to switch the network back and forth to be effective or switch the flight mode to be effective.
Disclosure of Invention
The present disclosure provides an access method and apparatus, a device, a storage medium, and a computer program product for a proxy server.
According to an aspect of the present disclosure, there is provided an access method for a proxy server, including: establishing communication connection between a router and a proxy server by configuring a network address translation table in the router, wherein the proxy server is used for processing access flow of a test terminal to a specified test case or test environment; and switching the access network of the target test terminal to the first network provided by the router so that the target test terminal accesses the proxy server and forwards the access traffic of the target test terminal to the specified test case or the test environment to the proxy server for processing.
According to another aspect of the present disclosure, there is provided an access apparatus for a proxy server, including: the router comprises a configuration module, a proxy server and a test module, wherein the configuration module is used for establishing communication connection between the router and the proxy server by configuring a network address translation table in the router, and the proxy server is used for processing access flow of a test terminal to a specified test case or a test environment; and the switching module is used for switching the access network of the target test end to the first network provided by the router so as to enable the target test end to access the proxy server and forward the access traffic of the target test end to the specified test case or the test environment to the proxy server for processing.
According to another aspect of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method according to the embodiments of the present disclosure.
According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements a method according to embodiments of the present disclosure.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 illustrates a system architecture diagram suitable for embodiments of the present disclosure;
fig. 2 illustrates a flow chart of an access method for a proxy server according to an embodiment of the present disclosure;
fig. 3 illustrates a block diagram of an access system for a proxy server according to an embodiment of the present disclosure;
FIG. 4 illustrates a block diagram of an electronic device used to implement embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In consideration of the problems of complex operation, poor user experience and the like of the proxy server access method provided by daily requirement tests in the related art, the embodiment of the disclosure provides a simple and quick proxy server access method.
By adopting the proxy server access scheme provided by the embodiment of the disclosure, a user only needs to bind and establish communication connection between the router and the designated proxy server in advance by configuring a network address translation table (NAT table) of the router, and when a daily requirement test needs to be performed, the purpose of accessing the test terminal to the proxy server can be realized by directly accessing the test terminal to the wireless network provided by the router.
In addition, by adopting the proxy server access scheme provided by the embodiment of the disclosure, a user does not need to input complicated and difficult-to-remember information such as a domain name, an IP address, a port number, a login account number and a password of the proxy server through network configuration of a system or a plug-in a browser, and does not need to switch the network and switch the flight mode back and forth, so that the complexity of proxy access operation can be simplified, the user experience is improved, and the technical problem of complicated operation of accessing the proxy server in daily requirement tests is solved.
The present disclosure will be described in detail below with reference to the drawings and specific embodiments.
A system architecture of an access method and apparatus for a proxy server suitable for embodiments of the present disclosure is introduced as follows.
Fig. 1 illustrates a system architecture of an access method and apparatus for a proxy server suitable for embodiments of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, but does not mean that the embodiments of the present disclosure may not be used in other environments or scenarios.
As shown in fig. 1, a system architecture 100 suitable for embodiments of the present disclosure may include: a mobile terminal 101, a wireless router 102 (router), a proxy server 103, front-end static resource servers 104 and 105, and a back-end API server 106; and wireless router 107 (router), proxy server 108, front-end static resource server 109, and back-end API server 1010.
In the embodiment of the present disclosure, the proxy server 103 and the server 104, the proxy server 103 and the server 105, and the proxy server 103 and the server 106 may be pre-bound, and the wireless router 102 and the proxy server 103 may be pre-bound. The servers 104, 105, and 106 are used to provide corresponding test cases or test environments.
Similarly, in embodiments of the present disclosure, the proxy server 108 and the server 109, and the proxy server 108 and the server 1010 may be pre-bound, while also pre-binding the wireless router 107 and the proxy server 108. The servers 109 and 1010 are used to provide another corresponding test case or test environment.
When a user needs to access a test case or a test environment provided by the service terminals 104, 105 and 106, the mobile terminal 101 may be accessed to a wireless network provided by the wireless router 102; when the user needs to quit the access to the test case or the test environment provided by the service terminals 104, 105 and 106, the mobile terminal 101 may be disconnected from the wireless router 102, or the mobile terminal 101 may be connected to a wireless network provided by another wireless router (including the wireless router 107), or the mobile terminal 101 may be connected to a 5G network, etc.
After accessing the test cases or test environments provided by the service terminals 104, 105 and 106, when the user needs to access the test cases or test environments provided by the service terminals 109 and 1010, the wireless network currently accessed by the mobile terminal 101 (the wireless network provided by the wireless router 102) can be directly switched to the wireless network provided by the wireless router 107. Similarly, when the user needs to quit the access to the test case or the test environment provided by the service terminals 109 and 1010, the mobile terminal 101 may be disconnected from the wireless router 107, or the mobile terminal 101 may be connected to a wireless network provided by another wireless router (including the wireless router 102), or the mobile terminal 101 may be connected to a 5G network, etc.
It should be understood that the number of mobile terminals, wireless routes, and proxy servers, etc. in fig. 1 are merely illustrative. There may be any number of mobile terminals, wireless routing and proxy servers, etc., as desired for an implementation.
According to an embodiment of the present disclosure, there is provided an access method for a proxy server.
Fig. 2 illustrates a flowchart of an access method for a proxy server according to an embodiment of the present disclosure.
As shown in FIG. 2, the method 200 may include operations S210-S220.
In operation S210, a communication connection is established between a router (wireless router) and a proxy server by configuring a network address translation table in the router, wherein the proxy server is used for processing access traffic of a test port to a specified test case or test environment.
In operation S220, the access network of the target test end is switched to the first network provided by the router, so that the target test end accesses the proxy server and forwards the access traffic of the target test end to the specified test case or test environment to the proxy server for processing.
It should be understood that SSH is an abbreviation for Secure Shell, as established by the IETF's Network Group (Network Working Group); SSH is a security protocol built on an application layer basis. SSH is a relatively reliable protocol that is dedicated to providing security for telnet sessions and other web services. The SSH protocol can effectively prevent the problem of information leakage in the remote management process. Therefore, in operation S210, a designated router can be logged in through SSH, and then a network address translation table (NAT table) in the router is configured.
Further, in the embodiment of the present disclosure, the method for configuring the NAT table in the router includes a NAT table configuration method known in the art, as long as the router and the specified proxy server can be bound, so that after a communication connection is established between the router and the specified proxy server, the traffic in the local intranet of the router can be forwarded to the proxy server bound to the router for processing. In the embodiment of the present disclosure, after the router is bound with the proxy server bound therewith and communication connection is established, the access traffic of the router in the local intranet to the test instance or the test environment bound with the proxy server bound therewith may be forwarded to the proxy server for processing.
As an alternative embodiment, the router described above includes: and open source firmware of a Linux kernel is supported. Further, the version of the Linux kernel in the open source firmware should be greater than 2.6.28. This is because the Linux kernel of the source firmware in the router has a relatively high version, and the open configuration authority of the router is high enough to successfully implement the binding between the router and the specified proxy server by configuring the NAT table in the router.
After the router binds with the designated proxy server and establishes communication connection, any test end can access the test case or test environment of the proxy server agent by accessing the wireless network provided by the router. It should be understood that, in the embodiments of the present disclosure, the test case or the test environment of the proxy server to which the proxy server acts may perform data packet capturing, log obtaining, and the like.
For example, referring back to fig. 1, after the wireless router 102 is bound with the proxy server 103 and a communication connection is established, the mobile terminal 101 as a testing terminal can access the test case or test environment (the test case or test environment provided by the service terminals 104, 105 and 106) proxied by the proxy server 103 by accessing the wireless network provided by the wireless router 102.
As an alternative embodiment, the target testing end includes: a mobile phone end and/or a PC end.
It should be understood that when the user connects to the wireless network of the previously configured router, the user has access to the proxy server bound to the router at that time, and thus other configurations can be implemented at the proxy server and access to the test environment or test case can be performed.
Through the embodiment of the disclosure, on the premise that a certain wireless router is configured, any test end can be directly accessed to the wireless network of the router to access the corresponding proxy server, so that the access to the test case or test environment of the proxy is realized. Moreover, any test end can quickly and unconsciously continue to use the original proxy server after accessing the wireless network provided by the configured wireless router.
In summary, in the embodiment of the present disclosure, a wireless router device supporting a higher version Linux kernel is mainly added between a PC/mobile terminal serving as a test terminal and a proxy server, so as to implement an unaware connection between the test terminal and the proxy server in a manner of switching a wireless network. In other words, for the access of the proxy server, only the wireless network of the testing end needs to be switched, which is transparent and imperceptible to the user, and especially for the configuration of the mobile end, the scheme is more convenient to operate.
As an alternative embodiment, the method further comprises: under the condition that the target test end needs to quit the specified test example or test environment, switching the access network of the target test end from the first network to other networks; or the target test terminal is disconnected from the communication connection with the first network.
It should be understood that, in the embodiments of the present disclosure, the other networks described above include at least one of a 5G network, a wireless network not used for the test case or the test environment, and a wireless network used for the test case or the test environment.
For example, referring back to fig. 1, after the wireless router 102 is bound with the proxy server 103 and a communication connection is established, the mobile terminal 101, as a testing terminal, accesses the wireless network provided by the wireless router 102, and then can access the testing instance or testing environment proxied by the proxy server 103. The user can switch the connection network of the mobile terminal 101 at any time, for example, access it to a 5G network or other wireless networks (such as the wireless network provided by the wireless router 107, etc.), without using the mobile terminal 101 to continue accessing the test case or test environment proxied by the proxy server 103. Alternatively, the user may turn off the wireless network access switch at any time without using the mobile terminal 101 to continue accessing the test case or the test environment proxied by the proxy server 103, so that the mobile terminal 101 disconnects the communication connection with the wireless router 102.
Through the embodiment of the disclosure, the proxy server can be simply, flexibly and transparently accessed or quit the connection with the proxy server without perception by switching the wireless network in the daily requirement test.
Or, as another optional embodiment, the method further includes: and under the condition that the test case or the test environment of the target test end needs to be switched to other specified test cases or test environments, switching the access network of the target test end from the first network to a second network provided by other routers, so that the target test end accesses to other corresponding proxy servers and forwards the access traffic of the target test end to other specified test cases or test environments to other corresponding proxy servers for processing. The other routers and the corresponding other proxy servers realize the establishment of communication connection by configuring network address translation tables in the other routers, and the corresponding other proxy servers are used for processing the access traffic of the test terminal to other test cases or test environments.
In the embodiment of the disclosure, the test terminal can be simply and flexibly switched from one test case or test environment to another test case or test environment quickly by switching the wireless network on the PC terminal/mobile terminal as the test terminal.
For example, referring back to fig. 1, after the wireless router 102 is bound with the proxy server 103 and a communication connection is established, the mobile terminal 101, as a testing terminal, accesses the wireless network provided by the wireless router 102, and then can access the testing instance or testing environment proxied by the proxy server 103. In the case where it is necessary to use the mobile terminal 101 to access the test case or test environment proxied by the proxy server 108, the user can switch the connection network of the mobile terminal 101 at any time, that is, switch the wireless network to the wireless network provided by the wireless router 107. After the wireless network is successfully handed over, the mobile terminal 101 can access the test case or test environment of the proxy server 108.
Through the embodiment of the disclosure, different test examples or test environments can be switched on the PC terminal/mobile terminal more simply, flexibly and quickly in daily requirement tests.
Or, as another alternative embodiment, the target test end includes at least one test end. Correspondingly, the switching of the access network of the target test terminal to the first network provided by the router includes: and switching the access network of at least one test end to the first network provided by the router.
By the embodiment of the disclosure, under the scene that a plurality of persons are required to test the same test case or test environment, the unified configuration of the proxy server can be realized, namely, after one person configures the relevant settings of the proxy server and the router, other persons can directly use the proxy server without repeated configuration.
According to the embodiment of the disclosure, the disclosure also provides an access device for the proxy server.
Fig. 3 illustrates a block diagram of an access system for a proxy server according to an embodiment of the present disclosure.
As shown in fig. 3, the apparatus 300 may include: a configuration module 310 and a switching module 320.
And a configuration module 310, configured to establish a communication connection between the router and a proxy server by configuring a network address translation table in the router, where the proxy server is configured to process access traffic of a test port to a specified test case or test environment.
And a switching module 320, configured to switch the access network of the target test end to the first network provided by the router, so that the target test end accesses the proxy server and forwards the access traffic of the specified test case or test environment to the proxy server for processing.
As an optional embodiment, the switching module is further configured to: under the condition that the target test end needs to quit the specified test example or test environment, switching the access network of the target test end from the first network to other networks; or the target test terminal is disconnected from the communication connection with the first network.
As another optional embodiment, the switching module is further configured to: and under the condition that the test case or the test environment of the target test end needs to be switched to other specified test cases or test environments, switching the access network of the target test end from the first network to a second network provided by other routers, so that the target test end accesses to other corresponding proxy servers and forwards the access traffic of the target test end to the other specified test cases or test environments to the other corresponding proxy servers for processing. The other router and the corresponding other proxy server are configured with a network address translation table in the other router to establish communication connection, and the corresponding other proxy server is used for processing access traffic of the test terminal to the other test case or the test environment.
As an alternative embodiment, the router includes: and open source firmware of a Linux kernel is supported.
As an alternative embodiment, the target test end comprises at least one test end; the switching module is further configured to: and switching the access network of the at least one test end to the first network provided by the router.
As an alternative embodiment, the target test end includes: a mobile phone end and/or a PC end.
It should be understood that the device embodiments of the present disclosure correspond to the method embodiments of the present disclosure, and the technical problems to be solved and the technical effects to be achieved also correspond to the same or similar, and the device embodiments of the present disclosure are not described herein again.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 4 shows a schematic block diagram of an example electronic device 400 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 4, the electronic device 400 includes a computing unit 401 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)402 or a computer program loaded from a storage unit 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 can also be stored. The computing unit 401, ROM 402, and RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
A number of components in the electronic device 400 are connected to the I/O interface 405, including: an input unit 406 such as a keyboard, a mouse, or the like; an output unit 407 such as various types of displays, speakers, and the like; a storage unit 408 such as a magnetic disk, optical disk, or the like; and a communication unit 409 such as a network card, modem, wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the protection scope of the present disclosure.
Claims (10)
1. An access method for a proxy server, comprising:
establishing communication connection between a router and a proxy server by configuring a network address translation table in the router, wherein the proxy server is used for processing access flow of a test terminal to a specified test case or test environment; and
and switching the access network of the target test terminal to the first network provided by the router so that the target test terminal accesses the proxy server and forwards the access traffic of the target test terminal to the specified test case or the test environment to the proxy server for processing.
2. The method of claim 1, further comprising: in case it is desired to exit the target test terminal from the specified test case or test environment,
switching the access network of the target test terminal from the first network to other networks; or
And disconnecting the communication connection between the target test terminal and the first network.
3. The method of claim 1, further comprising: in case that it is necessary to switch the test case or test environment of the target test end to other specified test case or test environment,
switching the access network of the target test terminal from the first network to a second network provided by other routers, so that the target test terminal accesses to a corresponding other proxy server and forwards the access traffic of the target test terminal to the other specified test case or test environment to the corresponding other proxy server for processing,
and the other routers and the corresponding other proxy servers realize the establishment of communication connection by configuring network address translation tables in the other routers, and the corresponding other proxy servers are used for processing the access traffic of the test terminal to the other test cases or the test environments.
4. The method of claim 1, wherein the router comprises: and open source firmware of a Linux kernel is supported.
5. The method of claim 1, wherein:
the target test end comprises at least one test end;
the switching the access network of the target test terminal to the first network provided by the router comprises: and switching the access network of the at least one test end to the first network provided by the router.
6. The method of claim 1, wherein the target test site comprises: a mobile phone end and/or a PC end.
7. An access system for a proxy server, comprising:
the router comprises a configuration module, a proxy server and a test module, wherein the configuration module is used for establishing communication connection between the router and the proxy server by configuring a network address translation table in the router, and the proxy server is used for processing access flow of a test terminal to a specified test case or a test environment; and
and the switching module is used for switching the access network of the target test end to the first network provided by the router so as to enable the target test end to access the proxy server and forward the access flow of the target test end to the specified test case or the test environment to the proxy server for processing.
8. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
9. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-6.
10. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210107386.0A CN114520780A (en) | 2022-01-28 | 2022-01-28 | Access method and device for proxy server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210107386.0A CN114520780A (en) | 2022-01-28 | 2022-01-28 | Access method and device for proxy server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114520780A true CN114520780A (en) | 2022-05-20 |
Family
ID=81596656
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210107386.0A Pending CN114520780A (en) | 2022-01-28 | 2022-01-28 | Access method and device for proxy server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114520780A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116055555A (en) * | 2023-01-28 | 2023-05-02 | 深圳市明源云科技有限公司 | Proxy server setting method, proxy server setting device, electronic equipment and readable storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030055962A1 (en) * | 2001-07-06 | 2003-03-20 | Freund Gregor P. | System providing internet access management with router-based policy enforcement |
CN101884207A (en) * | 2007-11-30 | 2010-11-10 | 法国电信公司 | Be used to safeguard the method and apparatus of ATT |
US8108554B1 (en) * | 2002-05-16 | 2012-01-31 | F5 Networks, Inc. | Method and system for automatically mapping secure network address translations |
CN105376107A (en) * | 2014-08-29 | 2016-03-02 | 腾讯科技(深圳)有限公司 | Terminal test method and proxy server |
CN107580080A (en) * | 2017-09-15 | 2018-01-12 | 北京奇艺世纪科技有限公司 | A kind of connection method of test environment and device |
CN107959601A (en) * | 2018-01-04 | 2018-04-24 | 深圳市富途网络科技有限公司 | A kind of method and system for being switched fast network test environment |
CN111277457A (en) * | 2020-01-15 | 2020-06-12 | 平安银行股份有限公司 | Method, device and equipment for switching network environment and readable storage medium |
CN113535586A (en) * | 2021-08-04 | 2021-10-22 | 杭州遥望网络科技有限公司 | Test environment switching method, device, equipment and readable storage medium |
-
2022
- 2022-01-28 CN CN202210107386.0A patent/CN114520780A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030055962A1 (en) * | 2001-07-06 | 2003-03-20 | Freund Gregor P. | System providing internet access management with router-based policy enforcement |
US8108554B1 (en) * | 2002-05-16 | 2012-01-31 | F5 Networks, Inc. | Method and system for automatically mapping secure network address translations |
CN101884207A (en) * | 2007-11-30 | 2010-11-10 | 法国电信公司 | Be used to safeguard the method and apparatus of ATT |
CN105376107A (en) * | 2014-08-29 | 2016-03-02 | 腾讯科技(深圳)有限公司 | Terminal test method and proxy server |
CN107580080A (en) * | 2017-09-15 | 2018-01-12 | 北京奇艺世纪科技有限公司 | A kind of connection method of test environment and device |
CN107959601A (en) * | 2018-01-04 | 2018-04-24 | 深圳市富途网络科技有限公司 | A kind of method and system for being switched fast network test environment |
CN111277457A (en) * | 2020-01-15 | 2020-06-12 | 平安银行股份有限公司 | Method, device and equipment for switching network environment and readable storage medium |
CN113535586A (en) * | 2021-08-04 | 2021-10-22 | 杭州遥望网络科技有限公司 | Test environment switching method, device, equipment and readable storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116055555A (en) * | 2023-01-28 | 2023-05-02 | 深圳市明源云科技有限公司 | Proxy server setting method, proxy server setting device, electronic equipment and readable storage medium |
CN116055555B (en) * | 2023-01-28 | 2023-08-04 | 深圳市明源云科技有限公司 | Proxy server setting method, proxy server setting device, electronic equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210120076A1 (en) | Method, apparatus and system for transmitting data | |
US10623505B2 (en) | Integrating service appliances without source network address translation in networks with logical overlays | |
CN105430108B (en) | Test environment access method and proxy server | |
US10075531B2 (en) | Connecting public cloud applications with private network resources | |
CN110489192B (en) | Remote communication method and device and electronic equipment | |
RU2498520C2 (en) | Method of providing peer-to-peer communication on web page | |
CN113905030B (en) | Intranet and extranet communication method and device, intranet terminal, proxy server and storage medium | |
US9565161B2 (en) | Automatically replacing localhost as hostname in URL with fully qualified domain name or IP address | |
KR20150013860A (en) | Clientless cloud computing | |
US9413560B2 (en) | Differentiated quality of service using security as a service | |
CN110177128B (en) | Data transmission system and method for establishing VPN connection, terminal and VPN proxy thereof | |
CN113691602B (en) | Service processing method, system, device, equipment and medium based on cloud mobile phone | |
CN113691589B (en) | Message transmission method, device and system | |
CN111698346B (en) | Private network address conversion method and device, private network gateway and storage medium | |
CN114520780A (en) | Access method and device for proxy server | |
US11743236B2 (en) | Generating an application-based proxy auto configuration | |
CN113612643B (en) | Network configuration method, device and equipment of cloud mobile phone and storage medium | |
US20210281656A1 (en) | Applying application-based policy rules using a programmable application cache | |
CN101581984A (en) | Equipment and method with virtual mouse guide based on remote cross-network | |
CN111008041B (en) | Command processing method and device for host, electronic equipment and storage medium | |
CN113726881A (en) | Communication connection establishment method, related device and computer program product | |
CN112929453A (en) | Method and device for sharing session data | |
CN115037572B (en) | Application request identification method and device | |
CN115664842B (en) | Communication link setting method, device, equipment and storage medium | |
CN108418852B (en) | Access control method, proxy server, and 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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20220520 |