For many years, nevertheless opensuse version I have got the same problem in local network printing with CUPS. It is easy to be configured for printing in the local network with YAST, the problem is that over the time firewall automatically closes the 631 port on the client machine. Of course I have always put the tcp and udp 631 as permited services in the firewall, but that doesn’t prevent the firewall from closing down the port if the printing is not in use for some time. Closing down the firewall of the client machine automatically sent the printing task to the printer. That means that I have to close down and afterward switch on the firewall everytime I need to print something in the local network. Any help for keeping port 631 open all the time will be quite welcome. Thanks
I’ve never seen SuSEfirewall2 close down a port after some time, so that’s
interesting, though we may be configured differently for some reason. In
general there isn’t a need to open a firewall port to just print, though
perhaps you are sharing a printer from your computer to others which would
require a change. Care to post the output of the following command
before/after the problem occurs:
Code:
sudo /usr/sbin/iptables-save
You should get some output showing your firewall configuration at the
time. Another option is the ‘/usr/sbin/iptables -nvL’ command which also
gives you some nice statistics on things. Feel free to post the output
here and we’ll see what we can see.
–
Good luck.
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…
Just a thought but if you are using LibreOffice it starts the session to the CUPS server when it starts ( it’s debatable if that’s a bug or a feature )
rather than when you try to print. As a result the remote CUPS server tends to time out if nothing interesting happens for a while. We set the
time out on the CUPS server to 2 hours ( adjust to taste here )
M
Actually it happens all the time nevertheless if libreoffice is used or not, but if there is an option to set the timeout for printing I will try then one too. Please let me know how to adjust the time .
Hi,
I had the same problem. This’ how, I solved it.
Upgrade cups from 1.5 to 1.7 from obs:home:jsmeix repo. Because, there seem to be a great change in cups from 1.6 onwards - no more sharing of printers using cups, just mdns/avahi is used.
Enable and start ‘cups-browsed service’ in yast2>services manager.
In the firewall2,
Allow mdns service (enough)
Allowing broadcasting reply for all tcp/udp services with your lan network
In yast2>printing, allow printing through network (of course, lan) and allow printing from lan network too.
In Yast2>users and group management, add yourself to avahi and lp groups.
These have allowed me the share my printer and print to lan systems.