Printer Model
Canon Pixma E470
Driver Installed on Endeavour OS
Driver: canon-pixma-ts5055-complete (from AUR)
CUPS: Active and enabled
Issue Description
The printer and scanner are not detected when firewalld
is enabled. However, both functions correctly when firewalld
is disabled.
Troubleshooting Steps
I attempted to enable several ports as recommended by the Canon website and various forums. This resolved the issue for the printer, but the scanner remains undetected, and the cnijlgmon3
service fails to recognize the printer.
List of Port Numbers
Port | Purpose |
---|---|
TCP/UDP 9100 | For printing using Raw protocol |
TCP/UDP 1900 | For Universal Plug and Play (UPnP) operation |
TCP/UDP 5222 | For Google Cloud Print and PIXMA Cloud Link |
TCP/UDP 5357 | For acquiring the printer information (WSDAPI) |
TCP/UDP 8611 | Canon BJNP port for printing |
TCP/UDP 8612 | Canon BJNP port for scanning (Applicable models only) |
TCP/UDP 8613 | Canon BJNP port for sending and receiving faxes from the PC (Applicable models only) |
Solution
In firewalld
, select the preferred zone and add the printer’s MAC address to the Rich Rules. No additional port numbers need to be added, as I ultimately cleared my list of port numbers.
sudo firewall-cmd --permanent --zone=home --add-rich-rule='rule family="ipv4" source mac="xx:xx:xx:xx:xx:xx" accept'
sudo firewall-cmd --reload