Remote port management method for DTU information security based on 2404 port
Through the port scanning and configuration method based on TCP full connection, the remote management of the network port of the DTU device is realized, which solves the problem of uniformity and convenience of port configuration, improves the efficiency of operation, maintenance and debugging, and realizes the automation and permanent port configuration. Take effect.
Patent Information
- Application Number
- CN202311717775.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-14
- Publication Date
- 2024-08-23
AI Technical Summary
During the production, debugging and operation and maintenance process of DTU equipment, the port configuration lacks uniformity and convenience. Especially when only port 2404 is open, the serial port communication efficiency is low and it is difficult to meet the management needs of multiple devices and a wide range of regions.
Adopt the port scanning and configuration method based on TCP full connection, remotely manage the DTU port through the network port, use the port configuration program to scan and configure, generate an encrypted file and send it to the server through the IEC104 protocol, and the server decrypts and generates a port management script to achieve Port configuration is automated and permanent.
It improves the efficiency, non-limitation and convenience of DTU port configuration. It is more efficient than serial port access and 22-port command operation, and is suitable for operation, maintenance and debugging of multiple devices and a wide range of regions.
Smart Images

Figure CN118540197A
Abstract
Description
Technical Field
[0001] The invention relates to the field of DTU information security port management. Background Art
[0002] System configuration is an indispensable part of the production debugging or operation and maintenance process of DTU. In the production stage, the equipment needs to be fully configured, including information security and port configuration. Usually, port configuration requires professionals with knowledge of Linux commands to operate through port 22 or serial port, which lacks uniformity and convenience. In the operation and maintenance stage, if the device only opens port 2404 and requires the use of other ports for debugging, then these ports need to be opened through serial communication. However, due to the large number and geographical location of the equipment, the efficiency of serial communication is very low. In order to solve these problems, this paper proposes a method for remote management of DTU port configuration based on port 2404. Summary of the invention
[0003] At present, DTU only retains port 2404 for port management, and mainly uses serial port management port means. In the production stage, the equipment needs to be fully configured, including information security and port configuration operations. Usually, port configuration requires professionals with Linux command knowledge to operate through port 22 or serial port, which has limitations and lacks convenience.
[0004] The technical solution adopted by the present invention to solve its technical problems is: a method for remotely managing DTU ports based on port 2404. The method can remotely manage ports through a network port. First, a port configuration program is used for scanning and configuration, which includes port scanning, port configuration and file encryption. Port scanning is based on a TCP full connection mode; the port configuration is configured according to user requirements, and information encryption is to encrypt the configuration file of the port. The server receives the configuration file and decrypts it according to the decryption algorithm of the corresponding file according to the file name. After decryption, the configuration file generates a port management script file and stores it in a corresponding directory. In this method, when the device restarts and executes the system initialization script, the port configuration script is automatically called by the initialization script instead of the DTU service program to execute the configuration.
[0005] The above-mentioned method for remotely managing DTU ports based on port 2404 is composed of a port scanning configuration client and a DTU port management service component; the file transfer protocol is the IEC104 protocol; the port management client uses the Windows 10 system, and the server uses the Linux 3.0 and above system; the client specifies the scanning server to obtain port information and change the configuration according to customer needs and generate an encrypted file, which is sent to the server through the IEC104 protocol. The server file is decrypted and takes effect immediately, forming a complete technical solution.
[0006] The beneficial effect of the present invention is that the method of remotely managing DTU ports based on 2404 ports is more efficient, non-limiting and convenient than serial port access operation management and 22 port access command operation management to configure DTU ports. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Figure 1 This is a flow chart of a method for remotely managing a port based on port 2404 for DTU information security provided by an embodiment of the present invention; Figure 2 This is a port configuration UI diagram provided by an embodiment of the present invention; Figure 3 This is a screenshot of a port configuration SHELL script provided by an embodiment of the present invention; Implementation
[0008] [Example 1] In DTU information security, since only port 2404 is allowed to be opened, how to manage other ports for operation and maintenance debugging when there is only port 2404? The invention is to achieve the purpose of using only port 2404 for DTU remote information security port management, and one-time configuration takes effect immediately and permanently, thereby improving the efficiency of operation and maintenance and debugging work.
[0009] like Figure 1 As shown, this technology remotely manages the port through the network port. First, the port configuration program is used for scanning and configuration. The port scan specifies the IP, port range, and scanning interval to scan and view the port status. You can choose to open or close the specified port. The port configuration file is generated through algorithm encryption and sent to the DTU server through the 2404 port using the IEC104 protocol. The server then decrypts the port configuration information through the algorithm. The port configuration SHELL script file is generated by the server and placed in the specified directory and executed immediately. The script will also be called when the system is initialized.
[0010] The invention requires the terminal system to be a Linux system. The following is the implementation scheme of the invention.
[0011] S1: Scan the DTU port number (such as Figure 2 ). The first step is to set the port scanning range, scanning time interval, and IP address, and scan according to your needs. The scanning results are related to the configuration file generated later.
[0012] S2: Generate port configuration information. You can configure to open or close the specified port. Generally, all ports except port 2404 are closed or opened by default.
[0013] S3: Encryption: The exported port configuration information needs to be encrypted into a configuration file using a specific algorithm. The host computer and the terminal need matching encryption methods, custom methods, or existing popular methods.
[0014] S4: Send the encrypted file configured in port through protocol 104.
[0015] S5: The server receives and processes the port configuration file.
[0016] After receiving the file, the server determines the file name. If the file name matches, it decrypts and verifies the configuration information to generate a shell script file.
[0017] Configure the shell file (such as Figure 3 ).
[0018] Then place the file in the specified directory so that the terminal initialization script and the terminal auto-start script can call it. Then call the system function to execute the shell script, so that the configuration file can take effect immediately after it is successfully sent. After the terminal restarts, the initialization script ( / etc / init.d / rcS) calls the auto-start script (.... / local.sh), and the auto-start script calls the port configuration script (.... / PortCfg.sh), so that the configuration takes effect permanently.
[0019] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present application. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present application.
Claims
1. A method for remote management of DTU information security ports based on port 2404, involving the field of DTU information security port management, including: Port detection, port configuration, information encryption. The detection method of port detection adopts TCP full connection mode. The port configuration is configured according to user needs. Information encryption is to encrypt the configuration file of the port. When the server receives the configuration file, it will decrypt it according to the decryption algorithm of the corresponding file according to the file name. After decryption, the configuration file will generate the port management script file and store it in the corresponding directory. The script will be executed immediately and take effect.
2. The method for remotely managing a DTU information security port based on port 2404 according to claim 1 is characterized in that: The remote DTU port configuration based on port 2404.
3. The method for remotely managing ports based on port 2404 for DTU information security according to claim 1 is characterized in that: A port configuration method based on shell scripts on the DTU server of an embedded Linux system. When the server receives the configuration encrypted file, it obtains the configuration information through decryption verification and then generates a shell script, so that the Linux system initialization directly calls the shell script to complete the port configuration. At this time, the DTU program receives and decrypts the port configuration file as a system service component to generate a shell script, but does not directly perform the configuration operation, and is called by the system shell.
