LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-20-2015, 01:40 PM   #1
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Rep: Reputation: 28
CUPS: configuring server and clients for remote printing/Slackware-14.1


The Ethernet LAN has two printers as nodes: the LaserJet 5 has IP address 192.168.55.192 (JetDirect card) and the Color LaserJet 2550C has IP address 192.168.55.194 (external print server).

Network hosts on the Ethernet connect to the LJ5 as: socket://192.168.55.192:9100; the color printer is similar.

There is a wireless sub-net, 192.168.2.* with a couple of portable computers accessing the 'Net through the WAP and I have not been able to configure the CUPS server on the Ethernet LAN properly to accept jobs from the laptops.

On the CUPS admin page on the server, under Administration, the boxes for 'share printers connected to this system' and 'allow printing from the internet' are checked.

In /etc/cups/cupsd.conf are the lines (among others):
ServerName host.domain.com # with the actual host.domain.tld entered
ServerAlias *
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseRemoteProtocols CUPS
BrowseAddress @LOCAL
BrowseLocalProtocols cups
BrowseAllow 192.168.55.*
BrowseAllow 192.168.2.*
<Location />
# Allow remote access...
Order deny, allow
Deny all
Allow from 127.0.0.1
Allow from 192.168.55.*
Allow from 192.168.2.*
</Location>

On the laptop clients the connections to the remote printers are the same as on the wired LAN: socket://192.168.55.192:9100. Should the laptops specify IPP rather than socket?

No jobs appear in the print queue and I suspect it's the client side that's mis-configured. Ideas needed.
 
Old 07-20-2015, 04:19 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,386

Rep: Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470
How is your network configured? How are you routing the two networks together? Can your wireless laptops connect/ping to devices on your LAN?

The posted cups directives allow other computers to see printers connected to the server and access the cups administration pages. It does not have anything to do with network printers.
 
Old 07-20-2015, 04:59 PM   #3
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Original Poster
Rep: Reputation: 28
> How is your network configured? How are you routing the two networks together? Can your wireless laptops > connect/ping to devices on your LAN?

The wireless access point connects directly to the firewall router and then to the DSL bridge (modem). It is not part of the LAN. That, I agree, is the problem. Laptops not on the Ethernet cannot access the LAN server or printers off of it.

> The posted cups directives allow other computers to see printers connected to the server and access the cups > administration pages. It does not have anything to do with network printers.

I wondered about that. The server is set to allow printing from the 'Net; the question is how do I configure the laptops to access the printers as though they were at a coffee shop or a hotel?

Thanks,

Rich
 
Old 07-20-2015, 05:02 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,386

Rep: Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470
What is the firewall router and WAP you are using? Can you post their make/models?
 
Old 07-21-2015, 10:07 AM   #5
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Original Poster
Rep: Reputation: 28
The WAP is a Belkin N900GB configured as a WAP rather than as a router. The firewall appliance/router is a Netgear FVS318.

Because the WAP is on a non-world addressable IP address, and so are the printers (but a different group of 192.168/16 addresses), is there a way to configure the laptops so CUPS can find the latter addresses without going outside the firewall/router?

Thanks.
 
Old 07-21-2015, 10:26 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,386

Rep: Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470Reputation: 5470
The simplest method would be to put the laptops on the same sub-net as everything else. What do mean by configured as a WAP, how is the router configured?
 
Old 07-22-2015, 12:51 PM   #7
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Original Poster
Rep: Reputation: 28
The laptops originally were on the same sub-net. but then would not connect to WiFi access points elsewhere. After much anguished efforts with help from local linux network admins the laptops were put on a separate subnet. Now they work externally, too.

The laptop I use works everywhere because I have root access and can re-set /etc/resolv when I return to the office. Other users do not have root access so when some other server changes /etc/resolv the user cannot copy the local verstion to it.

The Belkin N900 can function as just an access point, passing packets straight through, or as a router.

The Netgear is the router between the LAN and the DSL modem. All Ethernet hosts (including the two printers) are connected via the Netgear. It's firewall rules are in firmware with limited ability to be user tweaked. In the almost-20 years its been in use my network has never been penetrated. (Or course, moving ssh to a high number port helps, too).
 
  


Reply

Tags
cups lpd lpr laserjet, remote


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware CUPS server - printing a document to multiple remote locations Gerard Lally Slackware 3 11-04-2013 11:58 AM
printing to remote cups server m00t00 Linux - General 3 01-22-2006 10:34 PM
Printing to a cups samba server on slackware from windows computers Jared Lewis Linux - Networking 1 06-10-2005 02:55 PM
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 08:31 AM
Configuring CUPS printing through router w/ print server AIMath Linux - Networking 6 08-30-2004 11:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration