iptables and printer.

Kernels & Hardware, configuring network, installing services

iptables and printer.

Postby hack3rcon » 2020-02-04 16:30

I'm using Debian 10.1 with the MATE desktop. My iptables rules blocking all incoming connection. I want to add a printer by its IP address:
1- Can my iptables rules cause any problem? Any incoming connection needed?
2- Which tool I must install to add the printer? Is the CUPS needed for just add a printer?

Thank you.
Posts: 392
Joined: 2015-02-16 09:54

Re: iptables and printer.

Postby arzgi » 2020-02-04 16:38

First hit on duckduckgo using words "cups firewall"

Posts: 638
Joined: 2008-02-21 17:03
Location: Finland

Re: iptables and printer.

Postby shep » 2020-02-04 18:03

Printers advertise their presence on the network and can communicate their status; eg ink levels, paper and ready to print. If you know the printers IP address, you can bypass avahi discovery.
There are also several ports that can be utilized for network printing. You can select the port while using the web interface to configure.

Cups is the default spooler in Debian. Depending on the make/model of your printer, you may need to install print filters and ppd's. Sometimes there can be several filters that will work. OpenPrinting Database is a good place to look along with your printers spec sheets. The debian printing wiki gives the steps needed to utilize the cups web interface: localhost:631
Selecting AppSocket/HP JetDirect utilizes port 9100 and is supported by Brother, Samsung, Lexmark, others in addition to HP.

There are two other print spoolers available in Debian: lpr and lprng
The alternatives have a smaller footprint but not longer provide a print dialog for gtk3, Qt5, based applications.
Posts: 394
Joined: 2011-03-15 15:22

Return to System configuration

Who is online

Users browsing this forum: No registered users and 12 guests