View previous topic :: View next topic |
Author |
Message |
brent_weaver Guru
Joined: 01 Jul 2004 Posts: 510 Location: Burlington, VT
|
Posted: Tue Dec 13, 2005 3:21 pm Post subject: cups admin - remote connection |
|
|
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 |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
|
Back to top |
|
|
brent_weaver Guru
Joined: 01 Jul 2004 Posts: 510 Location: Burlington, VT
|
Posted: Wed Dec 14, 2005 3:44 pm Post subject: |
|
|
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 |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
Posted: Wed Dec 14, 2005 4:06 pm Post subject: |
|
|
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 |
|
|
brent_weaver Guru
Joined: 01 Jul 2004 Posts: 510 Location: Burlington, VT
|
Posted: Wed Dec 14, 2005 4:37 pm Post subject: |
|
|
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 |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
Posted: Wed Dec 14, 2005 4:56 pm Post subject: |
|
|
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 |
|
|
brent_weaver Guru
Joined: 01 Jul 2004 Posts: 510 Location: Burlington, VT
|
Posted: Wed Dec 14, 2005 6:09 pm Post subject: |
|
|
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 |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
Posted: Wed Dec 14, 2005 6:34 pm Post subject: |
|
|
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 |
|
|
brent_weaver Guru
Joined: 01 Jul 2004 Posts: 510 Location: Burlington, VT
|
Posted: Wed Dec 14, 2005 9:42 pm Post subject: |
|
|
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 |
|
|
|