Nothing Special   »   [go: up one dir, main page]

CN109617725B - VMess protocol configuration method, device and storage medium thereof - Google Patents

VMess protocol configuration method, device and storage medium thereof Download PDF

Info

Publication number
CN109617725B
CN109617725B CN201811528950.6A CN201811528950A CN109617725B CN 109617725 B CN109617725 B CN 109617725B CN 201811528950 A CN201811528950 A CN 201811528950A CN 109617725 B CN109617725 B CN 109617725B
Authority
CN
China
Prior art keywords
vmess
node
protocol configuration
protocol
sequence
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.)
Active
Application number
CN201811528950.6A
Other languages
Chinese (zh)
Other versions
CN109617725A (en
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.)
Beijing Knownsec Information Technology Co Ltd
Original Assignee
Beijing Knownsec Information 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 Beijing Knownsec Information Technology Co Ltd filed Critical Beijing Knownsec Information Technology Co Ltd
Priority to CN201811528950.6A priority Critical patent/CN109617725B/en
Publication of CN109617725A publication Critical patent/CN109617725A/en
Application granted granted Critical
Publication of CN109617725B publication Critical patent/CN109617725B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a VMess protocol configuration method, a VMess protocol configuration device and a storage medium thereof, and relates to the technical field of transmission protocol configuration. The VMess protocol configuration method comprises the following steps: displaying a plurality of node slot positions and a plurality of VMess nodes, wherein the node slot positions are connected in sequence; placing a selected VMess node in a selected node slot based on a VMess node placing sequence determined by a user, and generating sequenced VMess node data based on the node attribute, the node quantity and the node sequence of the selected VMess node, wherein the node sequence is the sequence of the selected node slot; and performing VMess protocol configuration based on the VMess node data. According to the VMess protocol configuration method, the automatic generation of the configuration file is realized through the selection of the node slot position and the VMess node in the page by the user, the manual VMess protocol configuration is avoided, the operation difficulty is reduced, and the VMess protocol configuration efficiency is improved.

Description

VMess protocol configuration method, device and storage medium thereof
Technical Field
The invention relates to the technical field of transmission protocol configuration, in particular to a VMess protocol configuration method, a VMess protocol configuration device and a storage medium thereof.
Background
With the rapid development of internet technology and the increasing value of personal privacy and other big data, the demand of internet users for data encryption transmission is gradually increased, VMess, as a symmetric encryption protocol for encrypting TCP network traffic, exhibits excellent capabilities in the aspects of feature confusion, platform compatibility, operation speed and the like, and is widely used in the field of encryption transmission.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for configuring a VMess protocol, and a storage medium thereof, so as to solve the problems of difficult VMess protocol configuration and low configuration efficiency in the prior art.
In a first aspect, an embodiment of the present invention provides a VMess protocol configuration method, where the VMess protocol configuration method includes: displaying a plurality of node slot positions and a plurality of VMess nodes, wherein the node slot positions are connected in sequence; placing a selected VMess node in a selected node slot based on a VMess node placing sequence determined by a user, and generating sequenced VMess node data based on the node attribute, the node quantity and the node sequence of the selected VMess node, wherein the node sequence is the sequence of the selected node slot; and performing VMess protocol configuration based on the VMess node data.
According to the embodiment, the automatic generation of the configuration file is realized through the selection of the node slot position and the VMess node in the page by the user, so that the VMess protocol configuration formed by any multiple VMess nodes can be automatically completed, the user is prevented from manually configuring the VMess protocol manually, the link establishing process of the VMess nodes is quick and visual, the technical threshold of the VMess protocol configuration is reduced, the configuration efficiency of the VMess protocol is improved, the wrong configuration of the configuration file by the user is avoided to a certain extent, the experience of the user using the VMess protocol is improved, and the stability and the safety of the VMess protocol are improved.
In summary of the first aspect, before performing VMess protocol configuration based on the VMess node data, the method further includes: and when receiving a confirmation instruction of the user to the selected VMess node and the node sequence, the front-end interface sends the VMess node data to a back-end application program.
In the embodiment, the VMess node data is identified through the front-end interface and is transmitted to the back-end application program for logic processing so as to complete the configuration of the VMess protocol, so that a user is prevented from directly configuring the VMess protocol in a Linux command environment with high operation difficulty commonly used by the VMess, the operation steps of VMess protocol configuration are simplified, and the protocol configuration efficiency is improved.
In summary of the first aspect, the VMess protocol configuration based on the VMess node data includes: the back-end application program determines a VMess protocol configuration file template based on the number of nodes in the VMess node data; and the back-end application program acquires the internet protocol address and the port number set by the user, and fills the node attribute and the node sequence in the VMess node data, the internet protocol address and the port number into the VMess protocol configuration file template to generate a configuration file.
The backend application program of the embodiment directly fills necessary simple data such as internet protocol addresses and port numbers input by a user and VMess node data into the corresponding VMess protocol configuration file template, so that the user does not need to perform complicated parameter setting, configuration error rate caused by user operation is reduced, and efficiency and accuracy of VMess protocol configuration are further improved.
In summary of the first aspect, before the backend application determines the VMess protocol configuration file template based on the number of nodes in the VMess node data, the method further includes: and the back-end application program receives the VMess node data, decodes the VMess node data and determines the validity and the safety of the VMess node data.
In the embodiment, the effectiveness and the safety of the VMess node data are verified after the VMess node data is decoded by the back-end application program, so that the follow-up operation is avoided when the VMess node data is wrong or invalid, the efficiency and the accuracy of the VMess protocol configuration are improved, and the stability and the safety of the VMess protocol configuration are ensured by the safety-based verification.
In summary of the first aspect, after the backend application receives the VMess node data, the method further includes: and the back-end application program sends VMess node data receiving determination information to the front-end interface so as to enable the front-end interface to display prompt information indicating that the VMess protocol is being configured.
The embodiment performs information feedback configured by the VMess protocol to the user through the back-end application program, thereby improving the user experience.
In summary of the first aspect, after the step of filling the node attribute, the node order, the internet protocol address, and the port number in the VMess node data into the VMess protocol configuration file template generation configuration file, the method further includes: and the back-end application program transmits the configuration file into a VMess client program to construct an encrypted transmission link.
According to the embodiment, after the VMess protocol configuration is completed, the encryption transmission link is constructed based on the configuration file, so that the node selection, the protocol configuration and the link construction are automatically carried out, a user does not need to carry out complicated manual operation, the VMess protocol configuration efficiency is improved, and the user experience is improved.
In summary of the first aspect, before the backend application transmits the configuration file to the VMess client to construct an encrypted transmission link, the method further includes: and the back-end application program adopts a grammar checking tool to determine that the configuration file has validity.
According to the embodiment, the validity of the configuration file is checked before the encryption transmission link is constructed, so that the stability of the encryption transmission link is improved.
In a second aspect, an embodiment of the present invention provides a VMess protocol configuration apparatus, where the VMess protocol configuration apparatus includes: the interface display module is used for displaying a plurality of node slot positions and a plurality of VMess nodes, and each node slot position is connected according to a preset sequence; the VMess node data processing device comprises a node setting module, a node selecting module and a VMess node selecting module, wherein the node setting module is used for placing a selected VMess node in a selected node slot position based on a VMess node placing sequence determined by a user, and generating sequenced VMess node data based on the node attribute, the node quantity and the node sequence of the selected VMess node, and the node sequence is the sequence of the selected node slot position; and the protocol configuration module is used for carrying out VMess protocol configuration based on the VMess node data.
In a second aspect, the VMess protocol configuration apparatus further includes a transmission module, where the transmission module is configured to instruct a front-end interface to send VMess node data to a back-end application program when receiving a confirmation instruction of a user on the selected VMess node and the node sequence.
In summary of the second aspect, the protocol configuration module includes: the template determining unit is used for indicating a back-end application program to determine a VMess protocol configuration file template based on the number of nodes in the VMess node data; and the configuration file generating unit is used for indicating the back-end application program to acquire the internet protocol address and the port number set by the user, and filling the node attribute and the node sequence in the VMess node data, the internet protocol address and the port number into the VMess protocol configuration file template to generate a configuration file.
In a second aspect, the protocol configuration module further includes a data checking unit, where the data checking unit is configured to instruct the backend application to receive the VMess node data, decode the VMess node data, and determine validity and security of the VMess node data.
In a second aspect, the protocol configuration module further includes a receipt unit, where the receipt unit is configured to instruct the back-end application to send VMess node data reception determination information to the front-end interface, so that the front-end interface displays a prompt message indicating that the VMess protocol is being configured.
In summary of the second aspect, the VMess protocol configuration apparatus further includes a link construction module, where the link construction module is configured to instruct a backend application program to transmit the configuration file into the VMess client program to construct an encrypted transmission link.
In summary of the second aspect, the link construction module is further configured to instruct a back-end application to determine that the configuration file has validity using a syntax checking tool.
In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium, where computer program instructions are stored, and when the computer program instructions are read and executed by a processor, the steps in the method in any aspect are performed.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic flowchart of a VMess protocol configuration method according to a first embodiment of the present invention;
FIG. 2 is a schematic drawing of a drag of a VMess node according to a first embodiment of the present disclosure;
fig. 3 is a flowchart illustrating a VMess protocol configuring step according to a first embodiment of the present invention;
fig. 4 is a schematic block diagram of a VMess protocol configuration apparatus 20 according to a second embodiment of the present invention;
fig. 5 is a block diagram of an electronic device 30 applicable to the embodiment of the present application according to a third embodiment of the present invention.
Icon: 20-VMess protocol configuration device; 21-an interface display module; 22-node setting module; 23-protocol configuration module; 30-an electronic device; 31-a memory; 32-a memory controller; 33-a processor; 34-peripheral interface; 35-an input-output unit; 36-an audio unit; 37-display unit.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
First embodiment
The applicant researches and discovers that VMess is used as an encryption communication protocol in V2Ray in more and more application scenes, and particularly, VMess is a stateless protocol, namely data can be directly transmitted between a client and a server without handshaking, and each data transmission has no influence on other data transmission before and after the data transmission. The VMess client side initiates a request, the server judges whether the request is from a legal client side, if the request is verified, the request is forwarded, and the obtained response is sent back to the client side. VMess uses an asymmetric format, i.e. requests from the client and responses from the server use different formats. However, since the VMess includes an incoming protocol and an outgoing protocol, and a deeply nested configuration parameter exists between the two protocols, the operation steps of manually configuring the protocols are complicated, a technical threshold is high, the configuration efficiency is low, and errors are easily caused when the configuration parameters are manually input.
In order to solve the above problem, a first embodiment of the present invention provides a VMess protocol configuration method. The execution main body of the VMess protocol configuration method can be a computer, an intelligent terminal, a cloud processor or other processing equipment with a logic operation function. It should be understood that, in this embodiment, the main body of the VMess protocol configuration method may be, but is not limited to, a VMess protocol configuration system including a front-end display device and a back-end processing device, where the front-end display device is configured to receive a user operation instruction and display a front-end page and other protocol related information, and the back-end processing device is configured to run a back-end application program to perform VMess protocol configuration.
Referring to fig. 1, fig. 1 is a schematic flow chart of a VMess protocol configuration method according to a first embodiment of the present invention, where the specific steps of the VMess protocol configuration method may be as follows:
step S12: and displaying a plurality of node slot positions and a plurality of VMess nodes, wherein the node slot positions are connected in sequence.
The node slot positions are used for placing VMess nodes, and when different VMess nodes are placed in the node slot positions in different orders, VMess transmission links determined based on the corresponding relation between the node slot positions and the VMess nodes are different.
Step S14: and placing the selected VMess node in the selected node slot based on the VMess node placing sequence determined by the user, and generating sequenced VMess node data based on the node attribute, the node quantity and the node sequence of the selected VMess node, wherein the node sequence is the sequence of the selected node slot.
In this embodiment, every two adjacent node slots are connected, after a user determines a corresponding relationship between a VMess node and the node slots, a connection sequence of the VMess node is a connection sequence of the node slots, and when an empty node slot in which the VMess node is not placed exists between the node slots in which the VMess node is placed, the empty node slot in which the VMess node is placed is skipped over to allow the node slots in which the VMess node is placed to be defaulted at both ends to be directly connected.
Step S16: and performing VMess protocol configuration based on the VMess node data.
In the above steps, VMess protocol configuration may be performed based on an Address (Address), a Port (Port), a user id (id), an extra id (alter id), a Security, a transmission protocol (Network), a path (WebSocket), and the like. The encryption mode (Security), the transmission protocol (Network), the path (WebSocket) and the like can be automatically obtained based on VMess node data.
According to the VMess protocol configuration method provided by the embodiment, the automatic generation of the configuration file is realized through the selection of the node slot position and the VMess node in the page by the user, so that the VMess protocol configuration formed by any plurality of VMess nodes can be automatically completed, the user is prevented from manually configuring the VMess protocol manually, the link construction process of the VMess nodes is quick and visualized, the technical threshold of the VMess protocol configuration is reduced, the configuration efficiency of the VMess protocol is improved, the user is prevented from wrongly configuring the configuration file to a certain extent, the experience of the user using the VMess protocol is improved, and the stability and the safety of the VMess protocol are improved.
For step S12, multiple node slots are connected in sequence, the connection relationship between the node slots may be represented by a connection line with an arrow, the shape of each node slot may be set to be circular, elliptical, square, triangular or other shapes, and each node slot has a name for distinguishing the node slot, such as "node slot 1", "node slot a", and the like. The VMess nodes can be displayed in a list, a graph or other forms, and besides numbers for distinguishing the VMess nodes, attribute parameters such as addresses of the VMess nodes can be displayed.
For step S14, the way for the user to select the VMess node placement order may be to drag a node, click a node slot to select a corresponding node, or other ways. Referring to fig. 2, fig. 2 is a schematic drawing diagram of a drag node of a VMess node according to a first embodiment of the present invention. And clicking the node slot position to select the corresponding node, namely clicking the node slot position needing to set the VMess node by using a mouse or other operation tools by a user, popping up a VMess node selection list or displaying the VMess node in a selectable state, and finishing the matching of the VMess node and the node slot position when the user selects a certain VMess node.
The node attribute in step S14 may include a node name, a server address, a port, an encryption method, a ping/packet loss rate, a delay, and the like of the VMess node. The number of the nodes is the total number of VMess nodes selected by a user. The node sequence is a connection sequence of the node slot positions where the VMess nodes are placed, optionally, if an empty node slot position where the VMess node is not placed exists between the node slot positions where the VMess nodes are placed, the node slot positions at two ends of the empty node slot position where the VMess nodes are placed are directly defaulted to be connected, and therefore protocol configuration errors caused by user operation errors are prevented.
As an optional implementation manner, before step S16, this embodiment further includes a data transmission step: and when a confirmation instruction of the user on the selected VMess node and the node sequence is received, the front-end interface sends the VMess node data to the back-end application program.
The transmission mode for transmitting the VMess node data to the backend application may be, but is not limited to, an HTTP request mode.
The back-end application in this embodiment may be, but is not limited to, a restful api (presentation layer state translation application programming interface). RESTful is a software architecture style and a design style, and is mainly used for software of a client and a server interaction class, and REST (Representational State Transfer, REST for short) describes a network system of an architecture style. The basic design concept of RESTful is: using nouns contained in the URL addresses to represent resources, and using HTTP verbs to represent action operation resources, where the URL is a Uniform Resource Identifier, and each Resource on the server, such as a document, an image, a video clip, and a program, is located by a Universal Resource Identifier (URI); common HTTP verbs are get (select) -fetch resource(s) from server, post (create) -create a resource at server, put (update) -update resource (client provides changed complete resource) at server, patch (update) -update resource (client provides changed property) at server, delete (delete) -delete resource from server. The client may be a front-end interface in this embodiment, and the server may be a back-end application in this embodiment.
An API (Application Programming Interface) is a predefined function, and is intended to provide the capability of an Application and a developer to access a set of routines based on certain software or hardware, without accessing source codes or understanding details of an internal working mechanism, thereby improving the efficiency of VMess protocol configuration and reducing the operation difficulty thereof.
Referring to fig. 3 for step S16, fig. 3 is a schematic flowchart of a VMess protocol configuring step according to a first embodiment of the present invention, where the VMess protocol configuring step may be as follows:
step S16.1: the backend application determines a VMess protocol configuration file template based on the number of nodes in the VMess node data.
In this embodiment, different VMess protocol configuration file templates are provided for different numbers of VMess nodes, and the VMess protocol configuration file templates are different for different numbers of VMess nodes, where configuration attributes and parameters such as a protocol (protocol), a protocol parameter (protocol _ param), an obfuscation (obfs), and an obfuscation parameter (obfs _ param) are different.
Step S16.2: and the back-end application program acquires the internet protocol address and the port number set by the user, and fills the node attribute and the node sequence in the VMess node data, the internet protocol address and the port number into the VMess protocol configuration file template to generate a configuration file.
The port number may be included in a node attribute in the VMess node data, and the Internet Protocol Address (Internet Protocol Address) is an IP Address of the user host, and the IP Address is a uniform Address format provided by an IP Protocol, and allocates a logical Address to each network and each host on the Internet, so as to shield a difference of physical addresses. Further, the server address in the node attribute is the IP address of the server, and may also include the geographical location of the server if necessary.
The backend application program of the embodiment directly fills necessary simple data such as internet protocol addresses and port numbers input by a user and VMess node data into the corresponding VMess protocol configuration file template, so that the user does not need to perform complicated parameter setting, configuration error rate caused by user operation is reduced, and efficiency and accuracy of VMess protocol configuration are further improved.
As an optional implementation manner, before step S16.1, this embodiment may further include the steps of: and the back-end application program receives the VMess node data, decodes the VMess node data and determines the validity and the safety of the VMess node data.
Further, after receiving the VMess node data, the back-end application program may also send VMess node data reception determination information to the front-end interface, so that the front-end interface displays a prompt message indicating that the VMess protocol is being configured, thereby improving the user experience.
In the embodiment, the effectiveness and the safety of the VMess node data are verified after the VMess node data is decoded by the back-end application program, so that the follow-up operation is avoided when the VMess node data is wrong or invalid, the efficiency and the accuracy of the VMess protocol configuration are improved, and the stability and the safety of the VMess protocol configuration are ensured by the safety-based verification.
As an optional implementation manner, after generating the configuration file, this embodiment may further include the following steps: and the back-end application program transmits the configuration file to the VMess client program to construct an encrypted transmission link.
Further, before the encrypted transmission link is created, the validity of the configuration file may be checked, and the tool for checking may be a syntax checking tool that conforms to the Vmess specification and is integrated in the backend application RESTful API.
Second embodiment
In order to cooperate with the VMess protocol configuration method provided in the first embodiment of the present invention, a VMess protocol configuration apparatus 20 is also provided in the second embodiment of the present invention.
Referring to fig. 4, fig. 4 is a block diagram of a VMess protocol configuration apparatus 20 according to a second embodiment of the present invention.
The VMess protocol configuration device 20 includes an interface display module 21, a node setting module 22, and a protocol configuration module 23.
And the interface display module 21 is configured to display a plurality of node slot positions and a plurality of VMess nodes, where each node slot position is connected according to a preset sequence.
And the node setting module 22 is configured to place the selected VMess node in the selected node slot based on the VMess node placement order determined by the user, and generate ordered VMess node data based on the node attribute, the node number, and the node order of the selected VMess node, where the node order is the order of the selected node slot.
And the protocol configuration module 23 is configured to perform VMess protocol configuration based on the VMess node data.
As an optional implementation manner, the VMess protocol configuration apparatus 20 further includes a transmission module, where the transmission module is configured to instruct the front-end interface to send VMess node data to the back-end application program when receiving a confirmation instruction of the user on the selected VMess node and the node sequence.
As an alternative embodiment, the protocol configuration module 23 includes: the template determining unit is used for indicating a back-end application program to determine a VMess protocol configuration file template based on the number of nodes in the VMess node data; and the configuration file generating unit is used for indicating a back-end application program to acquire an internet protocol address and a port number set by a user, and filling the node attribute and the node sequence in the VMess node data, the internet protocol address and the port number into the VMess protocol configuration file template to generate a configuration file.
The protocol configuration module 23 may further include a data checking unit, where the data checking unit is configured to instruct the backend application to receive the VMess node data, decode the VMess node data, and determine validity and security of the VMess node data.
Further, the protocol configuration module 23 further includes a receipt unit, where the receipt unit is configured to instruct the back-end application to send VMess node data reception determination information to the front-end interface, so that the front-end interface displays a prompt message indicating that the VMess protocol is being configured.
As an optional implementation manner, the VMess protocol configuring apparatus 20 provided in this embodiment may further include a link building module, where the link building module is configured to instruct the backend application to transmit the configuration file into the VMess client to build an encrypted transmission link.
The link construction module is further configured to instruct the back-end application to determine that the configuration file has validity using a syntax checking tool.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method, and will not be described in too much detail herein.
Third embodiment
Referring to fig. 5, fig. 5 is a block diagram of an electronic device 30 applicable to the embodiment of the present application according to a third embodiment of the present invention. The electronic device 30 provided in this embodiment may include a VMess protocol configuration apparatus 20, a memory 31, a storage controller 32, a processor 33, a peripheral interface 34, an input/output unit 35, an audio unit 36, and a display unit 37.
The memory 31, the memory controller 32, the processor 33, the peripheral interface 34, the input/output unit 35, the audio unit 36, and the display unit 37 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The VMess protocol configuration apparatus 20 includes at least one software functional module which may be stored in the memory 31 in the form of software or firmware (firmware) or fixed in an Operating System (OS) of the VMess protocol configuration apparatus 20. The processor 33 is used to execute executable modules stored in the memory 31, such as software functional modules or computer programs included in the VMess protocol configuration apparatus 20.
The Memory 31 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 31 is used for storing a program, and the processor 33 executes the program after receiving an execution instruction, and the method executed by the server defined by the flow process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 33, or implemented by the processor 33.
The processor 33 may be an integrated circuit chip having signal processing capabilities. The Processor 33 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor 33 may be any conventional processor or the like.
The peripheral interface 34 couples various input/output devices to the processor 33 as well as to the memory 31. In some embodiments, peripheral interface 34, processor 33, and memory controller 32 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The input and output unit 35 is used for providing input data for the user to realize the interaction of the user and the server (or the local terminal). The input/output unit 35 may be, but is not limited to, a mouse, a keyboard, and the like.
Audio unit 36 provides an audio interface to a user, which may include one or more microphones, one or more speakers, and audio circuitry.
The display unit 37 provides an interactive interface (e.g., a user interface) between the electronic device 30 and a user or for displaying image data to a user reference. In the present embodiment, the display unit 37 may be a liquid crystal display or a touch display. In the case of a touch display, the display can be a capacitive touch screen or a resistive touch screen, which supports single-point and multi-point touch operations. Supporting single-point and multi-point touch operations means that the touch display can sense touch operations from one or more locations on the touch display at the same time, and the sensed touch operations are sent to the processor 33 for calculation and processing.
It will be appreciated that the configuration shown in FIG. 5 is merely illustrative and that electronic device 30 may include more or fewer components than shown in FIG. 5 or have a different configuration than shown in FIG. 5. The components shown in fig. 5 may be implemented in hardware, software, or a combination thereof.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method, and will not be described in too much detail herein.
In summary, embodiments of the present invention provide a method, an apparatus, and a storage medium for configuring a VMess protocol, in which a node slot and a VMess node in a page are selected by a user to implement automatic generation of a configuration file, so that a VMess protocol configuration composed of any plurality of VMess nodes can be automatically completed, and the user is prevented from manually configuring the VMess protocol, so that a link establishment process of the VMess node is fast and visualized, a technical threshold of the VMess protocol configuration is reduced, configuration efficiency of the VMess protocol is improved, and a user is prevented from erroneously configuring a configuration file to a certain extent, experience of the user using the VMess protocol is improved, and stability and security of the VMess protocol are improved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A VMess protocol configuration method, characterized in that the method comprises:
displaying a plurality of node slot positions and a plurality of VMess nodes, wherein the node slot positions are connected in sequence;
placing a selected VMess node in a selected node slot based on a VMess node placing sequence determined by a user, and generating sequenced VMess node data based on the node attribute, the node quantity and the node sequence of the selected VMess node, wherein the node sequence is the sequence of the selected node slot;
and performing VMess protocol configuration based on the VMess node data.
2. The VMess protocol configuration method of claim 1, wherein prior to the VMess protocol configuration based on the VMess node data, the method further comprises:
and when receiving a confirmation instruction of the user to the selected VMess node and the node sequence, the front-end interface sends the VMess node data to a back-end application program.
3. The VMess protocol configuration method of claim 1, wherein the VMess protocol configuration based on the VMess node data includes:
the back-end application program determines a VMess protocol configuration file template based on the number of nodes in the VMess node data;
and the back-end application program acquires the internet protocol address and the port number set by the user, and fills the node attribute and the node sequence in the VMess node data, the internet protocol address and the port number into the VMess protocol configuration file template to generate a configuration file.
4. The VMess protocol configuration method of claim 3, wherein before the backend application determines the VMess protocol configuration file template based on the number of nodes in the VMess node data, the method further comprises:
and the back-end application program receives the VMess node data, decodes the VMess node data and determines the validity and the safety of the VMess node data.
5. The VMess protocol configuration method of claim 4, wherein after the backend application receives the VMess node data, the method further comprises:
and the back-end application program sends VMess node data receiving determination information to a front-end interface so as to enable the front-end interface to display prompt information indicating that the VMess protocol is being configured.
6. The VMess protocol configuration method of claim 3, wherein after the step of filling the node attribute, the node order, the internet protocol address and the port number in the VMess node data into the VMess protocol configuration file template generation configuration file, the method further comprises:
and the back-end application program transmits the configuration file into a VMess client program to construct an encrypted transmission link.
7. The method of claim 6, wherein before the backend application transmits the configuration file to the VMess client to construct an encrypted transmission link, the method further comprises:
and the back-end application program adopts a grammar checking tool to determine that the configuration file has validity.
8. A VMess protocol configuration apparatus, the apparatus comprising:
the interface display module is used for displaying a plurality of node slot positions and a plurality of VMess nodes, and each node slot position is connected according to a preset sequence;
the VMess node data processing device comprises a node setting module, a node selecting module and a VMess node selecting module, wherein the node setting module is used for placing a selected VMess node in a selected node slot position based on a VMess node placing sequence determined by a user, and generating sequenced VMess node data based on the node attribute, the node quantity and the node sequence of the selected VMess node, and the node sequence is the sequence of the selected node slot position;
and the protocol configuration module is used for carrying out VMess protocol configuration based on the VMess node data.
9. The VMess protocol configuration apparatus of claim 8, wherein the protocol configuration module comprises:
the template determining unit is used for indicating a back-end application program to determine a VMess protocol configuration file template based on the number of nodes in the VMess node data;
and the configuration file generating unit is used for indicating the back-end application program to acquire the internet protocol address and the port number set by the user, and filling the node attribute and the node sequence in the VMess node data, the internet protocol address and the port number into the VMess protocol configuration file template to generate a configuration file.
10. A computer-readable storage medium having computer program instructions stored thereon which, when read and executed by a processor, perform the steps of the method of any of claims 1-7.
CN201811528950.6A 2018-12-13 2018-12-13 VMess protocol configuration method, device and storage medium thereof Active CN109617725B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811528950.6A CN109617725B (en) 2018-12-13 2018-12-13 VMess protocol configuration method, device and storage medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811528950.6A CN109617725B (en) 2018-12-13 2018-12-13 VMess protocol configuration method, device and storage medium thereof

Publications (2)

Publication Number Publication Date
CN109617725A CN109617725A (en) 2019-04-12
CN109617725B true CN109617725B (en) 2021-12-14

Family

ID=66008336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811528950.6A Active CN109617725B (en) 2018-12-13 2018-12-13 VMess protocol configuration method, device and storage medium thereof

Country Status (1)

Country Link
CN (1) CN109617725B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111428462B (en) * 2020-03-04 2023-02-28 厦门科灿信息技术有限公司 Communication protocol template construction method and terminal equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945013A (en) * 2010-09-20 2011-01-12 中兴通讯股份有限公司 System and method for implementing server configuration management
CN102904751A (en) * 2012-09-25 2013-01-30 华为软件技术有限公司 Network topology view generating method and device
CN105117215A (en) * 2015-08-05 2015-12-02 深圳市元征科技股份有限公司 Development method and device of automobile function
CN105653245A (en) * 2014-11-13 2016-06-08 朗新科技股份有限公司 Code automatic generation system, device and method
CN105677626A (en) * 2014-11-20 2016-06-15 北京世纪好未来教育科技有限公司 Automatic generation method and device for configuration files of courseware
CN107844331A (en) * 2017-11-23 2018-03-27 腾讯科技(成都)有限公司 Generate the method, apparatus and equipment of boot configuration file
CN108172284A (en) * 2017-12-29 2018-06-15 上海联影医疗科技有限公司 The method of adjustment of magnetic resonance parameters card interface and magnetic resonance parameters card interface

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731288B (en) * 2012-10-16 2017-04-12 杭州华三通信技术有限公司 Message forwarding method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945013A (en) * 2010-09-20 2011-01-12 中兴通讯股份有限公司 System and method for implementing server configuration management
CN102904751A (en) * 2012-09-25 2013-01-30 华为软件技术有限公司 Network topology view generating method and device
CN105653245A (en) * 2014-11-13 2016-06-08 朗新科技股份有限公司 Code automatic generation system, device and method
CN105677626A (en) * 2014-11-20 2016-06-15 北京世纪好未来教育科技有限公司 Automatic generation method and device for configuration files of courseware
CN105117215A (en) * 2015-08-05 2015-12-02 深圳市元征科技股份有限公司 Development method and device of automobile function
CN107844331A (en) * 2017-11-23 2018-03-27 腾讯科技(成都)有限公司 Generate the method, apparatus and equipment of boot configuration file
CN108172284A (en) * 2017-12-29 2018-06-15 上海联影医疗科技有限公司 The method of adjustment of magnetic resonance parameters card interface and magnetic resonance parameters card interface

Also Published As

Publication number Publication date
CN109617725A (en) 2019-04-12

Similar Documents

Publication Publication Date Title
US11385779B2 (en) Autofill for a user device
EP2013575B1 (en) Communication device for emulating a behavior of a navigation device
JP6968261B2 (en) Computer-implemented methods, information transmission methods, data transmission computing devices, information transmission servers, non-transient, computer-readable media and computer-implemented systems.
JP6495467B2 (en) Perform operations on file repositories located in different authentication domains using REST (Representational State Transfer) compliant clients
EP4303707A1 (en) Application sharing method and apparatus
US20080208853A1 (en) Processing device for detecting a certain computer command
TWI621078B (en) Business object verification method and device
JP2016507803A (en) Homepage forming method, peripheral device, and homepage forming system
CN109617725B (en) VMess protocol configuration method, device and storage medium thereof
CN110740118B (en) Protocol for initiating sessions with partner sites
CN103248654A (en) Negotiation method, device and system for virtual desktop service parameters
US7783471B2 (en) Communication device for emulating a behavior of a navigation device
JP6059307B1 (en) Terminal device, information transmission method, and information transmission program
US9516148B2 (en) Computer-readable recording medium, information management method and information management device
JP2020177613A (en) Path construction system, path construction method, and program
JP2011175413A (en) Web screen restoration device, web screen restoration method and web screen restoration program

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
CB02 Change of applicant information

Address after: Room 311501, Unit 1, Building 5, Courtyard 1, Futong East Street, Chaoyang District, Beijing

Applicant after: Beijing Zhichuangyu Information Technology Co., Ltd.

Address before: Room 311501, Unit 1, Building 5, Courtyard 1, Futong East Street, Chaoyang District, Beijing

Applicant before: Beijing Knows Chuangyu Information Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant