Network security configuration method and device, medium and equipment
By determining the default Wi-Fi password and modifying the IP address after the wireless adapter is powered on, and then forcing the user terminal to change the password after restarting, the problem of insufficient security in the communication between the wireless adapter and network devices is solved. This achieves forced password change upon first access and improves network access security.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-21
- Publication Date
- 2026-04-03
AI Technical Summary
When a wireless adapter communicates with a network device through the MAC layer, users cannot access the network device's web pages without changing the default Wi-Fi password, resulting in insufficient security.
After powering on, the wireless adapter checks if the current Wi-Fi password is the default password. If so, it changes the IP address and restarts. When it receives a webpage access request, it forces the user's terminal to redirect to the password change webpage to ensure that the user can change the Wi-Fi password.
Even though accessing web pages on wireless adapters and network devices is based on different network layers, users need to change their Wi-Fi password the first time they access the site, which improves network access security and prevents users with unknown passwords from accessing web pages.
Smart Images

Figure CN121795010A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network security technology, and in particular to a network security configuration method, apparatus, medium, and device. Background Technology
[0002] Currently, wireless adapters operate at two network layers: the TCP / IP layer and the MAC layer. The TCP / IP layer is used to access the wireless adapter's own web server, i.e., to access the wireless adapter's webpage. The MAC layer is used to communicate directly with the network devices connected to the wireless adapter. From a security perspective, when a user visits the wireless adapter's webpage for the first time, they are prompted to change the default Wi-Fi password. This password change is implemented through the wireless adapter's TCP / IP layer. However, since the wireless adapter communicates directly with the network devices through the MAC layer—meaning communication data is transmitted transparently—it is impossible to prompt the user to change the default Wi-Fi password when they directly access the webpage of the network device connected to the wireless adapter. This is because accessing the wireless adapter's webpage and accessing the network device's webpage are implemented at two different network layers.
[0003] However, since the wireless adapter communicates with the network device through the MAC layer via pass-through, any user who knows the default Wi-Fi password can directly access the network device's webpage through the wireless adapter without changing the default Wi-Fi password, which is insecure. Summary of the Invention
[0004] This invention provides a network security configuration method, apparatus, medium, and device that can improve access security.
[0005] According to a first aspect, the network security configuration method provided by embodiments of the present invention is executed by a wireless adapter connected to a user terminal and a network device; the method includes: After powering on, determine whether the current WIFI password configured in the wireless adapter is the default password; If so, obtain the first IP address corresponding to the network device, and modify the second IP address corresponding to the wireless adapter to the first IP address; Restart; After restarting, upon receiving a webpage access request from the user terminal, the system controls the user terminal to redirect to the password modification webpage of the first IP address, so that the user can modify the current WIFI password on the user terminal; wherein, the webpage access request is a webpage access request for the wireless adapter or a webpage access request for the network device.
[0006] In one embodiment, the method provided by this invention may further include: after modifying the current WIFI password, restoring the IP address of the wireless adapter to the second IP address.
[0007] In one embodiment, the method provided by this invention may further include: if the current WIFI password is not the default password, then upon receiving a webpage access request sent by the user terminal, controlling the user terminal to jump to the target webpage corresponding to the webpage access request; wherein, if the webpage access request is a webpage access request for the wireless adapter, then the target webpage is a webpage provided by the web server of the wireless adapter; if the webpage access request is a webpage access request for the network device, then the target webpage is a webpage provided by the web server of the network device.
[0008] In one embodiment, the webpage provided by the web server of the wireless adapter includes a configuration webpage for the wireless adapter; and / or, the webpage provided by the web server of the network device includes a status monitoring webpage for the network device.
[0009] In one embodiment, obtaining the first IP address corresponding to the network device includes: obtaining each network device in the current local area network where the wireless adapter is located and the IP address of each network device through probe packets, and using the IP address of any one of the network devices as the first IP address corresponding to the network device.
[0010] In one embodiment, the wireless adapter has a first interface, through which it connects to an RJ45 connector to establish a connection between the wireless adapter and the network device.
[0011] In one embodiment, the wireless adapter has a WIFI module, and the wireless adapter achieves a WIFI connection with the user terminal through the WIFI module.
[0012] According to a second aspect, an embodiment of the present invention provides a network security configuration device, the device being deployed on a wireless adapter, the wireless adapter being connected to a user terminal and a network device; the device includes: The first judgment module is used to: determine whether the current WIFI password configured in the wireless adapter is the default password after power-on; The address modification module is used to: if so, obtain the first IP address corresponding to the network device, and modify the second IP address corresponding to the wireless adapter to the first IP address; The first restart module is used to: perform a restart; The password modification module is used to: upon restarting and receiving a webpage access request from the user terminal, control the user terminal to redirect to the password modification webpage of the first IP address, so that the user can modify the current WIFI password on the user terminal; wherein the webpage access request is a webpage access request for the wireless adapter or a webpage access request for the network device.
[0013] According to a third aspect, the computer-readable storage medium provided in the embodiments of the present invention stores a computer program thereon, which, when executed in a computer, causes the computer to perform the method provided in the first aspect.
[0014] According to a fourth aspect, the computing device provided in the embodiments of the present invention includes a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, it implements the method provided in the first aspect.
[0015] The network security configuration methods, apparatus, media, and devices provided in the embodiments of the present invention, in combination or individually, have the following technical effects: (1) After the wireless adapter is powered on, it is determined whether the current WIFI password configured in the wireless adapter is the default password; if so, the first IP address corresponding to the network device is obtained, and the second IP address corresponding to the wireless adapter is modified to the first IP address; a restart is performed so that the modified IP address takes effect. After restarting, when a webpage access request is received from the user terminal, the user terminal is controlled to jump to the password modification webpage of the first IP address so that the user can modify the current WIFI password on the user terminal; wherein, the webpage access request is a webpage access request for the wireless adapter or a webpage access request for the network device. It can be seen that when the user terminal sends a webpage access request to the wireless adapter for the first time, regardless of whether the access target is the wireless adapter or the network device, the wireless adapter will control the user terminal's browser to jump to the password modification webpage of the first IP address, so that the user can be forced to change the WIFI password. It can be seen that even if the webpage access to the wireless adapter and the webpage access to the network device are implemented based on two different network layers, based on the method provided by the embodiments of the present invention, when the user terminal sends a webpage access request to the wireless adapter for the first time and the access target is the network device, the user can be required to change the default WIFI password. After changing the Wi-Fi password, if a user does not know the changed Wi-Fi password, the user's mobile device will not be able to connect to the wireless adapter's Wi-Fi, and therefore will not be able to access the web pages of the wireless adapter's web server or the network device's web server, thus improving access security.
[0016] (2) In one embodiment, the wireless adapter can be connected to the network device via an RJ45 connector, which can improve the communication stability and reliability between the wireless adapter and the network device.
[0017] (3) In one embodiment, after the password is changed, the IP address of the wireless adapter is restored to the original IP address. This way, when the user enters the domain name corresponding to the wireless adapter in the browser of the user terminal, the user terminal will enter the web page of the wireless adapter's web server and then configure the wireless adapter. This allows the user to configure other information of the wireless adapter normally after the password is changed. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a schematic diagram showing the connection of a wireless adapter, a user terminal, and a network device in one embodiment of the present invention; Figure 2 This is a flowchart illustrating a network security configuration method in one embodiment of the present invention; Figure 3 This is a structural block diagram of a network security configuration device in one embodiment of the present invention.
[0020] Figure label: Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0022] In a first aspect, embodiments of the present invention provide a network security configuration method, the method being executed by a wireless adapter connected to a user terminal and a network device.
[0023] See Figure 1The wireless adapter 100 is connected to both the user terminal 200 and the network device 400, enabling communication between them. The wireless adapter 100 serves as the communication medium between the user terminal 200 and the network device 400. Both the wireless adapter 100 and the network device 400 have their own web servers. The user terminal 200 can access both the web servers of the wireless adapter 100 and the network device 400 through a browser. For example, by entering a first domain name in the browser, the user can access the web server of the wireless adapter 100. Similarly, by entering a second domain name, the user can access the web server of the network device 400. Therefore, the user terminal 200 can directly access web pages provided by the web server of the wireless adapter 100, and it can also access web pages provided by the web server of the network device 400 through the wireless adapter 100.
[0024] The webpage provided by the wireless adapter's web server includes a configuration page for the wireless adapter, allowing users to configure various aspects of the wireless adapter, such as channel, bandwidth, and password. The webpage can also display information such as the wireless adapter's topology.
[0025] The webpage provided by the network device's web server includes a status monitoring page for the network device. For example, if the network device is a servo drive system, the webpage provided by the servo drive system's web server includes information on various monitoring indicators of the servo drive system, allowing staff to know the status of the servo drive system. Of course, the webpage provided by the servo drive system's web server may also include some configuration items for the servo drive system.
[0026] Among them, user terminals are portable computing devices such as mobile phones and tablets.
[0027] Among them, network devices can be determined according to specific application scenarios. For example, a network device may be a servo drive system, or it may be other types of devices.
[0028] In one embodiment, the wireless adapter has a first interface, through which it connects to an RJ45 connector to establish a connection between the wireless adapter and the network device.
[0029] In other words, the wireless adapter can connect to network devices via an RJ45 connector.
[0030] The RJ45 connector consists of a plug and a socket. As a physical connection method, this connector can improve the communication stability and reliability between wireless adapters and network devices.
[0031] In one embodiment, the wireless adapter has a WIFI module, and the wireless adapter achieves a WIFI connection with the user terminal through the WIFI module.
[0032] In other words, the wireless adapter and the user terminal are connected via Wi-Fi, which allows users to remotely access the wireless adapter and network devices and perform remote network security configuration operations through the user terminal, providing convenience for users.
[0033] See Figure 2 The method includes the following steps S110~S140: S110. After power-on, determine whether the current WIFI password configured in the wireless adapter is the default password; In other words, after the wireless adapter is powered on, it needs to determine whether the current Wi-Fi password in the wireless adapter is the default password. If it is the default password, it means that the Wi-Fi password has not been changed, and the subsequent steps S120~S140 are executed. If it is not the default password, it means that the Wi-Fi password has been changed, so the subsequent steps S120~S140 do not need to be executed.
[0034] S120. If so, obtain the first IP address corresponding to the network device and modify the second IP address corresponding to the wireless adapter to the first IP address; That is, the network device's IP address is the first IP address, and the wireless adapter's IP address is the second IP address. If the current Wi-Fi password in the wireless adapter is still the default password, the wireless adapter's IP address is changed to the first IP address, thus ensuring that the wireless adapter's IP address and the network device's IP address are consistent. This way, when the user enters the first domain name corresponding to the wireless adapter in their browser, the browser will redirect to the webpage corresponding to the first IP address. Similarly, when the user enters the second domain name corresponding to the network device in their browser, the browser will redirect to the webpage corresponding to the first IP address.
[0035] In one embodiment, obtaining the first IP address corresponding to the network device in step S120 may include: The probe message is used to obtain the IP addresses of each network device in the current local area network where the wireless adapter is located, and the IP address of any one of the network devices is used as the first IP address of the network device.
[0036] In other words, there may be multiple network devices in the current local area network where the wireless adapter is located. The wireless adapter can obtain information about the network devices in the current local area network and their IP addresses by probing packets, and use the IP address of any one of the network devices as the first IP address of the network device.
[0037] The reason for choosing any network device's IP address as the first IP address for the network device is that once the password is changed by selecting a network device, the current WIFI password configured in the wireless adapter will no longer be the default password, so it is not necessary to execute S110~S140 again.
[0038] S130, Restart; That is, after the second IP address of the wireless adapter is changed to the first IP address, the wireless adapter will automatically restart. The modified IP address will only take effect after the wireless adapter restarts.
[0039] S140. After restarting, upon receiving a webpage access request from the user terminal, the system controls the user terminal to redirect to the password modification webpage of the first IP address, so that the user can modify the current WIFI password on the user terminal; wherein, the webpage access request is a webpage access request for the wireless adapter or a webpage access request for the network device.
[0040] That is, after the wireless adapter restarts, the wireless adapter may receive a web page access request for the wireless adapter or a web page access request for the network device. Regardless of which type of access request is received, the user terminal will be redirected to the password change web page of the first IP address, thereby enabling the user to perform a forced password change.
[0041] After the password is changed, the user knows the new Wi-Fi password, and the user's terminal can connect to the wireless adapter's Wi-Fi. In scenarios where the user's terminal is not sending a webpage access request to the wireless adapter for the first time, and the target of the access is the wireless adapter, the wireless adapter, based on the specific information in the webpage access request, determines that it is accessing a webpage on its own web server. Therefore, it accesses the webpage on the wireless adapter's web server through the upper TCP / IP layer.
[0042] After the password is changed, the user knows the new Wi-Fi password, and the user's terminal can connect to the wireless adapter via Wi-Fi. In scenarios where the user's terminal is not sending a webpage access request to the wireless adapter for the first time, and the target is a network device, the wireless adapter, based on the specific information in the webpage access request, determines that it is accessing a webpage on the network device's web server. Therefore, it accesses the webpage on the network device's web server through the lower MAC layer.
[0043] As can be seen, after the password is changed, users can only access network devices if they know the Wi-Fi password and their terminal connects to the wireless adapter via the changed password, which greatly improves the security of network access.
[0044] In one embodiment, the method provided by this invention may further include: After modifying the current Wi-Fi password, restore the IP address of the wireless adapter to the second IP address.
[0045] In other words, after the password is changed, the IP address of the wireless adapter is restored to its original IP address. This way, when the user enters the first domain name corresponding to the wireless adapter in the user's browser, the user's terminal will be able to access the web server of the wireless adapter and configure the wireless adapter accordingly.
[0046] In one embodiment, the method provided by this invention may further include: If the current WIFI password is not the default password, then when a webpage access request is received from the user terminal, the user terminal is controlled to jump to the target webpage corresponding to the webpage access request. Wherein, if the webpage access request is a webpage access request for the wireless adapter, the target webpage is a webpage provided by the web server of the wireless adapter; if the webpage access request is a webpage access request for the network device, the target webpage is a webpage provided by the web server of the network device.
[0047] In other words, if the current Wi-Fi password is not the default password, it means the Wi-Fi password has been changed, and you can access it normally. Specifically, if the webpage access request sent by the user terminal to the wireless adapter is a webpage access request to the wireless adapter, the target webpage redirected by the user terminal is a webpage provided by the web server of the wireless adapter. If the webpage access request sent by the user terminal to the wireless adapter is a webpage access request to the network device, the target webpage redirected by the user terminal is a webpage provided by the web server of the network device.
[0048] The webpage provided by the web server of the wireless adapter may include the configuration webpage of the wireless adapter.
[0049] The web page provided by the web server of the network device may include a web page for monitoring the status of the network device.
[0050] In summary, when a user terminal sends a webpage access request to the wireless adapter for the first time, regardless of whether the target is the wireless adapter or a network device, the wireless adapter will control the user terminal's browser to redirect to the password modification webpage at the first IP address, forcing the user to change their Wi-Fi password. It is evident that even though accessing the wireless adapter's webpage and accessing the network device's webpage are implemented at two different network layers, based on the method provided in this embodiment, when the user terminal sends a webpage access request to the wireless adapter for the first time and the target is a network device, the user can be required to change their default Wi-Fi password. After changing the Wi-Fi password, if a user does not know the changed Wi-Fi password, their mobile terminal will be unable to connect to the wireless adapter's Wi-Fi, and therefore unable to access the webpages of either the wireless adapter's web server or the network device's web server. This clearly improves access security.
[0051] Secondly, embodiments of the present invention provide a network security configuration device, which is deployed on a wireless adapter and the wireless adapter is connected to a user terminal and a network device.
[0052] See Figure 3 The network security configuration device 300 includes: The first judgment module 310 is used to: determine, after power-on, whether the current WIFI password configured in the wireless adapter is the default password; The address modification module 320 is used to: if so, obtain the first IP address corresponding to the network device and modify the second IP address corresponding to the wireless adapter to the first IP address; The first restart module 330 is used for: performing a restart; The password modification module 340 is used to: upon receiving a webpage access request from the user terminal after a restart, control the user terminal to redirect to the password modification webpage of the first IP address, so that the user can modify the current WIFI password on the user terminal; wherein the webpage access request is a webpage access request for the wireless adapter or a webpage access request for the network device.
[0053] In one embodiment, the apparatus further includes: The address recovery module is used to restore the IP address of the wireless adapter to the second IP address after the current WIFI password has been modified.
[0054] In one embodiment, the apparatus further includes: The redirection control module is used to, upon receiving a webpage access request from the user terminal, redirect the user terminal to the target webpage corresponding to the webpage access request if the current Wi-Fi password is not the default password; wherein, if the webpage access request is for the wireless adapter, the target webpage is a webpage provided by the web server of the wireless adapter; if the webpage access request is for the network device, the target webpage is a webpage provided by the web server of the network device.
[0055] In one embodiment, the webpage provided by the web server of the wireless adapter includes a configuration webpage for the wireless adapter; and / or, the webpage provided by the web server of the network device includes a status monitoring webpage for the network device.
[0056] In one embodiment, the address modification module is specifically used to: obtain the IP addresses of each network device in the current local area network where the wireless adapter is located through probe packets, and use the IP address of any one of the network devices as the first IP address corresponding to the network device.
[0057] In one embodiment, the wireless adapter has a first interface, through which it connects to an RJ45 connector to establish a connection between the wireless adapter and the network device.
[0058] In one embodiment, the wireless adapter has a WIFI module, and the wireless adapter achieves a WIFI connection with the user terminal through the WIFI module.
[0059] Thirdly, embodiments of the present invention provide a computer-readable medium storing computer instructions, which, when executed by a processor, cause the processor to perform the method provided in the first aspect.
[0060] Specifically, a system or apparatus equipped with a storage medium may be provided, on which software program code implementing the functions of any of the embodiments described above is stored, and the computer (or CPU or MPU) of the system or apparatus may read and execute the program code stored in the storage medium.
[0061] In this case, the program code read from the storage medium can itself implement the function of any of the above embodiments, and therefore the program code and the storage medium storing the program code constitute part of the present invention.
[0062] Storage media embodiments for providing program code include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, program code can be downloaded from a server computer via a communication network.
[0063] Furthermore, it should be clear that not only can the program code read by the computer be executed, but also the operating system or other components operating on the computer can be instructed based on the program code to perform some or all of the actual operations, thereby realizing the function of any of the embodiments described above.
[0064] Furthermore, it is understood that the program code read from the storage medium is written to the memory set in the expansion board inserted into the computer or to the memory set in the expansion module connected to the computer. Then, based on the instructions of the program code, the CPU or other components installed on the expansion board or expansion module execute some and all of the actual operations, thereby realizing the function of any of the above embodiments.
[0065] It is understood that explanations, specific implementation methods, beneficial effects, examples, etc. of the contents in the computer-readable medium provided in the embodiments of the present invention can be found in the corresponding parts of the method provided in the first aspect, and will not be repeated here.
[0066] Fourthly, one embodiment of this specification provides a computing device including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, it implements the method of any embodiment of the specification.
[0067] It is understood that explanations, specific implementation methods, beneficial effects, examples, etc. of the computing device provided in the embodiments of the present invention can be found in the corresponding parts of the method provided in the first aspect, and will not be repeated here.
[0068] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0069] Those skilled in the art will recognize that, in one or more of the examples above, the functions described in this invention can be implemented using hardware, software, widgets, or any combination thereof. When implemented in software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium.
[0070] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0071] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solution of the present invention should be included within the scope of protection of the present invention.
Claims
1. A network security configuration method, characterized in that, The method is performed by a wireless adapter connected to a user terminal and a network device; the method includes: After powering on, determine whether the current WIFI password configured in the wireless adapter is the default password; If so, obtain the first IP address corresponding to the network device, and modify the second IP address corresponding to the wireless adapter to the first IP address; Restart; After restarting, upon receiving a webpage access request from the user terminal, the system controls the user terminal to redirect to the password modification webpage of the first IP address, so that the user can modify the current WIFI password on the user terminal; wherein, the webpage access request is a webpage access request for the wireless adapter or a webpage access request for the network device.
2. The method according to claim 1, characterized in that, Also includes: After modifying the current Wi-Fi password, restore the IP address of the wireless adapter to the second IP address.
3. The method according to claim 1, characterized in that, Also includes: If the current WIFI password is not the default password, then when a webpage access request is received from the user terminal, the user terminal is controlled to jump to the target webpage corresponding to the webpage access request. Wherein, if the webpage access request is a webpage access request for the wireless adapter, the target webpage is a webpage provided by the web server of the wireless adapter; if the webpage access request is a webpage access request for the network device, the target webpage is a webpage provided by the web server of the network device.
4. The method according to claim 3, characterized in that, The webpage provided by the web server of the wireless adapter includes a configuration webpage for the wireless adapter; and / or, the webpage provided by the web server of the network device includes a status monitoring webpage for the network device.
5. The method according to claim 1, characterized in that, The step of obtaining the first IP address corresponding to the network device includes: obtaining each network device in the current local area network where the wireless adapter is located and the IP address of each network device through probe packets, and taking the IP address of any one of the network devices as the first IP address corresponding to the network device.
6. The method according to claim 1, characterized in that, The wireless adapter has a first interface, through which it connects to an RJ45 connector to establish a connection between the wireless adapter and the network device.
7. The method according to claim 1, characterized in that, The wireless adapter has a WIFI module, and the wireless adapter achieves a WIFI connection with the user terminal through the WIFI module.
8. A network security configuration device, characterized in that, The device is deployed on a wireless adapter, which is connected to a user terminal and network equipment; the device includes: The first judgment module is used to: determine whether the current WIFI password configured in the wireless adapter is the default password after power-on; The address modification module is used to: if so, obtain the first IP address corresponding to the network device, and modify the second IP address corresponding to the wireless adapter to the first IP address; The first restart module is used to: perform a restart; The password modification module is used to: upon restarting and receiving a webpage access request from the user terminal, control the user terminal to redirect to the password modification webpage of the first IP address, so that the user can modify the current WIFI password on the user terminal; wherein the webpage access request is a webpage access request for the wireless adapter or a webpage access request for the network device.
9. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed in a computer, causes the computer to perform the method described in any one of claims 1 to 7.
10. A computing device, characterized in that, The method includes a memory and a processor, wherein the memory stores executable code, and the processor executes the executable code to implement the method described in any one of claims 1 to 7.