Information processing device, and control method and program for information processing device

JP2023082316A5Active Publication Date: 2024-12-04CANON KK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2021196001
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2021-12-02
Publication Date
2024-12-04
Estimated Expiration
2041-12-02

AI Technical Summary

Technical Problem

Users without security knowledge find it difficult to appropriately set the number of ports to be used on information processing devices, as they are unaware of which functions should be minimized, leading to potential security risks.

Method used

An information processing apparatus with a port filtering function that sets port filtering to block communication using ports that have not been used for a specific period, incorporating a mechanism to automatically identify and close unused ports.

Benefits of technology

Enhances security by automatically blocking unused ports, improving the convenience of port-related operational settings and reducing potential security vulnerabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

To provide an information processing device that enhances the convenience of operation settings related to ports and performs settings related to port filtering so as to block communication using ports that have not been used for a specific period of time, and a program for making a computer execute a control method thereof.SOLUTION: A multi function peripheral (MFP) is an information processing device with a port filtering function, and includes setting means for setting related to port filtering so as to block communication using a port for which communication is not performed for a specific period of time.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an information processing apparatus that communicates with the outside.

Background Art

[0002] An information processing apparatus connected to a network communicates using a specific network port for each protocol. Hereinafter, the network port will also be simply referred to as a port. For example, if FTP (File Transfer Protocol) is used to perform file transfer, the 2nd port corresponding to FTP is used to perform file transmission and reception between the information processing apparatuses on the transmission side and the reception side of the file. If HTTPS is used for web access, the corresponding 443rd port is used. The port used is determined in advance in association with the function used in this way.

[0003] Further, Patent Document 1 discloses a technique in which a user such as an administrator makes a setting to use only the ports considered necessary in consideration of the balance between the functions to be used in advance and security risks, and operates a firewall function based on the setting.

Prior Art Documents

Patent Documents

[0004]

Patent Document 1

Summary of the Invention

Problems to be Solved by the Invention

[0005] In recent years, there has been an increase in cases where users without specialized security knowledge manage information processing equipment. Users without security knowledge are likely unaware that they should minimize the functions they use. Furthermore, regardless of whether the user managing the equipment is proficient in security, it is difficult to manually identify unused functions on the information processing equipment. Consequently, there is a challenge in appropriately configuring each information processing equipment to use only the minimum necessary ports according to its usage status.

[0006] The present invention has been made in view of at least one of the above-mentioned problems. One aspect of the present invention aims to provide a mechanism for configuring port filtering to block communication using ports that have not been used for a specific period of time. Another aspect of the present invention aims to improve the convenience of port-related operational settings. [Means for solving the problem]

[0007] To achieve at least one of the above objectives, an information processing device as one aspect of the present invention is an information processing device having a port filtering function, characterized in that it has setting means for configuring port filtering to block communication using ports that have not been used for communication for a specific period of time. [Effects of the Invention]

[0008] According to one aspect of the present invention, it becomes possible to configure port filtering settings to block communication using ports that have not been used for communication for a specific period of time. Another aspect of the present invention is that it is possible to improve the convenience of configuring port-related operations. [Brief explanation of the drawing]

[0009] [Figure 1] This is a diagram showing an example of an information processing system. [Figure 2]This figure shows an example of the hardware configuration of the MFP101. [Figure 3] This figure shows an example of the software configuration of the MFP101. [Figure 4] This is an example of a screen displayed on the control panel 116 of the MFP101. [Figure 5] This flowchart shows an example of control in MFP101. [Figure 6] This flowchart shows an example of a control method for identifying unused ports. [Figure 7] This flowchart shows an example of control related to unused ports. [Figure 8] This flowchart shows an example of control related to unused ports. [Figure 9] This flowchart shows an example of control regarding unused ports in the second embodiment. [Figure 10] This flowchart shows an example of control regarding unused ports in the third embodiment. [Figure 11] This is a sequence diagram illustrating the control of the port in the third embodiment. [Figure 12] This is a sequence diagram illustrating a variation. [Modes for carrying out the invention]

[0010] The following describes embodiments for carrying out the present invention with reference to the drawings. Note that the following embodiments are not intended to limit the invention as defined in the claims, and not all combinations of features described in the embodiments are necessarily essential to the solution of the invention.

[0011] <First Embodiment> First, the configuration of the information processing system according to the present invention will be described using FIG. 1. The information processing system according to the present embodiment includes an MFP (Multi Function Peripheral) 101 and an external device (not shown). In the present embodiment, the MFP 101 is described as an example of an information processing device. The MFP 101 is connected to a network 100. Also, external devices such as client devices (not shown) and servers are connected to the network 100. The MFP 101 can communicate with external devices such as client devices and servers via the network 100.

[0012] Specifically, the MFP 101 can transmit data based on an image obtained by scanning a client device or a server, or transmit data collected by the MFP 101 to a client device or a server.

[0013] <Hardware Configuration of MFP101> Subsequently, the hardware configuration of the MFP 101, which is the core of the information processing system, will be described. The MFP 101 has a reading function for reading an image on a sheet, a file transmission function capable of transmitting the read image to an external communication device, etc. It also has a printing function for printing an image on a sheet.

[0014] In the present embodiment, the MFP 101 is described as an example of an information processing device, but it is not limited thereto. For example, a scanner device such as an SFP (Single Function Peripheral) without a printing function may be used. It can also be applied to general-purpose computers such as PCs. Also, the present embodiment can be applied to various communication devices and IoT devices connected to a network, such as 3D printers, smartphones, digital cameras, and network cameras.

[0015] The control unit 110 including a CPU (Central Processing Unit) 111 controls the operation of the entire MFP 101. The CPU 111 reads out a control program stored in a ROM (Read Only Memory) 112 or a storage 114, and performs various controls such as print control and reading control. The ROM 112 stores a control program executable by the CPU 111. A RAM (Random Access Memory) 113 is a main memory of the CPU 111, and is used as a work area or a temporary storage area for expanding various control programs. The storage 114 stores print data, image data, various programs, and various setting information. In this embodiment, an auxiliary storage device such as an SSD (Solid State Drive) is assumed as the storage 114, but a non-volatile memory such as an HDD (Hard Disk Drive) may be used instead of the SSD. Thus, hardware such as the CPU 111, the ROM 112, and the RAM 113 constitutes a so-called computer. [[ID=~1]] [[ID=~2]]

[0016] [[ID=~3]] In the MFP 101 of this embodiment, it is assumed that one CPU 111 uses one memory (RAM 113) to execute each process shown in the flowchart described later, but other modes may be used. For example, a plurality of CPUs, RAMs, ROMs, and storages may cooperate to execute each process shown in the flowchart described later. Also, some processes may be executed using a hardware circuit. [[ID=~5]] [[ID=~6]]

[0017] [[ID=~7]] The operation unit interface (I / F) 115 connects the operation unit 116 and the control unit 110. The operation unit 116 is provided with a liquid crystal display unit having a touch panel function and various hard keys. The operation unit 116 functions as a display unit for displaying information and a reception unit for receiving a user's instruction. [[ID=~9]] [[ID=~10]]

[0018] [[ID=~11]] The reading unit I / F 117 connects the reading unit 118 and the control unit 110. The reading unit 118 reads documents placed on the document glass or ADF and generates a scanned image. The generated scanned image is stored in the storage 114 or RAM 113. The scanned image generated by the reading unit 118 is transmitted to an external device via the network 100 or used for printing the image onto a sheet.

[0019] The printing interface 119 connects the printing unit 120 and the control unit 110. The read image generated by the reading unit 118 and stored in the storage unit 114 or RAM 113 is transferred from the control unit 110 to the printing unit 120 via the printing interface 119. The printing unit 120 receives the read image via the control unit 110 and prints it onto the sheet. It can also perform printing based on print jobs received from external devices. The printing method of the printing unit 120 may be electrophotographic, inkjet, or other printing methods such as thermal transfer.

[0020] The communication interface I / F121 is a communication interface provided by the MFP101. The control unit 110 is connected to the network 100 via the communication interface I / F121. The communication interface I / F121 can transmit data to devices and servers on the network 100, or to servers on the internet via gateways on the network 100 (not shown).

[0021] In this embodiment, it is assumed that the communication unit I / F 121 is a communication interface that performs wired communication compliant with Ethernet (registered trademark), but it is not limited thereto. For example, it may be a wireless communication interface compliant with the IEEE802.11 series. Also, the communication interface may be a communication interface that connects to a cellular network (e.g., LTE, 5G, etc.). That is, the network 100 may be configured to enable communication based on the so-called TCP / IP (Transmission Control Protocol / Internet Protocol). That is, any communication method may be adopted for the communication method in the physical layer.

[0022] Also, the MFP 101 of this embodiment has a firewall function from the viewpoint of security. The user can perform settings such as port filtering and IP filtering using the firewall function. That is, the firewall function provides a port filtering function and an IP filtering function.

[0023] By the way, users without security knowledge are likely not to recognize that the usage functions should be minimized to maintain good security. Also, regardless of whether the user performing the management is proficient in security knowledge, there is a problem that it is difficult for the user to manually identify functions that are not being used by the user in the information processing apparatus.

[0024] Therefore, in the conventional technology, there is a problem that it is difficult to appropriately perform port filtering settings that use only the minimum necessary ports according to the usage state of each information processing apparatus. In view of at least one of the above problems, in this embodiment, control is performed to set port filtering so as to block communication using ports where communication has not been performed for a specific period. The specific mechanism will be described below.

[0025] <Software Configuration of MFP101> Figure 2 shows an example of the software configuration of the MFP101. The software within the MFP101 consists of three layers: the OS (Operating System) 200, middleware components 210-212, and a communication application / server 213.

[0026] OS200 is the basic software for controlling the overall operation of the MFP101. OS200 includes a communication control unit 201. The communication control unit 201 controls the sending and receiving of packets via the communication interface 121. When a communication application / server 213 communicates with an external device, the communication application / server 213 requests data transmission from the communication control unit 201 of OS200. Upon receiving the data transmission request, the communication control unit 201 transmits the data to the external device. The communication control unit 201 also controls whether to forward packets received by the communication interface 121 to internal communication applications or servers, or to discard received packets. The communication control unit 201 includes a firewall 202 that provides firewall functionality to allow or discard packets based on pre-configured filtering conditions. Packets handled by the communication control unit 201 are inspected by the firewall 202. Specifically, the firewall 202 determines whether packets intended to be sent by higher-layer applications and servers, or packets received from external sources, meet the conditions for discarding a packet. If it determines that the conditions for discarding a packet are met, it discards the packet. The firewall 202 also has a function to log when a packet is discarded. In this embodiment, it is sufficient to configure the firewall 202 to store log information such as text data that combines the date and time information of the discard, the port number corresponding to the discarded packet, and information that distinguishes between receiving and sending the packet. This log is stored in a predetermined storage area of ​​the storage 114.

[0027] Next, I will explain the middleware of the MFP101. The configuration memory unit 212 stores settings made via the middleware, as well as configuration values ​​and data used by the middleware and the OS.

[0028] The static rule setting unit 210 has the function of setting and editing static filtering conditions (also called static port settings) that should be set on the firewall 202. When the static rule setting unit 210 receives a user operation to edit the settings, it updates the static filtering list stored in the setting storage unit 212.

[0029] The function of setting and editing static filtering conditions provided by the setting unit 210 will be explained using Figure 3. Figures 3(a) and (b) show examples of setting screens that the setting unit 210 displays to the operation unit 116 in cooperation with the OS 200. Figure 3(a) shows an example of a setting screen when the Deny List format, which lists ports on which packets will be dropped, is selected as the control policy. Users with administrator privileges for the MFP 101 can log in to the MFP 101 and access the setting screens shown in Figure 3. The operation unit 116 is divided into a first area 301, which is a display area for various setting screens and operation screens, and a second area 307, which is a status display area for displaying errors and warnings. Figure 3(a) shows an example of when a status message, which will be described later, is displayed in the second area 307, indicated by the dashed line.

[0030] Area 302 displays a list of ports configured as target ports. Radio buttons 303 are display items used when changing the control policy. Users can select one of the options via radio buttons 303. Radio buttons function as selection items that allow users to choose an action. When setting filtering conditions in the Deny List format as exemplified in Figure 3(a), the administrator will set the port numbers whose packet communications will be dropped as target ports. Consequently, ports for functions that the MFP101 does not use may remain open during operation.

[0031] The new key 304 is used to add a new target port, and the edit key 305 is used to edit a port that is already registered as a target port. The delete key 306 is used to remove a port that is registered as a target port from the filtering list. Users can edit the static filtering conditions for target ports via keys 304-306. Figure 3(b) shows an example of the settings screen when the Allow List format (also called the arrow list method), which lists the ports through which packets are allowed, is selected as the control policy. In this case, administrators and other users will set port numbers corresponding to functions they might use as target ports. Therefore, ports for functions that the MFP101 user does not actually use may remain open during operation.

[0032] Returning to the explanation of Figure 2, the setting unit 210 updates the static filtering list stored in the setting storage unit 212 based on the settings made via the screens illustrated in Figures 3(a) and 3(b).

[0033] Furthermore, the configuration unit 210 sets port filtering conditions for the OS200 firewall 202 based on the static filtering list stored in the configuration storage unit 212.

[0034] Next, the unused port control unit 211 manages the last communication date and time for open ports, has the function of identifying unused ports, and has the function of closing unused ports. The control unit 211 stores the identified unused ports as an unused port list in the setting storage unit 212. When the conditions for closing a predetermined unused port are met, the control unit 211 sets port filtering conditions for the OS200 firewall 202 and performs the process of closing the predetermined unused port.

[0035] Furthermore, the unused port control unit 211 has the function of updating the discard list stored in the configuration storage unit 212 based on the logs generated by the firewall 202. This discard list is referenced as appropriate in the flowchart described later. The final control unit 211 provides the management settings screen, described later, to users such as administrators. Through the management settings screen, users can close unused ports or reopen ports that have been closed but have been accessed. Users can also configure the operation settings for unused ports through the management settings screen. The control unit 211 updates the operation settings recorded in the configuration storage unit 212 based on the operation settings made through the management settings screen.

[0036] Finally, the communication application / server 213 is the application layer module through which the MFP101 exchanges data with external devices. For example, the MFP101 includes modules such as a network printing application, a network scanning application, and an HTTP server.

[0037] The network print application is an application that receives print data via ports 631, 443, and 9100, for example. The network print application works in cooperation with the printing unit 120 to print images onto sheets based on print jobs received from print clients of external devices. The network scan application is an application that sends files based on scanned images obtained by scanning a document with the reading unit 118 to scan clients of external devices via ports 631 and 443. The HTTP server is a web server that provides the MFP101 settings screen and information confirmation screen to a web browser using port 80 or port 443. Although omitted for space reasons, the MFP101 also has various other communication applications / servers. These various applications / servers communicate with the outside world via various ports according to their respective functions.

[0038] Next, we will explain the specific mechanism for configuring port filtering to block communication using ports that have not been used for a specific period of time, using flowcharts illustrated in Figures 5 to 8 and a configuration screen illustrated in Figure 4. Each operation (step) shown in the flowcharts in Figures 5 to 8 is realized by the CPU 111 calling and executing the program for realizing each control module stored in ROM 112 or storage 114 from RAM 113. Data transmission and reception processing, etc., are realized in cooperation with each communication interface. Furthermore, in cases where it is desired to clarify the subject of the processing, the software module executed by the CPU 111 will be used as the subject of the explanation.

[0039] The flowchart shown in Figure 5 illustrates an example of the processes executed after the MFP101's power is changed from OFF to ON and the startup process is completed. Note that, due to space limitations, Figure 5 only shows the processes related to port filtering.

[0040] In S501, the communication control unit 201 works in cooperation with the communication unit I / F 121 to determine whether or not packet transmission or reception has occurred. If packet transmission or reception has occurred, the process proceeds to S502; otherwise, the process proceeds to S507.

[0041] In S502, firewall 202 determines whether to discard the packet based on the packet filtering rules configured for it. If it decides to discard the packet, it proceeds to S506; if it decides not to discard the packet (i.e., to allow the packet to pass), it proceeds to S503. Port filtering conditions are defined for firewall 202 through the process described later. Firewall 202 obtains the destination port number, which is the destination included in the packet header, and determines whether it matches the port filtering conditions. If it matches the filtering conditions, it performs control according to the control policy. If the Allow List format is selected and the packet filtering conditions are met, the packet is allowed to pass. On the other hand, if the Allow List format is selected and the packet filtering conditions are not met, the packet is discarded. Furthermore, if the Deny List format is selected and the packet filtering conditions are met, the packet is discarded. In addition, if the Deny List format is selected and the packet filtering conditions are not met, the packet is allowed to pass. This process makes it possible to block communication to a specific port based on the packet filtering conditions.

[0042] In S506, firewall 202 stores a log indicating that the packet was discarded. As mentioned above, this log stores text data that combines the date and time information of the discard, the port number corresponding to the discarded packet, and information that distinguishes between the receipt and transmission of the packet. Unused port control unit 211 monitors this log, detects when new text data has been written, and adds the port number stored in the log, i.e., the port number corresponding to the discarded packet, to the discard list. Once the addition to the discard list is complete, CPU 111 proceeds to S501.

[0043] In S503, the communication control unit 201 determines whether the processing content is the reception of a broadcast packet or a multicast packet. If it determines that the processing content is the reception of a broadcast packet or a multicast packet, it proceeds to S504. If it determines that the processing content is not the reception of a broadcast packet or a multicast packet (i.e., if it determines that it is a unicast packet destined for the IP address assigned to MFP101), it proceeds to S505. In S504, the communication control unit 201 determines whether to respond to the packet. Specifically, if there is no higher-level application listening for packets on the port, it determines not to respond to the packet and proceeds to S501. On the other hand, if a higher-level application listening for packets on the port requests the transmission of a response packet, it determines to respond to the packet and proceeds to S505. By making the determination in S504, it is possible to configure the system so that the last communication date and time are not updated for multicast packets / broadcast packets flying around the network that MFP101 does not respond to.

[0044] In S505, the communication control unit 201 performs packet transmission and reception processing. When sending a packet externally, it works in cooperation with the communication unit I / F 121 to send the packet over the network 100. When receiving a packet from an external source, it forwards the received packet to the higher-level communication application. Subsequently, the communication control unit 201 records the last communication date and time of the port used for transmission and reception.

[0045] In S507, the CPU 111 determines whether the current time is a predetermined time. If it determines that it is a predetermined time, the process proceeds to S508; otherwise, the process proceeds to S509. In this embodiment, it is assumed that the unused port determination process shown in S508 is performed once a day, for example at a predetermined time such as 23:00, but it is not limited to this. For example, the process may be configured to perform the unused port determination process every 12 hours using a timer or the like.

[0046] In S509, the CPU 111 determines whether or not it has received a shutdown command. If it has received a shutdown command, it performs shutdown control (not shown in the diagram) and terminates the series of processes. If it has not received a shutdown command, it proceeds to S501.

[0047] In S508, the unused port control unit 211 performs the process of identifying unused ports. The specific control will be explained using Figure 6.

[0048] In S601, the unused port control unit 211 works with the firewall 202 to identify open ports for which filtering conditions are set to allow packets to pass through. Subsequently, in S602, the unused port control unit 211 works with the communication control unit 201 to obtain the last communication date and time associated with the identified open port. Once the acquisition is complete, the process proceeds to S603.

[0049] In S603, the control unit 211 extracts open ports that have not had any communication activity for a specific period. Subsequently, the control unit 211 stores the extracted open ports that have not had any communication activity for a specific period as an unused port list in the setting storage unit 212. If there are no extracted open ports that have not had any communication activity for a certain period, information such as NULL or None is stored in the unused port list. The specific period can be, for example, 30 days. In this embodiment, considering that there are cases where monthly processing is performed once a month using the functions provided by the MFP 101, 30 days is adopted. By adopting a period of 30 days or so, it is possible to suppress the ports used in such cases from becoming the target of warnings or being closed every time. Furthermore, a period of 30 days is a period during which appropriate periodic reviews can be performed for operational management purposes, while suppressing port closures and warnings caused by the MFP not being used during long holidays such as holiday seasons.

[0050] Furthermore, the system may be configured to allow the setting of a specific period used as an extraction condition in S603 based on user operations such as those of an administrator. Information indicating this specific period is stored as an operation setting in the setting storage unit 212. In this case, S603 should retrieve the information indicating the specific period from the setting storage unit 212 and perform extraction based on the period corresponding to the retrieved information.

[0051] In S604, the control unit 211 determines whether or not one or more unused ports were found as a result of the extraction in S603. If one or more unused ports are found, the process proceeds to S605. If no unused ports are found (i.e., there are 0 unused ports), the process proceeds to S606.

[0052] In S605, the control unit 211 sets the control flag indicating that an unused port has been found to "True" and the notification issuance flag indicating the notification issuance status to "False", and proceeds to S501. Meanwhile, in S606, the control unit 211 sets the control flag indicating that an unused port has been found to "False", and proceeds to S501. This control flag is referenced as appropriate in the flowchart described later to perform notification control and port closing control.

[0053] Next, we will explain notification control and port auto-close control in the MFP101 using the flowchart in Figure 7. The flowchart in Figure 7 is an excerpt of the processes related to notification control and port auto-close control performed by the MFP101. The processes shown in the flowchart in Figure 7 are executed in accordance with the occurrence of an update event that should update the screen displayed on the operation unit 116 of the MFP101. Specifically, an update event occurs when a power-on operation is performed while the operation unit 116 is in a power-off state and no screen is displayed. In addition, an update event occurs when an event that should update the drawing occurs while the operation screen is displayed on the operation unit 116.

[0054] In S701, the unused port control unit 211 determines whether the flag indicating an unused port has been found is set and whether the notification issuance flag indicates that no notification has been issued. Specifically, if the control flag indicating an unused port has been found is set to True and the notification issuance flag is set to False, the process proceeds to S702. On the other hand, if the control flag indicating an unused port has been found is set to False, or if the notification issuance flag is set to True, the series of processes is terminated. In S702, the control unit 211 determines whether the operation setting for automatically closing open ports has been configured.

[0055] The operation settings will be explained using the management settings screen illustrated in Figure 4. Through the screen shown in Figure 4, users can instruct the opening and closing of unused ports, and change the operation settings related to opening and closing unused ports. Here, we will explain the operation settings related to the process shown in Figure 7. The operation of instructing the opening and closing of ports will be explained later, along with the flowchart in Figure 8.

[0056] Checkbox 404 is a display item for changing the operation setting to determine whether or not to automatically close an unused port when an unused port is detected. Checkbox 405 is a display item for changing the operation setting to not display a warning notification. Checkbox 406 is a display item for changing the operation setting to determine whether or not to set up a detection exception port. Display item 407 is a display item used when adding a detection exception port. The OK key 412 is a key used to confirm the operation settings and the port open / close operation. The control unit 211 changes the operation settings stored in the setting storage unit 212 based on the settings made via the screen in Figure 4. Specifically, when 404 is changed to a checked state, the setting storage unit 212 changes the operation setting to automatically close open ports to ON. When it is changed to an unchecked state, the setting storage unit 212 changes the operation setting to automatically close open ports to OFF.

[0057] Similarly, the control unit 211 changes the ON or OFF status of the operation setting stored in the setting storage unit 212 for not displaying warning notifications, depending on the checked state of 405. It also changes the ON or OFF status of the operation setting stored in the setting storage unit 212 for whether or not to provide a detection exception port, based on the checked state of 406. If the checkbox is checked, the control unit 211 changes the corresponding operation setting to ON, and if the checkbox is unchecked, it changes the corresponding operation setting to OFF.

[0058] When the control unit 211 detects that display item 407 has been selected, it displays an additional settings screen (not shown). On this additional settings screen, ports 80 and 443 are displayed as default exception ports. The default exception ports may be configured so that they cannot be deleted.

[0059] This additional settings screen provides users with the ability to add detection exception ports on an application-by-application basis, such as network printing applications or scan-and-print applications. For example, if a network printing application is selected, it can be configured to add ports corresponding to the printing protocols supported by the printing application to the exception ports. Specifically, in addition to ports 80 and 443, which are set as default exceptions, ports 631 and 9100 can be configured to be added to the detection exception ports.

[0060] In this embodiment, we have illustrated the case where detection exception ports are set on an application-by-application basis, but this is not the only example. For example, the system may be configured to allow the user to input a numerical value indicating a port number in order to set additional detection exception ports.

[0061] Returning to the explanation of Figure 6, in S702, if the control unit 211 is set to automatically close open ports, that is, if ON is stored in the setting storage unit 212 as the setting to automatically close open ports, the process proceeds to S703. On the other hand, if the control unit 211 is not set to automatically close open ports, that is, if OFF is stored in the setting storage unit 212 as the setting to automatically close open ports, the process proceeds to S707.

[0062] In S703, the control unit 211 works with the firewall 202 to determine whether the firewall's control policy is in Deny List format. If it determines that the firewall's control policy is in Deny List format, the process proceeds to S704. On the other hand, if it determines that the firewall's control policy is not in Deny List format (i.e., if it determines that it is in Allow List format), the process proceeds to S707.

[0063] In S704, the control unit 211 updates the port filtering conditions of the firewall 202 based on the unused port list and the settings for the detection exception ports, and applies the port filter to the firewall. Specifically, if the setting for whether to provide detection exception ports is OFF, the control unit 211 updates the port filtering conditions of the firewall 202 to close all ports included in the unused port list. If the setting for whether to provide detection exception ports is ON, the control unit 211 performs a process to exclude port 80, port 443, and the additionally configured detection exception ports from the unused port list.

[0064] Next, the control unit 211 updates the port filtering conditions of the firewall 202 to close the ports included in the unused port list, which excludes the detected exception ports.

[0065] In S705, the control unit 211 sets a flag to False to indicate that an unused port has been found. Subsequently, in S706, the control unit 211, in cooperation with the operation unit 116, displays a status message indicating that an automatic close has been performed for the second area 307 on the operation unit 116.

[0066] On the other hand, in S707, the control unit 211 determines whether or not the setting to not display warning notifications has been made. If the setting to not display warning notifications has been made, that is, if ON is stored in the setting storage unit 212 as the setting to not display warning notifications, the control unit 211 terminates the series of processes. On the other hand, if OFF is stored in the setting storage unit 212 as the setting to not display warning notifications, the control unit 211 proceeds to S708.

[0067] In S708, the control unit 211 works in cooperation with the operation unit 116 to display a status message on the operation unit 116 indicating that there are unused ports in the second area 307 and prompting confirmation.

[0068] In S709, the control unit 211 sets the notification issuance flag to True. Subsequently, the CPU 111 detects that a predetermined time has elapsed since the message was displayed, or that user interaction with the message has been detected, and stops displaying the message displayed in S706 or S708. The detection of the elapsed time or the detection of user interaction with the message is a process to determine whether the conditions for stopping the message display have been met. Once the stopping is complete, the series of processes ends.

[0069] Finally, we will explain how to control port closing and opening based on user operations via the control panel using the flowchart in Figure 8. The process shown in the flowchart in Figure 8 is executed when a user operation to display the management settings screen for an unused port is received. Selecting a status message displayed on S706 or S708 is an example of a user operation to display the management settings screen. Another example of a user operation to display the management settings screen is selecting an icon for displaying the management settings screen for an unused port, which is displayed in the settings menu (not shown).

[0070] In S800, the control unit 211 works in cooperation with the operation unit 116 to display the management settings screen illustrated in Figure 4, and accepts user operation to change settings via the management settings screen.

[0071] The management settings screen will be explained using Figure 4. The management settings screen displays information 402 indicating the detection status of unused open ports. The control unit 211 displays information indicating that an unused port has been detected when the flag indicating that an unused port has been found is set to True. The control unit 211 also displays information indicating that an unused port has been closed by the process of automatically closing unused ports as described above. Area 403 is an area for displaying a list of unused ports. The control unit 211 displays a list of ports included in the unused port list in this area. Specifically, the control unit 211 works in cooperation with the operation unit 116 to display a label indicating each port number and a radio button-type display item indicating the open / closed status of that port. Furthermore, for port numbers included in both the discard list and the unused port list, the control unit 211 displays information indicating that access has occurred.

[0072] Furthermore, if the setting for whether or not to set detection exception ports is ON, the control unit 211 will control the system so that ports that are set as detection exception ports are not displayed in the unused port list, even if they are included in the unused port list. In other words, if the setting for whether or not to set detection exception ports is ON, ports set as detection exception ports will be excluded from the management (control target) of unused ports.

[0073] Users can change whether each port is open or closed by operating the radio buttons. Key 410 is used to close all ports detected as unused. Key 411 is used to reopen ports that have been closed by user operations via the management settings screen or by the automatic unused port closing process described above, and for which access has occurred since closing. As mentioned above, OK key 412 is used to apply port open or close operations and changes to the operation settings. Administrators and other users can manage the opening and closing of unused ports through this settings screen.

[0074] Returning to the explanation of Figure 8, in S801, the control unit 211 works in cooperation with the operation unit 116 to determine whether the OK key has been selected. If the OK key is selected, the process proceeds to S802; otherwise, the process returns to S800 and awaits further setting change operations.

[0075] In S802, the control unit 211 works in cooperation with the operation unit 116 to determine whether a change operation related to port opening or closing has been performed. If a change operation related to port opening or closing has been performed, the process proceeds to S805; otherwise, the process proceeds to S803.

[0076] In S803, the control unit 211 works in cooperation with the operation unit 116 to determine whether a user operation to change the operating settings has been performed. If a change operation to change the operating settings has been performed, the process proceeds to S804. If no change operation to change the operating settings has been performed, the series of processes ends.

[0077] In S804, the control unit 211 modifies (updates) the operating settings stored in the setting storage unit 212 so that they correspond to the operating settings change operation performed via the management settings screen. Once the modification process is complete, the series of processes is terminated.

[0078] In S805, the control unit 211 executes processing when an open operation is performed via the management settings screen. If no open operation is performed, this processing is skipped. To explain in detail, the control unit 211 works in cooperation with the communication control unit 201 to update the last communication date and time corresponding to the opened port with the current date and time. The control unit 211 also removes the port from the unused port list and discard list stored in the setting storage unit 212.

[0079] In S806, the control unit 211 updates the port filtering conditions of the firewall 202 based on the operation details, the unused port list, and the detection exception port settings, and applies the port filter to the firewall 202. If an operation to close all unused ports is performed, the filtering conditions are updated to close all unused ports. For example, if the control policy is in Deny List format, an update process is performed to add a rule to reject unused ports. On the other hand, if the control policy is in Allow List format, an update process is performed to delete the rule that allows packets to pass through to unused ports. Note that if the operation setting for whether or not to set detection exception ports is ON, it is sufficient to configure the system to close only the unused ports that do not fall under the category of detection exception ports.

[0080] Furthermore, if an operation is performed to reopen all ports that have been accessed again after an unused port has been closed, the port filter conditions are updated to allow packets to pass through to the corresponding ports. Finally, if an operation is performed to change the settings for individual ports using radio buttons, the port filter conditions are updated to reflect the open / closed state of the ports corresponding to the settings made via the management settings screen. Once the update is complete, the process proceeds to S807.

[0081] In S807, the control unit 211 sets a flag to False indicating that an unused port has been found, and proceeds to S803.

[0082] The process described above allows you to configure port filtering to block communications using ports that have not been used for a specific period of time.

[0083] <Second Embodiment> In the first embodiment, an example was given of a case where the control policy is in Deny List format and the operation setting to automatically close open ports is configured, and the process of automatically closing the port is performed.

[0084] In the second embodiment, a mechanism is described for performing automatic closing of open ports regardless of the control policy, and for performing automatic opening based on a discard list, when the operation setting for automatically closing open ports is configured. The hardware and software configuration of the MFP101 in the second embodiment is the same as in the first embodiment. Processes that are the same as in the first embodiment will be omitted from the explanation as appropriate.

[0085] Figure 9 shows an example of a flowchart executed in place of the flowchart in Figure 7 in the first embodiment, in the second embodiment. The differences from Figure 7 are that the decision process corresponding to S703 is not performed, the processes shown in S921 and S922 are performed when it is determined that the setting for automatic closing is enabled (Yes in S902), and the process in S923 is performed instead of the process in S904.

[0086] The processing from S901 to S902 is the same as S701 and S702 in the first embodiment. In S902, if the unused port control unit 211 determines that the setting for automatic closing is enabled, it proceeds to S921, and if it determines that the setting for automatic closing is enabled, it proceeds to S907.

[0087] In S921, the control unit 211 retrieves the discard list and the unused port list from the setting storage unit 212. Next, the control unit 211 removes the ports included in the discard list from the unused port list. Then, the control unit 211 updates the information on the last communication date and time of the ports managed by the communication control unit 201 so that the last communication date and time of the removed ports becomes the current date and time. Once the update is complete, the process proceeds to S922.

[0088] Next, in S922, the control unit 211 initializes the discard list stored in the setting storage unit 212. Once initialization is complete, the process proceeds to S923.

[0089] By performing steps S921 and S922, unused ports that have not sent or received packets for an unspecified period, but have a history of packets being dropped by the firewall, can be excluded from automatic closing.

[0090] Next, in S923, the control unit 211 resets the firewall filtering conditions. Then, it sets port filtering conditions for the firewall based on the settings of the static port filtering list, unused port list, and detection exception port list. Specifically, it applies a port filter based on the static port filtering list to firewall 202. Next, if the operation setting for whether to provide detection exception ports is OFF, the control unit 211 updates the port filtering conditions of firewall 202 to close all ports included in the unused port list. On the other hand, if the operation setting for whether to provide detection exception ports is ON, the control unit 211 removes port 80, port 443, and the additionally configured detection exception ports from the unused port list. Finally, the control unit 211 updates the port filtering conditions of firewall 202 to close the ports included in the unused port list, excluding the detection exception ports. Once the filtering condition update is complete, the process proceeds to S905. Note that the processing in S905 to S909 is the same as the processing in S705 to S709 of the first embodiment, so the explanation is omitted.

[0091] The process described above enables automatic port opening in addition to automatic port closing, regardless of whether you use an Allow List or a Deny List as your firewall control policy.

[0092] <Third Embodiment> In the second embodiment, an example was given in which, in addition to automatic port closing, automatic port opening is also performed. However, in the second embodiment, since the port opening and closing processes are executed after a predetermined time is determined in the S507 process, the port cannot be opened at the time when communication to a closed port is attempted. In view of this, the third embodiment provides a mechanism to open a port in response to an attempt at packet communication to a port that has been automatically closed.

[0093] The hardware and software configurations of the MFP101 in the second embodiment are the same as those in the first and second embodiments. Processes similar to those in the first and second embodiments will be omitted from the explanation as appropriate.

[0094] Figure 10 shows an example of the processing that is executed in the third embodiment when it is determined to discard the packet during the S502 processing in the flowchart of Figure 5 of the first embodiment.

[0095] In S1001, the unused port control unit 211 determines whether the setting for automatic closing is enabled. If the setting for automatic closing of open ports is enabled, that is, if ON is stored in the setting storage unit 212 as the setting for automatic closing of open ports, the process proceeds to S1002. On the other hand, if the setting for automatic closing of open ports is not enabled, that is, if OFF is stored in the setting storage unit 212 as the setting for automatic closing of open ports, the process proceeds to S506.

[0096] In S1002, the control unit 211 determines whether the port corresponding to the packet to be discarded is included in the unused port list. If it determines that the port is included in the unused port list, the process proceeds to S1003; otherwise, the process proceeds to S506. Subsequently, in S1003, the control unit 211 updates the port filter conditions of the firewall 202 to open the port corresponding to the discarded packet. Specifically, in the case of an Allow List, it performs update control to add the port to the exception conditions that allow packets to pass through. In the case of a Deny List, it performs update control to remove the condition corresponding to the port from the exception conditions that discard packets.

[0097] In S1004, the control unit 211 updates the last communication date and time associated with the port number opened in S1003 to the current date and time. The control unit 211 also removes the opened port from the unused port list and the discard list.

[0098] Through the above process, an attempt is made to communicate with the automatically closed port, and after any packets are dropped, the port can be immediately reopened.

[0099] The effect of the process in Figure 10 will be explained using the sequence diagram in Figure 11. Figure 11 shows an example of the process when an external device establishes a TCP connection to the MFP101. For the sake of explanation, we will use the example where TCP port 25 is identified as an unused port and is automatically closed.

[0100] First, the external device specifies TCP port 25 and attempts to establish a TCP connection with MFP101 (sequence S1101). Upon receiving the packet attempting to establish the TCP session, the firewall 202 of MFP101 decides to discard the packet. Then, the processes described in S1001 to S1004 are executed, and port filtering conditions are applied to the firewall to allow TCP packets to pass through to the port corresponding to the packet, i.e., port 25 (S1102).

[0101] At this point, the external device determines that no response is being received to the packet due to congestion on the communication path on network 100, and retries establishing the TCP connection. During this retry sequence, port 25 is reopened. Therefore, the TCP connection can be established (S1103). After the connection is established, data can be exchanged as appropriate (S1104).

[0102] <Variation> In the first and second embodiments, examples were given of the MFP 101 determining unused ports, identifying closed and open ports based on user operations, or automatically closing open ports, but the embodiment is not limited to these. For example, control over unused ports can also be achieved by a management system consisting of the MFP 101 and the management server 102 working together. Figure 12 shows an example of a communication sequence of a management system as a modified example. The management server 102 is a management server that collects and manages information on the MFP 101 and other MFPs. In this embodiment, some processes such as displaying the screen illustrated in Figure 4 and accepting setting change operations are implemented on the management server side. The hardware configuration of the management server 102 can be a so-called von Neumann type computer consisting of a CPU, ROM, RAM, and storage, which is the same as the hardware configuration of the MFP 101 illustrated in Figure 2, but with the hardware configuration related to printing and reading removed.

[0103] The management server 102 may be configured to execute the processes described in the sequence below by having multiple processors, RAM, ROM, and storage work together, or it may also execute the processes described in the sequence below by using multiple server computers.

[0104] The specific processing will now be explained. The unused port control unit 211 of the MFP101 sends information to the management server at regular intervals, such as once a day. This information includes the last communication date and time of the ports used for sending and receiving, the discard list, and a list of open ports identified by processing similar to that of S601, as described in the first embodiment (S1200).

[0105] The management server that receives the information manages the received information as management information for the MFP101. Subsequently, it performs the process of identifying unused ports based on the stored information (S1201). This process means that the management server 102 performs the same process as S601 to S606 described in the first embodiment. The management server 102 manages the unused port list and control flag information generated by the identification process as management information for the MFP101.

[0106] The management server 102 issues accounts to administrators who manage multiple MFPs, such as MFP101. Administrators who manage multiple MFPs access a web page provided by the management server 102 via a web browser on a client terminal such as a PC owned by the administrator. The administrator enters their account information on the web page, logs in to the management server 102, and can view a page showing the management information of the MFPs they manage, such as MFP101. At this time, the management server 102 executes processes equivalent to S701 to S708 in the first embodiment based on the management information stored in association with MFP101, and can display the status message described in the first embodiment on the page showing the management information. However, the process of S704 is implemented in cooperation with MFP101.

[0107] Furthermore, the page displaying the management information is configured to include a display item for transitioning to the management settings screen. The user performs an operation to select the display item for transitioning to the management settings screen. The web browser that receives this operation sends an HTTP request to the management server 102 requesting the page of the management settings screen corresponding to the selection operation. The management server 102 that receives this request responds to the web browser with the management settings screen corresponding to Figure 4. Through the process described above, the management server 102 can provide the management settings screen to users such as administrators. Subsequent processing of setting change operations based on user operations is realized through cooperation between the client PC and the management server 102. Note that the processing of S806 will be realized in cooperation with the MFP 101.

[0108] Next, we will explain how to perform the port filter application process described in S704 in Figure 7, S806 in Figure 8, and S923 in Figure 9. When closing or opening a port based on operations via a web page corresponding to the screen in Figure 4, the management server 102 performs the process of identifying the ports to close and the ports to open based on the management information of the MFP 101 and the information received from the web browser. In addition, when performing automatic closing based on the operation setting to automatically close open ports, the management server 102 performs the process of identifying the ports to close based on the management information of the MFP 101 (S1202).

[0109] Next, the MFP101 is instructed to close or open the identified port (S1203). Upon receiving the instruction, the MFP101 updates the port filtering conditions for firewall 202 based on the instruction (S1204).

[0110] Finally, MFP101 updates the discard list and last communication date and time as necessary for the ports modified in the S1204 process. Specifically, when a port open command is issued, it removes the port to which the command was issued from the discard list and updates the last communication date and time to the current time.

[0111] The process described above, which involves managing devices on the server side and remotely instructing the opening and closing of ports as needed, can be applied not only to the MFP101 but also to all devices registered as managed devices.

[0112] Therefore, when a single administrator manages numerous MFPs and other devices installed within a company, it becomes easy to check the port usage status of many devices. Furthermore, it becomes possible to remotely close unused ports on a specific device. Additionally, it becomes possible to remotely reopen unused ports that have been closed on a specific device.

[0113] <Other Embodiments> The present invention can also be realized by supplying a program that implements one or more of the functions of each of the embodiments described above to a system or device via a network or storage medium, and by having one or more processors in the computer of that system or device read and execute the program. It can also be realized by a circuit (e.g., an ASIC or FPGA) that implements one or more functions. [Explanation of symbols]

[0114] 101 MFP 111 CPU 121 Communications Department I / F121

Claims

1. An information processing device having a port filtering function, a display control means for displaying a message for prompting a user to confirm the settings of a port when the port has not been used for communication for a specific period of time; a setting means for setting port filtering so as to block communication using the port based on a user operation; 13. An information processing device comprising:

2. a second setting means for setting whether or not to automatically cut off communication using a port that has not been used for the specific period of time without user operation; The information processing device described in claim 1, characterized in that when the second setting means has set a setting to automatically block communication using a port that has not been used for the specific period of time without user operation, the setting means sets the port filtering so that communication using the port is automatically blocked without the user operation.

3. The device further includes a storage means for storing a static port setting, which is set based on a user operation, as to whether each port is to be closed or opened, The information processing device according to claim 2, characterized in that when the static port settings stored in the memory means are arrow list type port settings, even if the second setting means is set to automatically block communication using a port that has not been used for the specific period of time without user operation, the information processing device does not automatically perform settings related to port filtering without user operation.

4. A means for identifying a port that has not been used for communication during the specific period; a second storage means for storing a list of ports identified by the identification means; 4. The information processing apparatus according to claim 1, further comprising:

5. The information processing device according to claim 4, characterized in that when the information processing device receives a packet addressed to a port included in the list of identified port numbers stored in the second storage means, the setting means changes the settings regarding the port filtering so as not to block communication using the port used to receive the packet.

6. The display control means further controls to display a list of ports that have not been used for communication during the specific period identified by the identification means, The information processing device according to claim 4 or 5, characterized in that when a user operation is received to select a display item displayed together with the list for blocking communication using a port that has not been used for the specific period of time, the setting means performs settings related to the port filtering so as to block communication using a port that has not been used for the specific period of time.

7. The identifying means manages a last communication date and time for each port, and identifies a port for which no communication has been performed for the specific period based on the last communication date and time, An information processing device as claimed in any one of claims 4 to 6, characterized in that for a port that received a packet received by broadcast or multicast and did not perform any processing based on the packet, the last communication date and time when the communication was performed is not updated.

8. a third storage means for storing information indicating that communication using a port included in the list of identified ports stored in the second storage means has been attempted when the information processing device receives a packet addressed to the port, The information processing device according to any one of claims 4 to 7, characterized in that the display control means controls the display of a list of ports by associating information indicating that a communication attempt has been made with a port that is stored in the third storage means as having attempted communication using the port.

9. 9. The information processing device according to claim 4, wherein the display control means further controls to display the list of ports by associating with each port a selection item for selecting whether each port is to be closed or open.

10. 10. The information processing apparatus according to claim 1, further comprising a change unit that changes the specific period based on a user operation.

11. The method further includes a third setting unit for setting an exception port to be excluded from the control targets by the setting unit, 11. The information processing device according to claim 1, wherein a port corresponding to the information indicating the exception port is excluded from targets for blocking communication when setting port filtering by the setting unit.

12. 12. The information processing apparatus according to claim 11, wherein the third setting means sets ports 80 and 443 as the exceptional ports.

13. 13. The information processing apparatus according to claim 12, wherein the information processing apparatus is a printing apparatus, and the third setting means sets a port corresponding to a printing protocol supported by the printing apparatus as the exception port.

14. A method for controlling an information processing device having a port filtering function, comprising: a display control means for displaying a message for prompting a user to confirm the settings of a port when the port has not been used for communication for a specific period of time; a setting step of setting port filtering so as to block communication using the port based on a user operation; 13. A method for controlling an information processing apparatus comprising the steps of:

15. A computer comprising: a display control means for displaying a message for prompting a user to confirm the settings of a port when the port has not been used for communication for a specific period of time; A setting means for setting port filtering so as to block communication using the port based on a user operation. A program to function as a