Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I maintain a small cluster and I am trying to get all print jobs to go through the server instead of each client connected to the printer.
I have my server setup and I can run lpstat -v" and get
device for color405: ipp://128.193.96.74:631/printers/color405
device for EPSON_Stylus_Photo_R380: ipp://128.193.96.7:631/printers/EPSON_Stylus_Photo_R380
device for HP_Deskjet_F4400_series: ipp://128.193.96.7:631/printers/HP_Deskjet_F4400_series
device for Weniger303a: ipp://128.193.96.74:631/printers/Weniger303a
device for Weniger303a-Color: ipp://128.193.96.74:631/printers/Weniger303a-Color
device for Weniger412: ipp://128.193.96.74:631/printers/Weniger412
device for wngr412: socket://128.193.96.33
device for wngr497: dnssd://WNGR497-PRN2._printer._tcp.local/
The bottom two are the printers that are ran through the server.
I run "lpstat -r" and get
scheduler is running
Where I am confused is setting up the cups.conf file. The IP addresses I am connecting to are 128.193.97.x where x=1 to 37. On the server, I added
Listen *:631
and under <Location /> I added
Allow 128.193.97.0/255.255.255.0
On the client, in the /etc/cups/client.conf file I added the following
NameServer 128.193.97.2
I restart cups on both systems. Then on the client I go to
Desktop--->Administration--->Printing and it fails.
I am checking to see if I did anything wrong. Thanks!
Just to make sure, what's the subnet mask on the server? All printers seem to be in the range 128.193.96.X so I assume the server is also in that range. Depending on the subnet mask set on the server your clients might not be able to connect.
I found out that when I setup the printers, I forgot to select "to share the printers connected to the system".
Now I get 4 different printers from other cups servers that I do not control. How do I tell a client machine to only look at my cups server. Here is my cupsd.conf file if needed.
LogLevel warn
MaxLogSize 1m
SystemGroup lpadmin
# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseRemoteProtocols CUPS
BrowseLocalProtocols
DefaultAuthType Basic
<Location />
# Restrict access to the server...
Order allow,deny
</Location>
<Location /admin>
# Restrict access to the admin pages...
Order allow,deny
</Location>
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
# Restrict access to the configuration files...
Order allow,deny
</Location>
<Policy default>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
<Policy authenticated>
<Limit Create-Job Print-Job Print-URI>
AuthType Default
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.