In situation where the operating system is not meant for network printing usage, oen should configure CUPS to listen only to localhost
request. This section guides you on how to listen to localhost
.
The easiest way to approach this is to set firewall to block all external network request to port 631 where CUPS uses.
The second approach is to set CUPS configuration independently. This is useful as a second layer protection. To do that, you need to add/modify the following settings in /etc/cups/cupd.conf
to appear as follows:
...
Listen 127.0.0.1:631
...
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>
Once done, restart the CUPS.service and you're good to go. That's all for configuring CUPS to listen only to localhost.