CN109617725A - A kind of VMess protocol configuration method, device and its storage medium - Google Patents

A kind of VMess protocol configuration method, device and its storage medium Download PDF

Info

Publication number
CN109617725A
CN109617725A CN201811528950.6A CN201811528950A CN109617725A CN 109617725 A CN109617725 A CN 109617725A CN 201811528950 A CN201811528950 A CN 201811528950A CN 109617725 A CN109617725 A CN 109617725A
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.)
Granted
Application number
CN201811528950.6A
Other languages
Chinese (zh)
Other versions
CN109617725B (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

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 present invention provides a kind of VMess protocol configuration method, device and its storage mediums, are related to transport protocol configuration technology field.The VMess protocol configuration method includes: that the multiple Node Slots of display and multiple VMess nodes, the multiple Node Slot are sequentially connected;Selected VMess node is placed in selected Node Slot based on the VMess node placement order that user determines, nodal community, number of nodes and node sequence based on the selected VMess node generate the VMess node data for sequencing sequence, and the node sequence is the sequence of the selected Node Slot;VMess protocol configuration is carried out based on the VMess node data.Automatically generating for configuration file is realized in the selection of Node Slot and VMess node that the VMess protocol configuration method is carried out in the page by user, it avoids using manually progress VMess protocol configuration, operation difficulty is reduced, VMess protocol configuration efficiency is improved.

Description

A kind of VMess protocol configuration method, device and its storage medium
Technical field
The present invention relates to transport protocol configuration technology fields, in particular to a kind of VMess protocol configuration method, dress It sets and its storage medium.
Background technique
As the value of the fast development of Internet technology and individual privacy and other big datas is higher and higher, interconnection Demand of the network users to Data Encryption Transmission is also gradually increased, and VMess is encrypted symmetrical as a kind of pair of TCP network flow Cryptographic protocol, obscure in feature, platform compatibility, in terms of all show outstanding ability, led in encrypted transmission Domain is widely used, but simultaneously because of its complicated manual configuration process, the configuration parameter of depth nesting and elusive various Technical characteristic, results in higher using threshold, there is a problem of configuring that difficulty is high, allocative efficiency is low.
Summary of the invention
In view of this, the embodiment of the present invention is designed to provide a kind of VMess protocol configuration method, device and its storage Medium, to solve the problems, such as that VMess protocol configuration difficulty existing in the prior art is big, allocative efficiency is low.
In a first aspect, the embodiment of the invention provides a kind of VMess protocol configuration method, the protocol configuration side VMess Method includes: that the multiple Node Slots of display and multiple VMess nodes, the multiple Node Slot are sequentially connected;It is determined based on user VMess node placement order selected VMess node is placed in selected Node Slot, based on described selected The nodal community of VMess node, number of nodes and node sequence generate the VMess node data for sequencing sequence, the node Sequence is the sequence of the selected Node Slot;VMess protocol configuration is carried out based on the VMess node data.
Configuration file is realized in the selection of Node Slot and VMess node that above-described embodiment is carried out in the page by user Automatically generate, so as to automatically complete the VMess protocol configuration that any number of VMess nodes are constituted, avoid using Family is made VMess node building link process quickly and visualized, reduced by the configuration of manually progress VMess agreement The technical threshold of VMess protocol configuration, improves the allocative efficiency of VMess agreement, and avoids user couple to a certain extent The error configurations of configuration file improve the experience that user uses VMess agreement, improve the stability and peace of VMess agreement Quan Xing.
It is comprehensive in a first aspect, it is described VMess protocol configuration is carried out based on the VMess node data before, the side Method further include: when receiving confirmation instruction of the user to selected VMess node and the node sequence, front end The VMess node data is sent to backend applications by interface.
Above-described embodiment identifies VMess node data and transmits it to backend applications and patrolled by front-end interface Processing is collected to complete the configuration of VMess agreement, avoids user directly in the biggish Linux command of the common operation difficulty of VMess VMess agreement is configured in environment, is simplified the operating procedure of VMess protocol configuration, is improved protocol configuration efficiency.
Synthesis is in a first aspect, described carry out VMess protocol configuration based on the VMess node data, comprising: backend application Program determines VMess protocol profile template based on the number of nodes in the VMess node data;The backend application journey Sequence obtains the Internet protocol address and port numbers of the user setting, by nodal community, the section in the VMess node data Dot sequency and the Internet protocol address, the port numbers insert the VMess protocol profile template generation configuration File.
Internet protocol address, port numbers that the backend applications of above-described embodiment input user etc. are necessary simple Data and VMess node data directly insert corresponding VMess protocol profile template, do not need user and carry out cumbersome ginseng Number setting, reduces the configuration error rate as caused by user's operation, further improves the efficiency and standard of VMess protocol configuration True rate.
Synthesis in the backend applications based on the number of nodes in the VMess node data in a first aspect, determined Before VMess protocol profile template, the method also includes: the backend applications receive the VMess number of nodes According to, and the VMess node data is decoded, determine the validity and safety of the VMess node data.
Backend applications carry out validity to it after decoding VMess node data in above-described embodiment and safety is tested Card, avoid VMess node data exist mistake, it is invalid when carry out subsequent operation, improve VMess protocol configuration efficiency and Accuracy, while the verifying based on safety ensure that the stability and safety of VMess protocol configuration.
Synthesis in a first aspect, after the backend applications receive the VMess node data, also wrap by the method Include: the backend applications send VMess node data to the front-end interface and receive determining information, so that the front end circle Face display indicates the prompt information that VMess agreement is configuring.
Above-described embodiment carries out the information feedback that VMess agreement is configuring to user by backend applications, improves User experience.
It is comprehensive in a first aspect, the nodal community by the VMess node data, node sequence and it is described mutually Networking protocol address, the port numbers are inserted after the VMess protocol profile template generation configuration file, the method Further include: the configuration file is passed to VMess client-side program to construct encrypted transmission link by the backend applications.
Above-described embodiment carries out the building of encrypted transmission link after completing VMess protocol configuration based on configuration file, with Node selection, protocol configuration and link building automation are carried out, complicated cumbersome manual operation is carried out without user, improves VMess protocol configuration efficiency, improves user experience.
Synthesis is in a first aspect, be passed to VMess client-side program for the configuration file in the backend applications with structure It builds before encrypted transmission link, the method also includes: the backend applications are matched using described in grammar checking tools determination It sets file and has validity.
Above-described embodiment carries out validity check to configuration file before constructing encrypted transmission link, improves encryption and passes The stability of transmission link.
Second aspect, the embodiment of the invention provides a kind of VMess protocol configuration device, the VMess protocol configuration dress Setting includes: interface display module, for showing that multiple Node Slots and multiple VMess nodes, each Node Slot are suitable by presetting Sequence connection;Node setup module, the VMess node placement order for being determined based on user are put selected VMess node It sets in selected Node Slot, nodal community, number of nodes and node sequence based on the selected VMess node The VMess node data for sequencing sequence is generated, the node sequence is the sequence of the selected Node Slot;Protocol configuration Module, for carrying out VMess protocol configuration based on the VMess node data.
Comprehensive second aspect, the VMess protocol configuration device further includes transmission module, and the transmission module is for connecing When receiving confirmation instruction of the user to selected VMess node and the node sequence, indicate front-end interface by institute It states VMess node data and is sent to backend applications.
Comprehensive second aspect, the protocol configuration module includes: template determination unit, is used to indicate backend applications base Number of nodes in the VMess node data determines VMess protocol profile template;Configuration file generation unit is used The Internet protocol address and port numbers of the user setting are obtained in the instruction backend applications, the VMess is saved Nodal community, node sequence and the Internet protocol address, the port numbers in point data insert the VMess agreement Profile template generates configuration file.
Comprehensive second aspect, the protocol configuration module further includes data detection unit, and the data detection unit is used for It indicates that the backend applications receive the VMess node data, and decodes the VMess node data, described in determination The validity and safety of VMess node data.
Comprehensive second aspect, the protocol configuration module further includes receipt unit, and the receipt unit is used to indicate described Backend applications send VMess node data to the front-end interface and receive determining information, so that the front-end interface is shown Indicate the prompt information that VMess agreement is configuring.
Comprehensive second aspect, the VMess protocol configuration device further include link building module, and the link constructs module It is used to indicate backend applications and the configuration file is passed to VMess client-side program to construct encrypted transmission link.
Comprehensive second aspect, the link building module are also used to indicate that backend applications are true using grammar checking tools The fixed configuration file has validity.
The third aspect, it is described computer-readable the embodiment of the invention also provides a kind of computer-readable storage medium It takes and is stored with computer program instructions in storage medium, when the computer program instructions are read and run by a processor, hold Step in any of the above-described aspect the method for row.
Other features and advantages of the present invention will be illustrated in subsequent specification, also, partly be become from specification It is clear that by implementing understanding of the embodiment of the present invention.The objectives and other advantages of the invention can be by written theory Specifically noted structure is achieved and obtained in bright book, claims and attached drawing.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of flow diagram for VMess protocol configuration method that first embodiment of the invention provides;
Fig. 2 is a kind of dragging schematic diagram for VMess node that invention first embodiment provides;
Fig. 3 is a kind of flow diagram for VMess protocol configuration step that first embodiment of the invention provides;
Fig. 4 is a kind of module diagram for VMess protocol configuration device 20 that second embodiment of the invention provides;
Fig. 5 is a kind of knot for electronic equipment 30 that can be applied in the embodiment of the present application that third embodiment of the invention provides Structure block diagram.
Icon: 20-VMess protocol configuration device;21- interface display module;22- node setup module;23- agreement Configuration module;30- electronic equipment;31- memory;32- storage control;33- processor;34- Peripheral Interface;35- Input-output unit;36- audio unit;37- display unit.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
First embodiment
Through the applicant the study found that VMess is as the more and more applied fields of the encryption communication agreement in V2Ray Scape is used, and specifically, VMess is a stateless protocol, i.e., not needing to shake hands between client and server can be direct Data are transmitted, other data of the data transmission each time on before and after are transmitted without influence.The client of VMess initiates one Secondary request, server judge that the request whether from a legal client, is such as verified, then forwards the request, and handle The response of acquisition sends back to client.VMess uses asymmetric format, the i.e. response of the request of client sending and server end Different formats is used.But since VMess includes incoming agreement out and outflow agreement, there is depth nesting between the two Configuration parameter, it is cumbersome by the operating procedure complexity for manually carrying out protocol configuration, there is higher technical threshold, there is configuration Low efficiency is manually entered the problem of configuration parameter is easy error.
To solve the above-mentioned problems, first embodiment of the invention provides a kind of VMess protocol configuration method.The VMess The executing subject of protocol configuration method can for computer, intelligent terminal, cloud processor or other have logical operation function Processing equipment.It should be understood that the executing subject of VMess protocol configuration method can be but be not limited to wrap in the present embodiment VMess protocol configuration system containing front end display device and back-end processing equipment, wherein front end display device is for receiving user Operational order and display front end page and other agreement relevant informations, back-end processing equipment for run backend applications into Row VMess protocol configuration.
Referring to FIG. 1, Fig. 1 is a kind of process signal for VMess protocol configuration method that first embodiment of the invention provides Figure, the specific steps of the VMess protocol configuration method can be such that
Step S12: show that multiple Node Slots and multiple VMess nodes, multiple Node Slots are sequentially connected.
For above-mentioned Node Slot for placing VMess node, different VMess nodes is placed on each section in a different order It is different from the VMess transmission link that the corresponding relationship of VMess node determines based on the Node Slot when in point slot position.
Step S14: selected VMess node is placed on selected by the VMess node placement order determined based on user In Node Slot in, nodal community, number of nodes based on selected VMess node and node sequence generation sequence sequence VMess node data, node sequence is the sequence of selected Node Slot.
Each adjacent two Node Slot is connected in the present embodiment, and user is in pair for determining VMess node and Node Slot After should being related to, the order of connection of VMess node is the order of connection of Node Slot, and is placed with the node slot of VMess node When there is the empty Node Slot for not placing VMess node between position, skips sky Node Slot default both ends and be placed with VMess section The Node Slot of point is directly connected to.
Step S16: VMess protocol configuration is carried out based on VMess node data.
Address (Address), port (Port), User ID (ID), additional ID (Alter can be based in above-mentioned steps ID), cipher mode (Security), transport protocol (Network) and path (WebSocket) etc. carry out VMess protocol configuration. Wherein, cipher mode (Security), transport protocol (Network) and path (WebSocket) etc. can be based on VMess node Data obtain automatically.
VMess protocol configuration method provided in this embodiment passes through the Node Slot and VMess that user carries out in the page Automatically generating for configuration file is realized in the selection of node, is constituted so as to automatically complete any number of VMess nodes VMess protocol configuration, avoid user by manually carry out VMess agreement configuration, make VMess node building chain pass by Journey quickly and visualizes, and reduces the technical threshold of VMess protocol configuration, improves the allocative efficiency of VMess agreement, and User is avoided to a certain extent to the error configurations of configuration file, is improved the experience that user uses VMess agreement, is improved The stability and safety of VMess agreement.
For step S12, multiple Node Slots are sequentially connected, and the connection relationship between each Node Slot can use band arrow The connecting line of head indicates that the shape of each Node Slot can be set to round, oval, rectangular, triangle or other shapes, Each Node Slot is with the title for distinguishing Node Slot, such as " Node Slot 1 ", " Node Slot A " simultaneously.VMess Can being shown using list, chart or other forms for node, in addition to the number for distinguishing VMess node, can also show There are the property parameters such as the address of node VMess.
For step S14, user selects the mode of VMess node placement order can be and pulls node, click node slot Position selection corresponding node or other modes.Wherein, pulling node, that is, user uses mouse or other operational instrument by VMess node Dragging is moved to corresponding Node Slot, referring to FIG. 2, Fig. 2 is a kind of dragging for VMess node that invention first embodiment provides Drag schematic diagram.Node Slot selection corresponding node, that is, user is clicked to need to be arranged using mouse or the click of other operational instrument The Node Slot of VMess node, pop-up VMess node selective listing or the VMess node having been displayed are in that can be used by selection state Family selects the matching that the VMess node and Node Slot are completed when a certain VMess node.
Nodal community in step S14 may include the nodename, server address, port, encryption of the VMess node Mode, ping/ packet loss, delay etc..Number of nodes is the total quantity for the VMess node that user chooses.Node sequence is multiple The order of connection for the Node Slot that VMess node is placed, optionally, be placed between the Node Slot of VMess node if In the presence of the empty Node Slot for not placing VMess node, then that directly defaults the sky Node Slot both ends is placed with VMess node Node Slot connection causes protocol configuration mistake to prevent from making mistakes due to user's operation.
As an alternative embodiment, the present embodiment is before step S16, further includes data transmission step: connecing When receiving confirmation instruction of the user to selected VMess node and node sequence, front-end interface sends out VMess node data It send to backend applications.
The above-mentioned transmission mode that VMess node data is sent to backend applications can be but be not limited to HTTP and asks Seek mode.
Backend applications in the present embodiment can be but be not limited to RESTfulAPI (presentation layer condition conversion application Program Interfaces).Wherein, RESTful is a kind of software architecture style, design style, is mainly used for client and server The software of interactive class, REST (English: Representational State Transfer, abbreviation REST) describe a frame The network system of structure pattern.The Basic Design theory of RESTful are as follows: resource is indicated using the noun for including in the address URL, is used HTTP verb indicates motion action resource, wherein URL, that is, uniform resource identifier, each resource on server, such as text Shelves, image, video clip, program are all by a universal resource identifier (Uniform Resource Identifier, abbreviation " URI ") it is positioned;Common HTTP verb has GET (SELECT)-to take out resource (one or more), POST from server (CREATE)-server create a resource, PUT (UPDATE)-server update resource (client provide change after Full resource), PATCH (UPDATE)-is in server update resource (client provide change attribute), DELETE (DELETE)-from server delete resource.Above-mentioned client can be the front-end interface in the present embodiment, and above-mentioned server can To be the backend applications in the present embodiment.
API (Application Programming Interface, application programming interface) is some pre-defined Function, it is therefore an objective to provide application program and developer based on certain software or hardware be able to access one group of routine ability, and It is not necessarily to access source code again, or understands the details of internal work mechanism, so that the efficiency of the present embodiment VMess protocol configuration is improved, Reduce its operation difficulty.
For step S16, referring to FIG. 3, Fig. 3 is a kind of VMess protocol configuration step that first embodiment of the invention provides Rapid flow diagram, the VMess protocol configuration step can be such that
Step S16.1: backend applications determine VMess protocol configuration based on the number of nodes in VMess node data File template.
There is different VMess protocol profile templates for the VMess node of different number in the present embodiment, VMess protocol profile template is directed to the VMess node of different number, agreement (protocol) therein, protocol parameter (protocol_param), it is different with parameter to obscure the configuration attributes such as (obfs) and blending parameter (obfs_param).
Step S16.2: backend applications obtain the Internet protocol address and port numbers of user setting, and VMess is saved Nodal community, node sequence and Internet protocol address, port numbers in point data insert VMess protocol profile template Generate configuration file.
Wherein, port numbers may be embodied in the nodal community in VMess node data, and above-mentioned Internet protocol address (Internet Protocol Address) is the IP address of subscriber's main station, and IP address is a kind of unification that IP agreement provides Address format, it is one logical address of each network and each host assignment on internet, shields physics with this The difference of address.Further, the server address in nodal community is then the IP address of the server, if necessary can be with Geographical location comprising the server.
Internet protocol address, port numbers that the backend applications of above-described embodiment input user etc. are necessary simple Data and VMess node data directly insert corresponding VMess protocol profile template, do not need user and carry out cumbersome ginseng Number setting, reduces the configuration error rate as caused by user's operation, further improves the efficiency and standard of VMess protocol configuration True rate.
As an alternative embodiment, the present embodiment is before step S16.1, it can be comprising steps of rear end be answered VMess node data is received with program, and decodes VMess node data, determines the validity and safety of VMess node data Property.
Further, after backend applications receive VMess node data, backend applications can be with forward end interface It sends VMess node data and receives determining information, so that front-end interface display indicates the prompt that VMess agreement is configuring Information, to improve the usage experience of user.
Backend applications carry out validity to it after decoding VMess node data in above-described embodiment and safety is tested Card, avoid VMess node data exist mistake, it is invalid when carry out subsequent operation, improve VMess protocol configuration efficiency and Accuracy, while the verifying based on safety ensure that the stability and safety of VMess protocol configuration.
As an alternative embodiment, after generating configuration file, after the present embodiment can also include the following steps: Hold application program that configuration file is passed to VMess client-side program to construct encrypted transmission link.
Further, the present embodiment, can also be first to the effective of configuration file before the creation for carrying out encrypted transmission link Property test, the tool for inspection can be meets Vmess specification and be integrated in backend applications RESTful API Grammar checking tools.
Second embodiment
For the VMess protocol configuration method for cooperating first embodiment of the invention to provide, second embodiment of the invention is also mentioned A kind of VMess protocol configuration device 20 is supplied.
Referring to FIG. 4, the module that Fig. 4 is a kind of VMess protocol configuration device 20 that second embodiment of the invention provides is shown It is intended to.
VMess protocol configuration device 20 includes interface display module 21, node setup module 22 and protocol configuration module 23.
Interface display module 21, for showing multiple Node Slots and multiple VMess nodes, each Node Slot is by default It is linked in sequence.
Node setup module 22, the VMess node that the VMess node placement order for being determined based on user will be selected It is placed in selected Node Slot, nodal community, number of nodes and node sequence based on selected VMess node are raw At the VMess node data for sequencing sequence, node sequence is the sequence of selected Node Slot.
Protocol configuration module 23, for carrying out VMess protocol configuration based on VMess node data.
As an alternative embodiment, VMess protocol configuration device 20 further includes transmission module, transmission module is used for When receiving confirmation instruction of the user to selected VMess node and node sequence, instruction front-end interface saves VMess Point data is sent to backend applications.
As an alternative embodiment, protocol configuration module 23 includes: template determination unit, it is used to indicate rear end and answers VMess protocol profile template is determined based on the number of nodes in VMess node data with program;Configuration file generates single Member is used to indicate Internet protocol address and port numbers that backend applications obtain user setting, will be in VMess node data Nodal community, node sequence and Internet protocol address, port numbers filling VMess protocol profile template generation configuration File.
Protocol configuration module 23 can also include data detection unit, and data detection unit is used to indicate backend applications VMess node data is received, and decodes VMess node data, determines the validity and safety of VMess node data.
Further, protocol configuration module 23 further includes receipt unit, receipt unit be used to indicate backend applications to Front-end interface sends VMess node data and receives determining information, so that front-end interface display indicates what VMess agreement was configuring Prompt information.
As an alternative embodiment, VMess protocol configuration device 20 provided in this embodiment can also include chain Road constructs module, and link building module is used to indicate backend applications and configuration file is passed to VMess client-side program with structure Build encrypted transmission link.
Link building module is also used to indicate that backend applications determine that configuration file has using grammar checking tools Effect property.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description Specific work process, no longer can excessively be repeated herein with reference to the corresponding process in preceding method.
3rd embodiment
Referring to figure 5., Fig. 5 is a kind of electronics that can be applied in the embodiment of the present application that third embodiment of the invention provides The structural block diagram of equipment 30.Electronic equipment 30 provided in this embodiment may include VMess protocol configuration device 20, memory 31, storage control 32, processor 33, Peripheral Interface 34, input-output unit 35, audio unit 36, display unit 37.
Memory 31, storage control 32, processor 33, Peripheral Interface 34, input-output unit 35, audio unit 36, Each element of display unit 37 is directly or indirectly electrically connected between each other, to realize the transmission or interaction of data.For example, these Element can be realized by one or more communication bus or signal wire be electrically connected between each other.VMess protocol configuration device 20 VMess agreement can be stored in memory 31 or be solidificated in including at least one in the form of software or firmware (firmware) to match Set the software function module in the operating system (operating system, OS) of device 20.Processor 33 is for executing storage The executable module stored in device 31, such as software function module or computer program that VMess protocol configuration device 20 includes.
Wherein, memory 31 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read- Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..Wherein, memory 31 is for storing program, and processor 33 executes described program after receiving and executing instruction, Method performed by the server that the stream process that aforementioned any embodiment of the embodiment of the present invention discloses defines can be applied to handle In device 33, or realized by processor 33.
Processor 33 can be a kind of IC chip, the processing capacity with signal.Above-mentioned processor 33 can be with It is general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;Can also be digital signal processor (DSP), specific integrated circuit (ASIC), Ready-made programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hard Part component.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor It can be microprocessor or the processor 33 be also possible to any conventional processor etc..
Various input/output devices are couple processor 33 and memory 31 by Peripheral Interface 34.In some embodiments In, Peripheral Interface 34, processor 33 and storage control 32 can be realized in one single chip.In some other example, They can be realized by independent chip respectively.
Input-output unit 35 is used to be supplied to the friendship that user input data realizes user and server (or local terminal) Mutually.Input-output unit 35 may be, but not limited to, the equipment such as mouse and keyboard.
Audio unit 36 provides a user audio interface, may include one or more microphones, one or more raises Sound device and voicefrequency circuit.
Display unit 37 provided between electronic equipment 30 and user an interactive interface (such as user interface) or It is referred to for display image data to user.In this example it is shown that unit 37 can be liquid crystal display or touch-control is shown Device.It can be the capacitance type touch control screen or resistance type touch control screen etc. of support single-point and multi-point touch operation if touch control display. Single-point and multi-point touch operation is supported to refer to that touch control display can sense one or more positions on the touch control display Place while the touch control operation generated, and the touch control operation that this is sensed transfers to processor 33 to be calculated and handled.
It is appreciated that structure shown in fig. 5 is only to illustrate, electronic equipment 30 may also include it is more than shown in Fig. 5 or Less component, or with the configuration different from shown in Fig. 5.Each component shown in Fig. 5 can using hardware, software or its Combination is realized.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description Specific work process, no longer can excessively be repeated herein with reference to the corresponding process in preceding method.
In conclusion the embodiment of the invention provides a kind of VMess protocol configuration method, device and its storage medium, it should Automatically generating for configuration file is realized in the selection of Node Slot and VMess node that method is carried out in the page by user, from And the VMess protocol configuration that any number of VMess nodes are constituted can be automatically completed, avoid user by manually The configuration for carrying out VMess agreement makes VMess node building link process quickly and visualizes, reduces VMess protocol configuration Technical threshold improves the allocative efficiency of VMess agreement, and user is avoided to match the mistake of configuration file to a certain extent It sets, improves the experience that user uses VMess agreement, improve the stability and safety of VMess agreement.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product, Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access The various media that can store program code such as memory (RAM, Random Access Memory), magnetic or disk.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter exist Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and explained.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.

Claims (10)

1. a kind of VMess protocol configuration method, which is characterized in that the described method includes:
Show that multiple Node Slots and multiple VMess nodes, the multiple Node Slot are sequentially connected;
Selected VMess node is placed on selected Node Slot based on the VMess node placement order that user determines In, nodal community, number of nodes and node sequence based on the selected VMess node generate the VMess for sequencing sequence Node data, the node sequence are the sequence of the selected Node Slot;
VMess protocol configuration is carried out based on the VMess node data.
2. VMess protocol configuration method according to claim 1, which is characterized in that be based on the VMess node described Before data carry out VMess protocol configuration, the method also includes:
When receiving confirmation instruction of the user to selected VMess node and the node sequence, front-end interface The VMess node data is sent to backend applications.
3. VMess protocol configuration method according to claim 1, which is characterized in that described to be based on the VMess number of nodes According to progress VMess protocol configuration, comprising:
Backend applications determine VMess protocol profile template based on the number of nodes in the VMess node data;
The backend applications obtain the Internet protocol address and port numbers of the user setting, by the VMess node Nodal community, node sequence and the Internet protocol address, the port numbers in data are inserted the VMess agreement and are matched It sets file template and generates configuration file.
4. VMess protocol configuration method according to claim 3, which is characterized in that be based in the backend applications Before number of nodes in the VMess node data determines VMess protocol profile template, the method also includes:
The backend applications receive the VMess node data, and decode the VMess node data, described in determination The validity and safety of VMess node data.
5. VMess protocol configuration method according to claim 4, which is characterized in that received in the backend applications After the VMess node data, the method also includes:
The backend applications send VMess node data to the front-end interface and receive determining information, so that the front end Interface display indicates the prompt information that VMess agreement is configuring.
6. VMess protocol configuration method according to claim 3, which is characterized in that described by the VMess number of nodes Nodal community, node sequence and the Internet protocol address, the port numbers in insert the VMess protocol configuration After file template generates configuration file, the method also includes:
The configuration file is passed to VMess client-side program to construct encrypted transmission link by the backend applications.
7. VMess protocol configuration method according to claim 6, which is characterized in that in the backend applications by institute Before the incoming VMess client-side program of configuration file is stated to construct encrypted transmission link, the method also includes:
The backend applications determine that the configuration file has validity using grammar checking tools.
8. a kind of VMess protocol configuration device, which is characterized in that described device includes:
Interface display module, for showing that multiple Node Slots and multiple VMess nodes, each Node Slot are connected by preset order It connects;
Selected VMess node is placed on by node setup module, the VMess node placement order for being determined based on user In selected Node Slot, nodal community, number of nodes and node sequence based on the selected VMess node are generated The VMess node data of sequence is sequenced, the node sequence is the sequence of the selected Node Slot;
Protocol configuration module, for carrying out VMess protocol configuration based on the VMess node data.
9. VMess protocol configuration device according to claim 8, which is characterized in that the protocol configuration module includes:
Template determination unit is used to indicate backend applications and is determined based on the number of nodes in the VMess node data VMess protocol profile template;
Configuration file generation unit is used to indicate the Internet protocol address that the backend applications obtain the user setting And port numbers, by nodal community, node sequence and the Internet protocol address, described in the VMess node data Port numbers insert the VMess protocol profile template generation configuration file.
10. a kind of computer-readable storage medium, which is characterized in that be stored with meter in the computer-readable storage medium Calculation machine program instruction, when the computer program instructions are read and run by a processor, perform claim requires any one of 1-7 Step in the method.
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 true CN109617725A (en) 2019-04-12
CN109617725B 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)

Cited By (1)

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

Citations (8)

* 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
US20150156108A1 (en) * 2012-10-16 2015-06-04 Hangzhou H3C Technologies Co., Ltd. Forwarding Packets
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

Patent Citations (8)

* 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
US20150156108A1 (en) * 2012-10-16 2015-06-04 Hangzhou H3C Technologies Co., Ltd. Forwarding Packets
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

Cited By (2)

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

Also Published As

Publication number Publication date
CN109617725B (en) 2021-12-14

Similar Documents

Publication Publication Date Title
CN105099811B (en) Interface testing method and device
CN105847988B (en) Video sharing method and apparatus
CN104767714B (en) A kind of ID and the correlating method of user resources information, terminal and system
CN105099861A (en) User emotion-based display control method and display control device
KR20220019857A (en) Autofill for a user device
CN106294770A (en) Information sharing method, device and terminal
RU2014103321A (en) METHOD, SERVER AND SYSTEM FOR HUMAN IDENTIFICATION
CN104750372A (en) File sharing method and device
TWI621078B (en) Business object verification method and device
CN109799985A (en) Front-end code generation method and device, storage medium and electronic equipment
CN109379742A (en) Access method, device and storage medium of wireless local area network
CN103812906B (en) Website recommendation method and device and communication system
CN104579548B (en) Transmission method and device based on management data input and output multi-source agreement
KR20120070130A (en) Apparatus and method for generating virtual game client
CN105100447B (en) A kind of setting of application attribute and message treatment method, device
CN110519280A (en) A kind of crawler recognition methods, device, computer equipment and storage medium
CN109560895A (en) Data transmission method and device
CN109617725A (en) A kind of VMess protocol configuration method, device and its storage medium
KR20140004290A (en) Recommandation method of friend and ctreation method of dynammic community using interest graph of music in social network
CN106708717B (en) A kind of exploitation adjustment method and device
CN109739767A (en) A kind of human-computer interaction interface logic function test method and device
CN108156045B (en) A kind of software definition grouping conveying network SPTN test macro and method
CN110399723A (en) Leak detection method and device, storage medium and electronic device
CN105635059B (en) A kind of WLAN access authentication method, relevant device and system
CN111240855A (en) API debugging system, method, storage medium and computer device

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
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.

GR01 Patent grant
GR01 Patent grant