Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cups admin - remote connection
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
brent_weaver
Guru
Guru


Joined: 01 Jul 2004
Posts: 510
Location: Burlington, VT

PostPosted: Tue Dec 13, 2005 3:21 pm    Post subject: cups admin - remote connection Reply with quote

Hello all... I am trying to give myself the ability to administer cups from a remote PC via the web interface. I have read about 10 documents on the cups web site on how to do this, I cut and paste the exact syntax (of course changing the address info) and it does not work.

The code I am using is:

Code:

<Location /admin>
Order deny,allow
Encryption IfRequested
Satisfy All
AuthType Basic
AuthClass System
Deny All
Allow 127.0.0.1
Allow from 172.*.*.*
</Location>


What am I missing here. I also tried Allow from All and that did not work either. Everytime I have to work w/ cups I get VERY frustrated for it is the biggest mystery to me.

Any help is appreciated!
_________________
Brent Weaver
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Tue Dec 13, 2005 4:17 pm    Post subject: Reply with quote

From needs to have the right case:
Code:

Allow From 172.*

The inline comments in cupsd.conf do show you what is allowed.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
brent_weaver
Guru
Guru


Joined: 01 Jul 2004
Posts: 510
Location: Burlington, VT

PostPosted: Wed Dec 14, 2005 3:44 pm    Post subject: Reply with quote

Thank you for the response, however it did not work. Like I said I think that CUPS is a total mystery to everyone! Here is my an excerpt from my cups.conf file:

Code:

<Location /admin>
Order deny,allow
Encryption IfRequested
Satisfy All
AuthType Basic
AuthClass System
Deny All
Allow 127.0.0.1
Allow From 172.*
</Location>


What am I missing? I also tried to say Allow From All and that did not work either. Anymore help is appreciated!
_________________
Brent Weaver
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Wed Dec 14, 2005 4:06 pm    Post subject: Reply with quote

Can remote clients connect to CUPS at all? If you e.g.
Code:
$ curl my-server 631
do you get 403 Forbidden, or do you get "couldn't connect to host"?

What does
Code:
# netstat -pl | grep ipp
give? If cupsd is listening on port 631 (ipp) on all interfaces, you should get
Code:
tcp        0      0 *:ipp                   *:*                     LISTEN 10513/cupsd
udp        0      0 *:ipp                   *:* 10513/cupsd

_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
brent_weaver
Guru
Guru


Joined: 01 Jul 2004
Posts: 510
Location: Burlington, VT

PostPosted: Wed Dec 14, 2005 4:37 pm    Post subject: Reply with quote

emperor ~ # curl localhost 631
curl: (7) couldn't connect to host
curl: (7) Failed to connect to 0.0.2.119: Invalid argument
emperor ~ # netstat -pl | grep ipp
tcp 0 0 *:ipp *:* LISTEN 5739/cupsd
udp 0 0 *:ipp *:* 5739/cupsd

This works like a charm from http://localhost:631.

This priting system is a nightmare! I have never been successful with anything that the documentation tells me!
_________________
Brent Weaver
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Wed Dec 14, 2005 4:56 pm    Post subject: Reply with quote

Uh, sorry, I meant my-server:631 - got confused between curl and telnet...

Can remote clients access the CUPS web interface at all? Do they get "connection refused", "access denied", or can they just not access the admin interface?
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
brent_weaver
Guru
Guru


Joined: 01 Jul 2004
Posts: 510
Location: Burlington, VT

PostPosted: Wed Dec 14, 2005 6:09 pm    Post subject: Reply with quote

curl localhost:631 worked perfectly!

No page is displayed form a remote PC at all, let alone the admin functions!

Thanks for all your assistance!
_________________
Brent Weaver
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Wed Dec 14, 2005 6:34 pm    Post subject: Reply with quote

OK; now from a remote PC, do you get "access denied" or "connection refused"? If "access denied", you need to go into cupsd.conf and check that all relevant levels of the web interface have an Allow line for the subnet. If "connection refused", check your firewall settings.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
brent_weaver
Guru
Guru


Joined: 01 Jul 2004
Posts: 510
Location: Burlington, VT

PostPosted: Wed Dec 14, 2005 9:42 pm    Post subject: Reply with quote

I believe that is all in place.

<Location /admin>
Order deny,allow
Encryption IfRequested
Satisfy All
AuthType Basic
AuthClass System
Deny All
Allow 127.0.0.1
Allow from 172.*.*.*
</Location>

I also tried Allo From All and that did not work either. I do not have a firewall insatalled on this box and am on the same LAN, no net firewalls/routers!
_________________
Brent Weaver
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum