Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CUPS remote admin
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
guymartin
n00b
n00b


Joined: 27 Sep 2002
Posts: 7

PostPosted: Mon Dec 01, 2003 12:41 pm    Post subject: CUPS remote admin Reply with quote

Hi all -

Okay, I'm at my wits end - can't figure this out. I can't seem to get CUPS to allow me to run admin remotely. I can only connect via localhost:631. I think I've changed my conf file to allow remote (local LAN) connections, but I 've got a horrible feeling I've missed something. Here's my (stripped out) cupsd.conf file.

Code:

ServerName print
AccessLog /var/log/cups/access_log
DataDir /usr/share/cups
DefaultLanguage en
DocumentRoot /usr/share/cups/docs
ErrorLog /var/log/cups/error_log
FontPath /usr/share/cups/fonts
LogLevel debug
MaxLogSize 100000
PageLog syslog
PreserveJobHistory Yes
PreserveJobFiles No
MaxCopies 100
MaxJobs 500
Printcap /etc/printcap
PrintcapFormat BSD
RequestRoot /var/spool/cups
RemoteRoot root
ServerBin /usr/lib/cups
ServerRoot /etc/cups
User lp
Group lp
RIPCache 8m
TempDir /var/spool/cups/tmp
Listen 127.0.0.1:631
HostNameLookups On
SystemGroup lp
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.254
</Location>
<Location /jobs>
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.254
</Location>
<Location /printers>
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.254
</Location>
<Location /printers/name>
AuthType Basic
AuthClass User
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.254
</Location>
<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.254
</Location>


My local LAN is on 192.168.254, and the print servers name is 'print'. I have a local DNS server in my LAN that resolves names, so I've turned name resolution on, as performance shouldn't be an issue.

Help much appreciated.
Cheers
Guy
Back to top
View user's profile Send private message
endu
n00b
n00b


Joined: 03 Jul 2003
Posts: 18
Location: CH

PostPosted: Mon Dec 01, 2003 3:36 pm    Post subject: Reply with quote

hi
try to add a second listen line.
if you only have
Code:
Listen 127.0.0.1:631

cupsd will not be reachable from the outside

here is a snip of my /etc/cups/cupsd.conf
Code:
...
Listen 192.168.1.6:631
Listen 127.0.0.1:631
...

(192.168.1.6 ist the IP of the server having cups. I connect to this IP with my workstation to use the cupsd- webinterface)

greetz,
endu
Back to top
View user's profile Send private message
Drewgrange
Guru
Guru


Joined: 29 Mar 2003
Posts: 483
Location: Ohio, US

PostPosted: Mon Dec 01, 2003 8:30 pm    Post subject: Reply with quote

I'm pretty sure for the listen line you can just put "Port 631" (minus quotes) and leave it at that.. then it will use your hostname/ipaddress

Also on all of your Auth lines, you have it saying Order Deny,Allow.. and then Deny All. That might be telling it to deny everything before it checks if something is allowed. Try changing them to Allow,Deny.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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