CN105208073B - A kind of dynamic Telnet management methods - Google Patents

A kind of dynamic Telnet management methods Download PDF

Info

Publication number
CN105208073B
CN105208073B CN201510483813.5A CN201510483813A CN105208073B CN 105208073 B CN105208073 B CN 105208073B CN 201510483813 A CN201510483813 A CN 201510483813A CN 105208073 B CN105208073 B CN 105208073B
Authority
CN
China
Prior art keywords
telnet
functions
gateway device
wireless gateway
usage scenarios
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510483813.5A
Other languages
Chinese (zh)
Other versions
CN105208073A (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.)
Huzhou Yinglie Intellectual Property Operation Co ltd
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510483813.5A priority Critical patent/CN105208073B/en
Publication of CN105208073A publication Critical patent/CN105208073A/en
Application granted granted Critical
Publication of CN105208073B publication Critical patent/CN105208073B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network

Abstract

The present invention provides a kind of dynamic Telnet management methods, and applied in the wireless gateway device with Telnet functions, methods described includes:It is set forth in the wireless gateway device and establishes Telnet usage scenarios;During the wireless gateway device work, the Telnet functions are turned off or on according to the residing Telnet usage scenarios;The Telnet usage scenarios include factory mode and factory mode/user model;And the Telnet usage scenarios, when being the factory mode, the wireless gateway device opens the Telnet functions;When the Telnet usage scenarios are the factory mode/user model, the wireless gateway device closes the Telnet functions.Practical application scene of the invention based on current device, dynamically can manage and control Telnet functions;Both Telnet functions can have been met under special scenes to configure device requirement, while also evaded and the risk that Telnet is brought is opened under special scenes.

Description

A kind of dynamic Telnet management methods
Technical field
The present invention relates to gateway device management domain, more particularly to a kind of dynamic Telnet management methods.
Background technology
Telnet agreements are a member in TCP/IP protocol suite, are standard agreement and the master of Internet telnet services Want mode.It has provided the user the ability for completing distance host work on the local computer.In the computer of terminal user It is upper to use telnet programs, it is connected to server with it.Terminal user can input order in telnet programs, these lives Order can be run on the server, just as being inputted directly on the console of server.Just service can be controlled local Device.Start a telnet session, it is necessary to input username and password and carry out login service device.
Iptables is the IP packet filtration systems integrated with 3.5 newest version linux kernels.If Linux systems System is connected to internet or LAN, server or connection LAN and the proxy server of internet, then the system is advantageous in Linux IP packet filtrations and firewall configuration are better controled in system.
When making packet filtration decision, by a set of rule for following and forming, these rules are stored in special fire wall Packet filtration table in, and these tables are integrated in linux kernel.In packet filtration table, rule, which is grouped, is placed on me In so-called chain (chain).And netfilter/iptables IP packet filtration systems are a powerful works Tool, available for adding, edit and remove rule.
Traditional equipment does not carry out scene differentiation to Telnet function, is typically only capable to meet a kind of the needs of scene, The mode of its operation and administrative telnet function is entered using the mode of operation telnet process by administrative telnet in addition Journey carrys out administrative telnet function, and this mode can bring certain burden to system, and have certain error, under some systems simultaneously It can not come into force in time, it is necessary to which system is restarted.
The content of the invention
In view of the above problems, the application describes a kind of dynamic Telnet management methods, applied to Telnet functions Wireless gateway device in, methods described includes:
It is set forth in the wireless gateway device and establishes Telnet usage scenarios;
During wireless gateway device work, turned off or on according to the residing Telnet usage scenarios described in Telnet functions.
Preferably, the Telnet usage scenarios include factory mode and factory mode/user model;And
When the Telnet usage scenarios are the factory mode, the wireless gateway device opens the Telnet work( Energy;
When the Telnet usage scenarios are the factory mode/user model, described in the wireless gateway device closing Telnet functions.
Preferably, under the different Telnet usage scenarios, the wireless parameter in wireless driver module is different;The nothing Line gateway device to the wireless parameter by being detected so as to judging the current Telnet usage scenarios.
Preferably, Telnet functions are realized by iptables orders.
Preferably, after establishing the different Telnet usage scenarios in the wireless gateway device, different is described Telnet usage scenarios correspond to the different parameter value of key variables.
Preferably, when the parameter value is " close ", the wireless gateway device closes Telnet functions;When described Parameter value is " open ", and the wireless gateway device opens Telnet functions.
Above-mentioned technical proposal has the following advantages that or beneficial effect:Practical application scene of the invention based on current device, It dynamically can manage and control Telnet functions;Both Telnet functions can have been met under special scenes to configure device requirement, together When also evaded the risks brought of Telnet opened under special scenes;The present invention has abandoned the side of traditional operation telnet process Formula, reduce the system complexity of administrative telnet function;The iptabels modes of use carry out administrative telnet function, can and Shi Shengxiao, and it is more safe and reliable.
Brief description of the drawings
With reference to appended accompanying drawing, more fully to describe embodiments of the invention.However, appended accompanying drawing be merely to illustrate and Illustrate, and be not meant to limit the scope of the invention.
Fig. 1 is a kind of flow chart one of dynamic Telnet management methods of the present invention;
Fig. 2 is a kind of flowchart 2 of dynamic Telnet management methods of the present invention;
Fig. 3 is the flow chart of Telnet remote login services in a kind of dynamic Telnet management methods of the present invention.
Embodiment
Dynamic Telnet management methods of the present invention are described in detail with specific embodiment below in conjunction with the accompanying drawings.
As shown in figure 1, a kind of dynamic Telnet management methods, including:
Establish different Telnet usage scenarios;
Define the key variables of administrative telnet function;
Telnet functions are realized by iptables orders.
Specifically, the Telnet usage scenarios include two kinds, respectively factory mode and factory mode or user's mould Formula.As shown in Fig. 2 wireless gateway device judges the radio network gateway by analyzing the wireless parameter of wireless driver module offer Telnet usage scenarios where equipment, i.e., wireless parameter corresponding to different scene modes are different.Under factory mode, open Telnet functions;Under factory mode or user model, Telnet functions are closed.
In traditional embedded gateway equipment, the usage scenario of Telnet functions is not distinguished, thus can not be by sentencing Disconnected scene carrys out administrative telnet function.And in the present invention, the usage scenario of Telnet functions is divided into two kinds:Factory mode With factory mode or user model.This mode causes Telnet functions to disclosure satisfy that several scenes demand, solves original The defects of Telnet functions are merely able to meet a kind of usage scenario.Meanwhile after usage scenario change, Telnet functional statuses can To change therewith, flexibility and the reliability of system are improved.
After the usage scenario of Telnet functions has been set, show to be currently needed for Telnet by defining key variables The operation mark that function is carried out, specific key variables are:gTelnetAction.The value and mark of the key variables are such as Under:
" close " closes Telnet functions
" open " opens Telnet functions
When equipment is under different usage scenarios, the key variables can be endowed difference with the difference of scene Parameter value, the Telnet work(conversion of energy is realized by the parameter value.
In the present invention, Telnet functions are realized by iptables orders.Specifically, Telnet functions are being realized When, traditional channel judgement and switchover policy are not only applied, while add a kind of customizable strategy.
Specifically, after usage scenario key variables are defined, abandoning tradition passes through Telnet in modification system The mode of process, using it is more efficient, reliable, come into force immediately by the way of come administrative telnet function, that is, pass through change Iptables orders control and administrative telnet function to realize.Specific implementation is as follows:
Judge gTelnetAction value, if open, then open Telnet functions, order is as follows:
iptables-I IPFLTIN-p TCP--dport 23-j ACCEPT
If close, then Telnet functions are closed, specific instructions are as follows:
iptables-I IPFLTIN-p TCP--dport 23-j DROP
As shown in figure 3, after the wireless gateway device detects that the Telnet functions are in factory mode, Telnet The step of remote login service, includes:
Local established with distance host connects;
The user name and password inputted on local terminal and any order inputted later or character are sent to long-range master Machine;
The data that distance host exports are converted into the data of the local form received, and send local terminal back to;
Local interrupt carries out revocation connection to distance host.
Specifically, the process for connection being established in local and distance host is actually to establish a TCP connection, Yong Hubi The IP address or domain name of notice road distance host.An IP packet is gathered into the user name and password locally inputted in interruption, The IP packets are sent to distance host.During sending the data that distance host exports back to local interrupt, the number According to including input order echo and command execution results.
Practical application scene of the invention based on current device, dynamically can manage and control Telnet functions;Both can be with Meet under special scenes Telnet functions to configure device requirement, while also evaded and opened what Telnet was brought under special scenes Risk;The present invention has abandoned the mode of traditional operation telnet process, reduces the system complexity of administrative telnet function; The iptabels modes of use carry out administrative telnet function, can come into force in time, and more safe and reliable.
For a person skilled in the art, after reading described above, various changes and modifications undoubtedly will be evident. Therefore, appended claims should regard whole variations and modifications of the true intention and scope that cover the present invention as.Weighing Any and all scope and content of equal value, are all considered as still belonging to the intent and scope of the invention in the range of sharp claim.

Claims (6)

  1. A kind of 1. dynamic Telnet management methods, it is characterised in that applied in the wireless gateway device with Telnet functions, Methods described includes:
    Telnet usage scenarios are established in the wireless gateway device;
    During the wireless gateway device work, the Telnet is turned off or on according to the residing Telnet usage scenarios Function.
  2. 2. dynamic Telnet management methods according to claim 1, it is characterised in that in methods described:
    The Telnet usage scenarios include factory mode, factory mode and user model;And
    When the Telnet usage scenarios are the factory mode, the wireless gateway device opens the Telnet functions;
    When the Telnet usage scenarios are the factory mode/user model, described in the wireless gateway device closing Telnet functions.
  3. 3. dynamic Telnet management methods according to claim 1, it is characterised in that in methods described:
    Under the different Telnet usage scenarios, the wireless parameter in wireless driver module is different;And
    The wireless gateway device to the wireless parameter by being detected so as to judging that the current Telnet uses field Scape.
  4. 4. dynamic Telnet management methods according to claim 3, it is characterised in that in methods described:
    The Telnet functions are realized by iptables orders.
  5. 5. dynamic Telnet management methods according to claim 4, it is characterised in that in methods described:
    After the different Telnet usage scenarios are established in the wireless gateway device, the different Telnet uses field Scape corresponds to the different parameter value of key variables.
  6. 6. dynamic Telnet management methods according to claim 5, it is characterised in that in methods described:
    If the parameter value is " close ", the wireless gateway device closes the Telnet functions;If the parameter value is " open ", then the wireless gateway device open the Telnet functions.
CN201510483813.5A 2015-08-07 2015-08-07 A kind of dynamic Telnet management methods Active CN105208073B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510483813.5A CN105208073B (en) 2015-08-07 2015-08-07 A kind of dynamic Telnet management methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510483813.5A CN105208073B (en) 2015-08-07 2015-08-07 A kind of dynamic Telnet management methods

Publications (2)

Publication Number Publication Date
CN105208073A CN105208073A (en) 2015-12-30
CN105208073B true CN105208073B (en) 2018-02-13

Family

ID=54955499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510483813.5A Active CN105208073B (en) 2015-08-07 2015-08-07 A kind of dynamic Telnet management methods

Country Status (1)

Country Link
CN (1) CN105208073B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110208632A (en) * 2019-07-09 2019-09-06 深圳创维数字技术有限公司 A kind of method, system and storage medium for electromagnetic compatibility testing

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104497A (en) * 2011-01-14 2011-06-22 中国人民解放军信息工程大学 Automatic telnet session method for reconfigurable router management
CN102984075A (en) * 2012-12-17 2013-03-20 重庆邮电大学 Programmable router based on NetFPGA
CN103746908A (en) * 2013-12-31 2014-04-23 上海斐讯数据通信技术有限公司 Wireless gateway equipment and work pattern selection method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2843847B1 (en) * 2002-08-26 2004-11-19 At & T Corp SYSTEM FOR ESTABLISHING A TELNET CONNECTION WITH A REMOTE MODEM-FREE DEVICE

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104497A (en) * 2011-01-14 2011-06-22 中国人民解放军信息工程大学 Automatic telnet session method for reconfigurable router management
CN102984075A (en) * 2012-12-17 2013-03-20 重庆邮电大学 Programmable router based on NetFPGA
CN103746908A (en) * 2013-12-31 2014-04-23 上海斐讯数据通信技术有限公司 Wireless gateway equipment and work pattern selection method thereof

Also Published As

Publication number Publication date
CN105208073A (en) 2015-12-30

Similar Documents

Publication Publication Date Title
US11083033B2 (en) Small data usage enablement in 3GPP networks
EP3759878A1 (en) Transparent integration of 3gpp network into tsn based industrial network
CN104202224A (en) Automatic search controlling method, device and system of intelligent appliance
EP2911468A1 (en) Method, device and terminal for realizing application of internet of things
CN113055206B (en) Method, device and storage medium for service configuration of network based on intention
WO2016196947A1 (en) Method and appparatus of interworking m2m and iot devices and applications with different service layers
CN102149144B (en) Method for adjusting bandwidth, micro base station, home gateway and system
WO2015051701A1 (en) Method for realizing multi-channel concurrent internet accessing by synchronizing wifi with apn network, and automatically choosing wifi networking preferentially
CN103763309B (en) Safety domain control method and system based on virtual network
CN108632798A (en) A kind of quick binding method of Internet of Things household appliance, system and relevant apparatus
CN112654070B (en) Communication method, device, equipment and storage medium between user terminals
WO2015051706A1 (en) Multi-apn channel management method for multi-apn network concurrent networking
CN110461024A (en) Method, router and the smart machine that smart machine is connect automatically with router
CN105208073B (en) A kind of dynamic Telnet management methods
Trick 5G: An Introduction to the 5th Generation Mobile Networks
CN104076792A (en) Frequency converter remote monitoring system based on internet
CN104204973A (en) Dynamic configuration of industrial control system
CN112286062B (en) Intelligent household appliance linkage control method and device, electronic equipment and storage medium
KR101426464B1 (en) Apparatus and method extraction qos parameter in mobile equipment
CN105635148A (en) Portal authentication method and apparatus
CN103619051A (en) System and method for dynamically controlling routing rule of gateway equipment
WO2015058413A1 (en) Data configuration method and network management server
US11924038B2 (en) UE-initiated in-band policy activation for flow-based policies
US20060190560A1 (en) Remote maintenance/management system for SIP device
CN105491020B (en) The method for realizing routine access IP address limitation in the operating system of smart machine

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201120

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: 201620 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201217

Address after: 8319 Yanshan Road, Bengbu City, Anhui Province

Patentee after: Bengbu Lichao Information Technology Co.,Ltd.

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210310

Address after: 313000 room 1019, Xintiandi commercial office, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: 8319 Yanshan Road, Bengbu City, Anhui Province

Patentee before: Bengbu Lichao Information Technology Co.,Ltd.

TR01 Transfer of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Dynamic Telnet Management Method

Effective date of registration: 20221204

Granted publication date: 20180213

Pledgee: Huzhou Wuxing Rural Commercial Bank Co.,Ltd. high tech Zone Green sub branch

Pledgor: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Registration number: Y2022330003403

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20231205

Granted publication date: 20180213

Pledgee: Huzhou Wuxing Rural Commercial Bank Co.,Ltd. high tech Zone Green sub branch

Pledgor: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Registration number: Y2022330003403

PC01 Cancellation of the registration of the contract for pledge of patent right