CN106559304A - A kind of connection configuration method and device of VPN - Google Patents

A kind of connection configuration method and device of VPN Download PDF

Info

Publication number
CN106559304A
CN106559304A CN201611033615.XA CN201611033615A CN106559304A CN 106559304 A CN106559304 A CN 106559304A CN 201611033615 A CN201611033615 A CN 201611033615A CN 106559304 A CN106559304 A CN 106559304A
Authority
CN
China
Prior art keywords
vpn
network
user
attached
connection configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611033615.XA
Other languages
Chinese (zh)
Inventor
曹其鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing 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 LeTV Holding Beijing Co Ltd, LeTV Mobile Intelligent Information Technology Beijing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201611033615.XA priority Critical patent/CN106559304A/en
Publication of CN106559304A publication Critical patent/CN106559304A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention discloses the connection configuration method and device of a kind of VPN, belong to VPN technical field.Wherein, the method includes:Obtain the operational order that user arranges VPN shortcut;When shortcut is triggered, judge whether to connect network;If having connected network, according to default VPN concatenate rule, from configured multiple VPNs one of VPN is selected to be attached.The embodiment of the present invention can simplify the operating procedure of connection VPN so as to become operating in a key, improve Consumer's Experience sense.

Description

A kind of connection configuration method and device of VPN
Technical field
The present embodiments relate to communication technical field, more particularly to a kind of connection configuration method of VPN and Device.
Background technology
VPN, abbreviation VPN can set up dedicated network in common network, be encrypted communication, therefore It is widely used in enterprise network.Virtual private network gateway is by the encryption to packet and the conversion of packet destination address Realize remote access.VPN has various mode classifications, is mainly classified by agreement.VPN can lead to Cross the realization of the various ways such as server, hardware, software.
For the friend for travelling outside, attempt accessing the data and document for being stored in Intranet, available virtual dedicated network from The internal network of visiting from outside company, user want to connect VPN, multi-menu to be introduced into, virtual special With socket, configured VPN is selected, attempt connection.
During the present invention is realized, inventor has found that at least there are the following problems:
Step is complicated, not easy to operate.User before VPN is connected into every time was required for into VPN arranging leading Interface is configured, and finally can just choose the VPN that network speed is stable and oneself needs.User is carried out first Connection is fine, but secondary connection, and the step of repetition selects menu every time is needed when three connections etc. subsequently repeatedly connect, excessively multiple It is miscellaneous, it is not easy to operate, user time is wasted, the experience sense of user is also reduced.
The content of the invention
The purpose of the embodiment of the present invention is to provide one kind by setting VPN shortcut, and has connected net When in the state of network, shortcut is triggered, can be according to default VPN concatenate rule, from configured multiple The VPN for selecting one of VPN to be attached in VPN, so as to realize once The connection configuration method and device of successful connection VPN.
A kind of one side according to embodiments of the present invention, there is provided connection configuration method of VPN, including:Obtain Take the operational order that family arranges VPN shortcut;When shortcut is triggered, judge whether to connect network; If having connected network, according to default VPN concatenate rule, select from configured multiple VPNs Select one of VPN to be attached.
Wherein, default VPN concatenate rule includes:According to the geographical location information that user is presently in, from Select and a closest geographical position of current geographic position in multiple geographical position, and by the geographical position corresponding void Intend dedicated network to be attached, each geographical position is mapping relations one by one with each VPN.
Wherein, default VPN concatenate rule also includes:Select in the VPN for having connected The last used VPN is attached.
Wherein, default VPN concatenate rule also includes:When shortcut is triggered, the triggered time is judged Whether in the range of the very first time or in the second time range;When between upon activation in the range of the very first time, according to The use habit of family VPN in the range of the very first time, selects user from configured multiple VPNs Usage frequency highest VPN is attached in the range of the very first time;The second time range is between upon activation When interior, according to the use habit of user's VPN in the second time range, from user configured multiple virtual privates User's usage frequency highest VPN in the second time range is selected to be attached in network.
Wherein, the connection configuration method also includes:Configured multiple VPNs are synchronized to into Cloud Server;When When signing in Cloud Server, the Virtual Private Network that Cloud Server is pushed according to default VPN concatenate rule is received Network, and be attached, the VPN is that one of them selected from configured multiple VPNs is virtual Dedicated network, and/or synchronous configured multiple VPNs and configuration information are imported into terminal.
Wherein, if connect network, the connection configuration method also includes:Connect automatically according to default VPN Rule, selects one of VPN to be attached from configured multiple VPNs;And when reception When the operational order of VPN is not connected automatically under networking state, by the VPN of connection breaks automatically Open.
Wherein, when the VPN of user is configured, the connection configuration method also includes:Obtain the virtual special of input With the configuration information of network;The preset format form of each information in the configuration information corresponding with the information is carried out Match somebody with somebody, and judge whether required item is filled in;When the unsuccessful and required item of matching is not filled in, the first prompting message is sent.
Wherein, when the VPN of user is configured, the connection configuration method also includes:Obtain the virtual special of input With the modification information of network configuration information;The preset format modification information corresponding with the modification information is matched;When When modification information preset format matching corresponding with the modification information is unsuccessful, the second prompting message is sent.
A kind of other side according to embodiments of the present invention, there is provided the connection configuration device of VPN, bag Include:First acquisition module, arranges the operational order of VPN shortcut for obtaining user;First judge module, For when the shortcut is triggered, judging whether to connect network;First link block, if for being not connected with network, According to default VPN concatenate rule, from configured multiple VPNs, select one of them virtual specially It is attached with network.
Wherein, the connection configuration device also includes:First choice module, for the geographical position being presently according to user Information, selects and a closest geographical position of current geographic position from multiple geographical position;Second link block, uses In the geographical position corresponding VPN is attached, each described geographical position and each described Virtual Private Network Network is mapping relations one by one.
Wherein, the connection configuration device also includes:Second selecting module, in the VPN for having connected The last used VPN is selected to be attached.
Wherein, the connection configuration device also includes:Second judge module, for when the shortcut is triggered, sentencing Whether the disconnected triggered time is in the range of the very first time or in the second time range;3rd link block, for when the triggering When time is in the range of the very first time, according to the use habit of user's VPN in the range of the very first time, From configured multiple VPNs, select user's usage frequency highest in the range of the very first time virtually special It is attached with network;4th link block, for when the triggered time is in second time range, according to The use habit of family VPN in the second time range, selects user from configured multiple VPNs Usage frequency highest VPN is attached in second time range.
Wherein, the connection configuration device also includes:Synchronization module, for configured multiple VPNs are deposited together Buyun server;5th link block, for when Cloud Server is signed in, receiving Cloud Server according to default virtual private The VPN that network connection rules is pushed, and is attached, and the VPN is from configured multiple virtual The one of VPN selected in dedicated network;Import modul, for by it is synchronous it is configured it is multiple virtual specially Terminal is imported with network and configuration information.
Wherein, the connection configuration device also includes:Automatic link block, for automatically according to default VPN Concatenate rule, selects one of VPN to be attached from configured multiple VPNs;And from Dynamic circuit breaker molds block, for when the operational order for not connecting automatically VPN under networking state is received, by certainly The VPN of dynamic connection disconnects.
Wherein, the connection configuration device also includes:Second acquisition module, for obtaining matching somebody with somebody for the VPN of input Confidence ceases;First matching module, for by the default lattice form of each information in the configuration information corresponding with the information Formula is matched, and judges whether required item is filled in;First sending module, for not filling in when the unsuccessful and required item of matching When, send the first prompting message.
Wherein, the connection configuration device also includes:3rd acquisition module, for obtaining the VPN configuration of input The modification information of information;Second matching module, for preset format modification information corresponding with the modification information is matched; Second sending module, for when modification information preset format matching corresponding with the modification information is unsuccessful, sending second and carrying Awake information.
A kind of another aspect according to embodiments of the present invention, there is provided terminal, including:At least one processor;And, with The memory of at least one processor communication connection;Wherein, the memory storage has and can be held by one processor Capable instruction, the instruction is by least one computing device, so that at least one processor can:
Obtain the operational order that VPN shortcut is set;When the shortcut is triggered, judgement is No connection network;If having connected network, according to default VPN concatenate rule, from it is configured it is multiple virtual specially It is attached with one of VPN is selected in network.
A kind of other side according to embodiments of the present invention, there is provided non-transient computer readable storage medium storing program for executing, it is non-transient Computer-readable recording medium storage computer instruction, computer instruction are used to make computer perform any of the above-described kind of virtual private Network connection collocation method.
Another aspect according to embodiments of the present invention, there is provided a kind of computer program, computer program include The computer program being stored on non-transient computer readable storage medium storing program for executing, computer program include programmed instruction, when program refers to When order is computer-executed, computer is made to perform any of the above-described kind of VPN connection configuration method.
The embodiment of the present invention provides a kind of VPN connection configuration method and device, by judging whether to connect net Network and acquisition user arrange the operational order of VPN shortcut, are advised according to the connection of default VPN Then, from user configured multiple VPNs, select one of VPN to be attached Virtual Private Network The connection configuration method and device of network, so as to simplify the operating procedure of connection VPN so as to become operating in a key, Improve Consumer's Experience sense.
Description of the drawings
Fig. 1 is a kind of flow process of embodiment of the connection configuration method of VPN provided in an embodiment of the present invention Figure;
Fig. 2 be VPN provided in an embodiment of the present invention connection configuration method under default VPN A kind of flow chart of the embodiment of concatenate rule;
Fig. 3 is the stream of the another embodiment of the connection configuration method of VPN provided in an embodiment of the present invention Cheng Tu;
Fig. 4 is a kind of structure of embodiment of the connection configuration device of VPN provided in an embodiment of the present invention Figure;
Fig. 5 be VPN provided in an embodiment of the present invention connection configuration device under default VPN A kind of structure chart of the embodiment of concatenate rule;
Fig. 6 is the knot of the another embodiment of the connection configuration device of VPN provided in an embodiment of the present invention Composition;
Fig. 7 is the structure chart of storage device processes device provided in an embodiment of the present invention.
Specific embodiment
To make purpose, technical scheme and the advantage of the embodiment of the present invention of greater clarity, with reference to specific embodiment party Formula referring to the drawings, the present invention is described in more detail.It should be understood that these descriptions are simply exemplary, and limit is not really wanted The scope of the present invention processed.Additionally, in the following description, the description to known features and technology is eliminated, to avoid unnecessarily Obscure idea of the invention.
Embodiments provide a kind of method of attachment of VPN, in embodiments of the present invention, the method Intelligent terminal is applied to, for example:Smart mobile phone, Intelligent flat computer etc.;In embodiments of the present invention, VPN is simple Referred to as VPN.
Fig. 1 is a kind of flow process of embodiment of the connection configuration method of VPN provided in an embodiment of the present invention Figure.
The application scenarios of the embodiment of the present invention are, when user goes on business in other places, need to access the number for being stored in company Intranet During according to document, internal network of the VPN shortcuts from visiting from outside company can be used, and then accesses the data of company Intranet And document.
As shown in figure 1, the method includes:
S101, obtains the operational order that user arranges VPN shortcut;
Optionally, the acquisition modes of operational order can be:User arranges the fast of VPN on mobile phone interface Prompt mode, for example:In the informing or toolbar of mobile phone interface, VPN shortcuts are set.
S102, when shortcut is triggered, judges whether to connect network;
Wherein it is possible to be that user is triggered by clicking on the shortcut on mobile phone display screen curtain.
S103, if having connected network, according to default VPN concatenate rule, from configured multiple virtual One of VPN is selected to be attached in dedicated network.
Wherein, configured multiple VPNs, refer to the already present virtual private for having configured in company Intranet Network.
Wherein, default VPN concatenate rule includes:
According to the geographical location information that user is presently in, select and current geographic position distance from multiple geographical position A nearest geographical position, and the geographical position corresponding VPN is attached, each geographical position with it is every Individual VPN is mapping relations one by one.
Specifically, user need the Intranet of connection can be directed to each geographical position establish in advance it is separate it is virtual specially With network, each independent VPN attaching geographical position information, therefore, each geographical position and each virtual private Network can form mapping relations one by one;When user is after clicking on opening shortcut, VPN shortcuts can be current according to user The residing geographical location information geographical location information subsidiary with the VPN for pre-building compares, so as to from many Select and a closest geographical position of current geographic position in individual geographical position, and will be the geographical position corresponding virtual Dedicated network is attached.
For example:User connected the Intranet for being built in Beijing company in Hebei, and the current geographical position of user is Shanghai City, Want to connect the Intranet for being built in Beijing company, then automatically from multiple configured VPN (Hebei-Beijing grid line Road, Tianjin-Beijing network line, Shanghai-Beijing network line etc.) in the nearest VPN in selected distance Shanghai, i.e., Shanghai-Beijing network line is attached.
Wherein, default VPN concatenate rule also includes:Select in the VPN for having connected The last used VPN is attached.
Specifically, after first connection, the operation note that user connects VPN can be remembered simultaneously by terminal automatically Stored, the last used VPN will be automatically selected when being again coupled to and is attached.
Optionally, also include:When being triggered first time, user needs to be input into user the shortcut of VPN Name and password with complete log in.
Fig. 2 be VPN provided in an embodiment of the present invention connection configuration method under default VPN A kind of flow chart of the embodiment of concatenate rule;
As shown in Fig. 2 default VPN concatenate rule also includes:
S201, when shortcut is triggered, judges whether the triggered time is in the range of the very first time or the second time In the range of;
Wherein, very first time scope and the second time range are preset by user, can set the working time Very first time scope is set to, the outer set of time that works is the second time range.Such as user's setting morning 9:00- afternoons 5:00 is Very first time scope, afternoon 5:00- mornings next day 9:00 is the second time range.
S202, upon activation between in the range of the very first time when, it is virtual in the range of the very first time according to user The use habit of dedicated network, selects user in the range of the very first time from configured multiple VPNs using frequency Rate highest VPN is attached;
Wherein, user's usage frequency in the range of the very first time is selected from configured multiple VPNs When highest VPN is attached, usage frequency is this VPN number of times access times divided by total virtual special The business obtained with Web vector graphic number of times is converted into the numerical value after percentage;User can select usage frequency percent value highest empty Intend dedicated network to be attached.
S203, upon activation between in second time range when, it is virtual in the second time range according to user The use habit of dedicated network, selects user in the second time range from configured multiple VPNs using frequency Rate highest VPN is attached.
Wherein, user's usage frequency highest in the second time range is selected from configured multiple VPNs VPN when being attached, usage frequency is this VPN number of times access times divided by total Virtual Private Network The business that network access times are obtained is converted into the numerical value after percentage;User can select usage frequency percent value highest virtually special It is attached with network.
Specifically, such as user assert a working time, and carries out setting very first time scope, root according to the working time The second time range is set according to remaining time of having a rest, then user will operationally between and the time of having a rest connect oneself respectively Required VPN, meets the demand of the user required for job network speed and quality.
Fig. 3 is the stream of the another embodiment of the connection configuration method of VPN provided in an embodiment of the present invention Cheng Tu.
As shown in figure 3, the connection configuration method of VPN provided in an embodiment of the present invention, also includes:
Whether S301, judgement currently connect network;
S302, if not connected network, abandons connecting VPN;
S303, if having connected network, judges the network type of current connection network;
S304, if network type is not data network, selects nearest one in configured multiple VPNs Secondary used VPN is attached;
Specifically, after VPN in first passage non-data network connection, user can be connected by terminal automatically The operation note of VPN is remembered and is stored, and the last used void will be automatically selected when being again coupled to Intend dedicated network to be attached.
S305, if network type is data network, sends information to prompt the user whether to continue connection virtually specially Use network.
Specifically, when network type is data network, terminal can eject prompt window, and window is provided with "Yes" and "No" Button is attached virtual private to prompt the user whether to continue connection VPN if user clicks on "Yes" button The step of network;If user clicks on "No" button, abandon being attached VPN.
As one kind preferred embodiment, the connection configuration method of the VPN also includes:
Configured multiple VPNs are synchronized to into Cloud Server;
When Cloud Server is signed in, the void that Cloud Server is pushed according to default VPN concatenate rule is received Intend dedicated network, and be attached, the VPN is to select wherein from configured multiple VPNs One VPN, and/or synchronous configured multiple VPNs and configuration information are imported into terminal.
The embodiment can be used in terminal configuration loss or terminal factory reset, now due to terminal local Configure without VPN, it is impossible to realize it is normal connect, therefore can be by by configured multiple VPN synchronizations To Cloud Server, Cloud Server is then logged in, link order is pushed by Cloud Server, normally connecting for VPN is carried out Connect.
Specifically, log in the Cloud Server to be also required to be input into account and password, and the account and password and Virtual Private Network Network agreement is docking, is believable.
Wherein, server push VPN with configured multiple VPNs and configuration information are imported Both terminals can be carried out simultaneously.
The embodiment has the beneficial effect that:There is provided the extra connected mode of VPN so that user is losing It is when losing terminal configuration, it is also possible to carry out one-touch connection by Cloud Server, can connect whenever and wherever possible, very convenient.
As one kind preferred embodiment, the connection configuration method of the VPN also includes:
Automatically according to default VPN concatenate rule, which is selected from configured multiple VPNs In a VPN be attached;And the behaviour for not connecting automatically VPN under networking state ought be received When instructing, by the VPN of connection disconnects automatically.
Specifically, the operation interface in terminal is provided with settings button, and user can be configured by settings button is It is no to connect automatically VPN in the state of networking.
The embodiment has the beneficial effect that:Voluntarily can choose whether to connect automatically Virtual Private Network under networking state Network, some users are liked connecting automatically VPN under networking state, because the step of can saving click shortcut; Some users are not desired under networking state connect VPN automatically, it is also possible to be configured.
As one kind preferred embodiment, when VPN is configured, the connection configuration method also includes:
Obtain the configuration information of the VPN of input;By the form of each information in the configuration information with should The corresponding preset format of information is matched, and judges whether required item is filled in;Do not fill in when unsuccessful and required item is matched When, send the first prompting message.
Specifically, the configuration information of the matching can be grammer logic, field digit etc..For example, in input virtual private When network account and password, password is not filled in or digit is too short.
It should be noted that the matching step can be carried out under not connected network state, it is also possible to connect network Carry out under state.User configure VPN when, in the case where network state is connected configure, if user configuring well after, It is directly connected to by only needing to click directly on connection.Need not return again to connect network reconnection connection.
As one kind preferred embodiment, when VPN is configured, the connection configuration method also includes:
The modification of the VPN configuration information of input is obtained, is updated and is added information;By the modification information with The corresponding preset format of the modification information is matched;When modification information preset format matching corresponding with the modification information When unsuccessful, the second prompting message is sent.
It should be noted that the matching step needs to carry out in the case where network state is connected, for example:When user is stepped at PC ends Record Cloud Server, when modifying to the configuration information of VPN, high in the clouds has a reminder message, reminds user to repair The information for changing is different from the information of storage, if need to continue the operation such as modification and other password modifications.
The embodiment of the present invention can avoid in prior art user when configuring VPN and filling in configuration information, by In filling in mistake or failing to fill in, without any prompting, configuration information mistake, system is caused to store invalid configuration file, and So that VPN cannot connect, and bring unnecessary operation.
The embodiment of the present invention additionally provides a kind of connection configuration device of VPN, and Fig. 4 is the embodiment of the present invention A kind of structure chart of the embodiment of the connection configuration device of the VPN of offer.
As shown in figure 4, the device includes:
First acquisition module 100, arranges the operational order of VPN shortcut for obtaining user;
Optionally, the acquisition modes of operational order can be:User arranges the fast of VPN on mobile phone interface Prompt mode, for example:In the informing or toolbar of mobile phone interface, VPN shortcuts are set.
First judge module 101, for when the shortcut is triggered, judging whether to connect network;
Wherein it is possible to be that user is triggered by clicking on the shortcut on mobile phone display screen curtain.
First link block 102, for connecting network, then according to default VPN concatenate rule, from One of VPN is selected to be attached in multiple VPNs of configuration.
Wherein, configured multiple VPNs, refer to already present VPN in company Intranet.
As one kind preferred embodiment, the connection configuration device also includes:
First choice module 200, for the geographical location information being presently according to user, selects from multiple geographical position Select closest with a current geographic position geographical position;
Second link block 201, for the geographical position corresponding VPN is attached, each geographical position It is mapping relations one by one to put with each VPN.
Specifically, user need the Intranet of connection can be directed to each geographical position establish in advance it is separate it is virtual specially With network, each independent VPN attaching geographical position information, therefore, each geographical position and each virtual private Network can form mapping relations one by one;When user is after clicking on opening shortcut, VPN shortcuts can be current according to user The residing geographical location information geographical location information subsidiary with the VPN for pre-building compares, so as to from many Select and a closest geographical position of current geographic position in individual geographical position, and will be the geographical position corresponding virtual Dedicated network is attached.
For example:User connected the Intranet for being built in Beijing company in Hebei, and the current geographical position of user is Shanghai City, Want to connect the Intranet for being built in Beijing company, then automatically from multiple configured VPN (Hebei-Beijing grid line Road, Tianjin-Beijing network line, Shanghai-Beijing network line etc.) in the nearest VPN in selected distance Shanghai, i.e., Shanghai-Beijing network line is attached.
As one kind preferred embodiment, the connection configuration device also includes:
Second selecting module 300, for the last used void is selected in the VPN for having connected Intend dedicated network to be attached.
Specifically, after first connection, the operation note that user connects VPN can be remembered simultaneously by terminal automatically Stored, the last used VPN will be automatically selected when being again coupled to and is attached.
Fig. 5 be VPN provided in an embodiment of the present invention connection configuration device under default VPN A kind of structure chart of the embodiment of concatenate rule.
As one kind preferred embodiment, the connection configuration device also includes:
Second judge module 400, for when shortcut is triggered, judging the triggered time whether in very first time model Enclose in interior or the second time range;
Wherein, very first time scope and the second time range are preset by user, can set the working time Very first time scope is set to, the outer set of time that works is the second time range.Such as user's setting morning 9:00- afternoons 5:00 is Very first time scope, afternoon 5:00- mornings next day 9:00 is the second time range.
3rd link block 401, during between upon activation in the range of the very first time, according to user in the very first time In the range of VPN use habit, from configured multiple VPNs select user in very first time model Enclose interior usage frequency highest VPN to be attached;
Wherein, user's usage frequency in the range of the very first time is selected from configured multiple VPNs When highest VPN is attached, usage frequency is this VPN number of times access times divided by total virtual special The business obtained with Web vector graphic number of times is converted into the numerical value after percentage;User can select usage frequency percent value highest empty Intend dedicated network to be attached.
4th link block 402, during between upon activation in the second time range, according to user in the second time In the range of VPN use habit, from configured multiple VPNs select user in the second time model Enclose interior usage frequency highest VPN to be attached.
Wherein, user's usage frequency highest in the second time range is selected from configured multiple VPNs VPN when being attached, usage frequency is this VPN number of times access times divided by total Virtual Private Network The business that network access times are obtained is converted into the numerical value after percentage;User can select usage frequency percent value highest virtually special It is attached with network.
Specifically, such as user assert a working time, and carries out setting very first time scope, root according to the working time The second time range is set according to remaining time of having a rest, then user will operationally between and the time of having a rest connect oneself respectively Required VPN, meets the demand of the user required for job network speed and quality.
Fig. 6 is the stream of the another embodiment of the connection configuration device of VPN provided in an embodiment of the present invention Cheng Tu.
As shown in fig. 6, the connection configuration device of VPN provided in an embodiment of the present invention, also includes:
3rd judge module 500, for judging currently whether connect network;
If not connected network, abandon connecting VPN;
4th judge module 501, if for connecting network, judging the network type of current connection network;
5th link block 502, if being not data network for network type, in configured multiple VPNs It is middle to select the last used VPN to be attached;
Specifically, after VPN in first passage non-data network connection, user can be connected by terminal automatically The operation note of VPN is remembered and is stored, and the last used void will be automatically selected when being again coupled to Intend dedicated network to be attached.
Reminding module 503, if for the network type be data network, send information with prompt the user whether after Continuous connection VPN.
Specifically, when network type is data network, terminal can eject prompt window, and window is provided with "Yes" and "No" Button is attached virtual private to prompt the user whether to continue connection VPN if user clicks on "Yes" button The step of network;If user clicks on "No" button, abandon being attached VPN.
As one kind preferred embodiment, the connection configuration device also includes:
Synchronization module, for configured multiple VPNs are synchronized to Cloud Server;
5th link block, for when Cloud Server is signed in, receiving Cloud Server according to default Virtual Private Network The VPN that network concatenate rule is pushed, and is attached, the VPN be from it is configured it is multiple virtual specially With the one of VPN selected in network;
Import modul, for synchronous configured multiple VPNs and configuration information are imported terminal.
The embodiment can be used in terminal configuration loss or terminal factory reset, now due to terminal local Configure without VPN, it is impossible to realize it is normal connect, therefore can be by by configured multiple VPN synchronizations To Cloud Server, Cloud Server is then logged in, link order is pushed by Cloud Server, normally connecting for VPN is carried out Connect.
Specifically, log in the Cloud Server to be also required to be input into account and password, and the account and password and Virtual Private Network Network agreement is docking, is believable.
Wherein, server push VPN with configured multiple VPNs and configuration information are imported Both terminals can be carried out simultaneously.
The embodiment has the beneficial effect that:There is provided the extra connected mode of VPN so that user is losing It is when losing terminal configuration, it is also possible to carry out one-touch connection by Cloud Server, can connect whenever and wherever possible, very convenient.
As one kind preferred embodiment, the connection configuration device also includes:
Automatic link block, for automatically according to default VPN concatenate rule, from configured multiple void One of VPN is selected to be attached in intending dedicated network;And
Automatically module is disconnected, and the operational order for not connecting automatically VPN under networking state is received for working as When, by the VPN of connection disconnects automatically.
Specifically, the operation interface in terminal is provided with settings button, and user can be configured by settings button is It is no to connect automatically VPN in the state of networking.
The embodiment has the beneficial effect that:Voluntarily can choose whether to connect automatically Virtual Private Network under networking state Network, some users are liked connecting automatically VPN under networking state, because the step of can saving click shortcut; Some users are not desired under networking state connect VPN automatically, it is also possible to be configured.
As one kind preferred embodiment, when VPN is configured, the connection configuration device also includes:
Second acquisition module, for obtaining the configuration information of the VPN of input;
First matching module, for by the default lattice form of each information in the configuration information corresponding with the information Formula is matched, and judges whether required item is filled in;
First sending module, for when the unsuccessful and required item of matching is not filled in, sending the first prompting message.
Specifically, the configuration information of the matching can be grammer logic, field digit etc..For example, in input virtual private When network account and password, password is not filled in or digit is too short.
It should be noted that the matching step can be carried out under not connected network state, it is also possible to connect network Carry out under state.User configure VPN when, in the case where network state is connected configure, if user configuring well after, It is directly connected to by only needing to click directly on connection.Need not return again to connect network reconnection.As a kind of preferred reality Mode is applied, when VPN is configured, the connection configuration device also includes:
3rd acquisition module, for obtaining the modification of the VPN configuration information of input, updating and adding information;
Second matching module, for the preset format modification information corresponding with the modification information is matched;
Second sending module, it is unsuccessful for working as modification information preset format matching corresponding with the modification information When, send the second prompting message.
It should be noted that the matching step needs to carry out in the case where network state is connected, for example:When user is stepped at PC ends Record Cloud Server, when modifying to the configuration information of VPN, high in the clouds has a reminder message, reminds user to repair The information for changing is different from the information of storage, if need to continue the operation such as modification and other password modifications.
The embodiment of the present invention can avoid in prior art user when configuring VPN and filling in configuration information, by In filling in mistake or failing to fill in, without any prompting, configuration information mistake, system is caused to store invalid configuration file, and So that VPN cannot connect, and bring unnecessary operation.
Another embodiment of the present invention additionally provides a kind of device of storage device processes, and function is filled with as shown in Figures 4 to 6 Put identical.
Fig. 7 is the structure chart of the device of storage device processes provided in an embodiment of the present invention.
As shown in Figure 7, the device includes:
At least one central processing unit 60, memory 70, the memory 70 and at least one central processing unit 60 are by total Line connects, and the memory 70 is used to store computer instruction, and when the apparatus is operative, at least one central processing unit 60 is performed The computer instruction of the storage of memory 70 so that the device performs method flow as shown in Figure 1 to Figure 3.
It is contemplated that the connection configuration method and device of a kind of VPN of protection, by judging whether to connect net Network and acquisition user arrange the operational order of VPN shortcut, are advised according to the connection of default VPN Then, from configured multiple VPNs, select one of VPN to be attached VPN Method of attachment and device, so as to simplify VPN attended operation so as to become operating in a key, improve Consumer's Experience Sense.
It should be appreciated that the above-mentioned specific embodiment of the present invention is used only for exemplary illustration or explains the present invention's Principle, and be not construed as limiting the invention.Therefore, that what is done in the case of without departing from the spirit and scope of the present invention is any Modification, equivalent, improvement etc., should be included within the scope of the present invention.Additionally, claims purport of the present invention In the whole changes covered in the equivalents for falling into scope and border or this scope and border and repair Change example.

Claims (17)

1. a kind of connection configuration method of VPN, it is characterised in that include:
Obtain the operational order that VPN shortcut is set;
When the shortcut is triggered, judge whether to connect network;
If having connected network, according to default VPN concatenate rule, from configured multiple VPNs It is middle to select one of VPN to be attached.
2. connection configuration method according to claim 1, wherein, the default VPN concatenate rule bag Include:According to the current geographical location information of terminal, closest with current geographic position is selected from multiple geographical position Individual geographical position, and the geographical position corresponding VPN is attached, each described geographical position and each institute VPN is stated for mapping relations one by one.
3. connection configuration method according to claim 1, wherein, the default VPN concatenate rule bag Include:
In the VPN for having connected, select the last used VPN to be attached.
4. connection configuration method according to claim 1, wherein, the default VPN concatenate rule bag Include:
When the shortcut is triggered, judge whether the triggered time is in the range of the very first time or the second time range It is interior;
When the triggered time is in the range of the very first time, according to user in the range of the very first time Virtual Private Network The use habit of network, selects user's usage frequency in the range of the very first time from configured multiple VPNs Highest VPN is attached.
When the triggered time is in second time range, according to user in the second time range Virtual Private Network The use habit of network, selects user's usage frequency in second time range from configured multiple VPNs Highest VPN is attached.
5. the connection configuration method according to any one of claim 1-4, wherein, also include:
Configured multiple VPNs are synchronized to into Cloud Server;
When the Cloud Server is signed in, the Cloud Server is received according to the default VPN concatenate rule The VPN of push, and be attached, the VPN is to select from configured multiple VPNs The one of VPN selected, and/or
Synchronous configured multiple VPNs and configuration information are imported into terminal.
6. the connection configuration method according to any one of claim 1-4, wherein, if connect network, the connection side Method also includes:
Automatically according to the default VPN concatenate rule, which is selected from configured multiple VPNs In a VPN be attached;And
It is when the operational order for not connecting automatically VPN under networking state is received, virtual by what is connected automatically Dedicated network disconnects.
7. the connection configuration method according to claim 5 or 6, wherein, when the VPN of user is configured, also wrap Include:
Obtain the configuration information of the VPN of input;
The preset format form of each information in the configuration information corresponding with the information is matched, and judges to fill out Whether item is filled in;
When the unsuccessful and required item of matching is not filled in, the first prompting message is sent.
8. the connection configuration method according to claim 5 or 6, wherein, when the VPN of user is configured, also wrap Include:
Obtain the modification information of the VPN configuration information of input;
The preset format modification information corresponding with the modification information is matched;
When modification information preset format matching corresponding with the modification information is unsuccessful, the second prompting message is sent.
9. the connection configuration device of a kind of VPN, it is characterised in that include:
First acquisition module, arranges the operational order of VPN shortcut for obtaining user;
First judge module, for when the shortcut is triggered, judging whether to connect network;
First link block, if for being not connected with network, according to default VPN concatenate rule, from configured One of VPN is selected to be attached in multiple VPNs.
10. connection configuration device according to claim 9, wherein also including:
First choice module, for the geographical location information being presently according to user, selects from multiple geographical position and works as A closest geographical position of front geographical position;
Second link block, for the geographical position corresponding VPN is attached, each described geographical position It is mapping relations one by one with VPN each described.
11. connection configuration devices according to claim 9, wherein also including:
Second selecting module, for the last used Virtual Private Network is selected in the VPN for having connected Network is attached.
12. connection configuration devices according to claim 9, wherein also including:
Second judge module, for when the shortcut is triggered, judging the triggered time whether in very first time scope In interior or the second time range;
3rd link block, for when the triggered time is in the range of the very first time, according to user at first Between in the range of VPN use habit, user is selected from configured multiple VPNs described first In time range, usage frequency highest VPN is attached;
4th link block, for when the triggered time is in second time range, according to user at second Between in the range of VPN use habit, user is selected from configured multiple VPNs described second In time range, usage frequency highest VPN is attached.
The 13. connection configuration devices according to any one of claim 9-12, wherein, also include:
Memory module, for user configured multiple VPNs are stored to Cloud Server;
5th link block, connects according to default VPN for when Cloud Server is signed in, receiving Cloud Server The VPN of rule push is connect, and is attached, the VPN is from configured multiple Virtual Private Networks The one of VPN selected in network;
Import modul, for synchronous configured multiple VPNs and configuration information are imported terminal.
The 14. connection configuration devices according to any one of claim 9-12, wherein, also include:
Automatically link block, for automatically according to default VPN concatenate rule, from it is configured it is multiple virtual specially It is attached with one of VPN is selected in network;And
Automatically module is disconnected, for when the operational order for not connecting automatically VPN under networking state is received, By the VPN of connection disconnects automatically.
The 15. connection configuration devices according to claim 13 or 14, wherein, also include:
Second acquisition module, for obtaining the configuration information of the VPN of input;
First matching module, for the preset format form of each information in the configuration information corresponding with the information is entered Row matching, and judge whether required item is filled in;
First sending module, for when the unsuccessful and required item of matching is not filled in, sending the first prompting message.
The 16. connection configuration devices according to claim 13 or 14, wherein, also include:
3rd acquisition module, for obtaining the modification information of the VPN configuration information of input;
Second matching module, for the preset format modification information corresponding with the modification information is matched;
Second sending module, for when modification information preset format matching corresponding with the modification information is unsuccessful, sending out Send the second prompting message.
17. a kind of terminals, it is characterised in that include:
At least one processor;And, the memory being connected with least one processor communication;Wherein, the memory Be stored with can by the instruction of at least one computing device, the instruction by least one computing device so that At least one processor can:
Obtain the operational order that VPN shortcut is set;
When the shortcut is triggered, judge whether to connect network;
If having connected network, according to default VPN concatenate rule, from configured multiple VPNs It is middle to select one of VPN to be attached.
CN201611033615.XA 2016-11-15 2016-11-15 A kind of connection configuration method and device of VPN Pending CN106559304A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611033615.XA CN106559304A (en) 2016-11-15 2016-11-15 A kind of connection configuration method and device of VPN

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611033615.XA CN106559304A (en) 2016-11-15 2016-11-15 A kind of connection configuration method and device of VPN

Publications (1)

Publication Number Publication Date
CN106559304A true CN106559304A (en) 2017-04-05

Family

ID=58443478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611033615.XA Pending CN106559304A (en) 2016-11-15 2016-11-15 A kind of connection configuration method and device of VPN

Country Status (1)

Country Link
CN (1) CN106559304A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107276874A (en) * 2017-06-30 2017-10-20 北京金山安全软件有限公司 Network connection method, device, electronic equipment and storage medium
CN109076005A (en) * 2018-04-28 2018-12-21 深圳前海达闼云端智能科技有限公司 A kind of VPN circuit switching method, device and electronic equipment
CN110324826A (en) * 2019-06-10 2019-10-11 平安科技(深圳)有限公司 A kind of Intranet access method and relevant apparatus
CN110943875A (en) * 2018-09-21 2020-03-31 武汉安天信息技术有限责任公司 User network relation determining method, network-based user mutual relation determining method and related device
CN112583912A (en) * 2020-12-03 2021-03-30 海腾保险代理有限公司 VPN automatic connection method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083549A (en) * 2006-06-02 2007-12-05 华为技术有限公司 Method and system for realizing VPN configuration service
US20110206052A1 (en) * 2010-02-25 2011-08-25 Gemtek Technology Co., Ltd Data transfer system enabling access to multiple subnets and method thereof
CN102611574A (en) * 2012-02-23 2012-07-25 成都飞鱼星科技开发有限公司 Automatic configuration system and configuration method for VPN (Virtual Private Network)
CN103873634A (en) * 2012-12-07 2014-06-18 盛乐信息技术(上海)有限公司 Terminal function setting method and terminal function setting system
US20150263865A1 (en) * 2014-03-12 2015-09-17 Microsoft Corporation Dynamic and interoperable generation of stateful vpn connection profiles for computing devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083549A (en) * 2006-06-02 2007-12-05 华为技术有限公司 Method and system for realizing VPN configuration service
US20110206052A1 (en) * 2010-02-25 2011-08-25 Gemtek Technology Co., Ltd Data transfer system enabling access to multiple subnets and method thereof
CN102611574A (en) * 2012-02-23 2012-07-25 成都飞鱼星科技开发有限公司 Automatic configuration system and configuration method for VPN (Virtual Private Network)
CN103873634A (en) * 2012-12-07 2014-06-18 盛乐信息技术(上海)有限公司 Terminal function setting method and terminal function setting system
US20150263865A1 (en) * 2014-03-12 2015-09-17 Microsoft Corporation Dynamic and interoperable generation of stateful vpn connection profiles for computing devices

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107276874A (en) * 2017-06-30 2017-10-20 北京金山安全软件有限公司 Network connection method, device, electronic equipment and storage medium
CN107276874B (en) * 2017-06-30 2020-08-25 北京金山安全软件有限公司 Network connection method, device, electronic equipment and storage medium
CN109076005A (en) * 2018-04-28 2018-12-21 深圳前海达闼云端智能科技有限公司 A kind of VPN circuit switching method, device and electronic equipment
WO2019205133A1 (en) * 2018-04-28 2019-10-31 深圳前海达闼云端智能科技有限公司 Vpn line handover method, apparatus and electronic device
CN109076005B (en) * 2018-04-28 2021-02-09 深圳前海达闼云端智能科技有限公司 VPN line switching method and device and electronic equipment
CN110943875A (en) * 2018-09-21 2020-03-31 武汉安天信息技术有限责任公司 User network relation determining method, network-based user mutual relation determining method and related device
CN110324826A (en) * 2019-06-10 2019-10-11 平安科技(深圳)有限公司 A kind of Intranet access method and relevant apparatus
WO2020248369A1 (en) * 2019-06-10 2020-12-17 平安科技(深圳)有限公司 Firewall switching method and related apparatus
CN110324826B (en) * 2019-06-10 2022-08-16 平安科技(深圳)有限公司 Intranet access method and related device
CN112583912A (en) * 2020-12-03 2021-03-30 海腾保险代理有限公司 VPN automatic connection method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106559304A (en) A kind of connection configuration method and device of VPN
CN103905447B (en) Service link selects control method and equipment
CN103618800B (en) The implementation method and device of subscribing notification
US20210007001A1 (en) Capillary device charging
US20120102161A1 (en) Method and device for controlling ad-hoc network in cpns enabler
CN111511235A (en) Cross-device data capture
CN104469064A (en) Transmission method and system for screenshot content, display method and system and terminals
CN110474960B (en) Method and device for service deployment in virtual network
CN103503531A (en) Device, system and method for customizing self-defined mobile network
CN108965036A (en) Configure across public network equipment exchanging visit method, system, server and storage medium
AU2014200926A1 (en) Apparatus and method for controlling network access for applications on mobile terminals
CN107529213B (en) Resource control method and device
CN105657711B (en) A kind of method for connecting network and electronic equipment
CN107820246A (en) The methods, devices and systems of user authentication
CN102546533A (en) Method and system for accessing internet of things business server through unregistered residential gateway
CN107360089A (en) A kind of method for routing foundation, business datum conversion method and device
CN114465935A (en) Method for generating network topological graph for network system and related equipment
CN103209196A (en) Portal access method and device
CN110336794A (en) A kind of Intranet access method, system and relevant apparatus
CN106453088A (en) Static routing configuration method and terminal
CN104519038A (en) Conversation setup method, device and system
CN113271653B (en) Communication method, device and system
CN106550405B (en) Network data receiving control method and system based on mobile terminal
CN111885044A (en) Method, device, equipment and storage medium for configuring multiple network cards of cloud host
WO2016101163A1 (en) Data transmission method in one machine to machine system and common services entity

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170405