You are not logged in.

#1 2016-08-26 16:05:14

ddelpino
Member
Registered: 2011-03-07
Posts: 22

Filter printers of print dialog

I want that the print dialog show me the shared printers of two CUPS servers in the network. I have modified the /etc/cups/cups-browsed.conf file and I have added these lines:

BrowseAllow 192.168.31.7
BrowseAllow 192.168.31.12
BrowseDeny 192.168.31.228
BrowseOrder Deny,Allow

With these lines I guess that the print dialog should show me only the printers of 192.168.31.7 and 192.168.31.12 hosts, anything from 192.168.31.228. But yet, the dialog  show all printer shared in the network.

All machines are Archlinux.

Note: Configure the printers manually in the local CUPS server is not option. I want filter the printers list of network dicovered.

Edit1: Only occurs in Firefox and Evince. In Chromium and Libreoffice the list is correct. In the output of the command: lpstat -t The list is filtered correctly too.

Edit 2: I'm tired, for now I have solved it with Iptables.

iptables -A INPUT -p UDP -s 192.168.31.228 --dport 5353 -j DROP

A better solution will be good received. big_smile

Last edited by ddelpino (2016-08-26 17:11:54)

Offline

Board footer

Powered by FluxBB