[cups.general] Moving a working Suse Linux CUPS PC to a newsubnet IP address

Klaus Singvogel kssingvo at suse.de
Wed Aug 22 03:45:59 PDT 2007


Paul McIlfatrick wrote:
> > Paul McIlfatrick wrote:
> >
> > > There are 3 subnets one for each floor in our offices (10.230.197.x,
> > > 10.230.198.x, 10.230.199.x) and our printhost works fine when on
> > > 10.230.199.x subnet.
> >
> > What is the 'netmask' for each of the 3 address ranges??
> 
> 255.255.255.0

Gotcha. :-)

Kurt's questions are pointing directly to the cause of the issue.
Thanks (and for your additional and correct help too), Kurt.

Cups daemon is working then as designed: it's only allowing from a
specified network to do admin tasks. Remember, if you change the ip
address of your ethernet card, then the @LOCAL macro is changing with
that too.

The former allowing subnet 10.230.199.x/255.255.255.0 (= @LOCAL) is
changed by that move: the new subnet to 10.230.189.x/255.255.255.0 can
now do the tasks. Which means noone is any longer allowed to do admin
tasks from 10.230.199.x, but from 10.230.189.x

You can fix this in too ways, and everytime /etc/cups/cupsd.conf needs
to be modified:
1. Either create an explicit rule to allow admin tasks from
   10.230.199.0/255.255.255.0 and modify the </admin> section
   appropriate:
     <Location /admin>
       [...]
       Allow 10.230.199.0/255.255.255.0
     </Location>
     <Location /admin/conf>
       [...]
       Allow 10.230.199.0/255.255.255.0
     </Location>
2. Or change your subnet mask to 255.255.0.0, and allow everyone (in
   changing so) doing admin tasks

and a "/etc/init.d/cups restart" after changing modifying config file
is necessary: to notify daemon about reread file and change
appropriate. To point it out: a reboot is not neccessary to do so.

The final decission which of both solution to use, is up to you.

and I can suggest you reading Kurts helpful comments in previous
e-mail regarding outdated config params, etc. Thanks.

Regards,
	Klaus.
-- 
Klaus Singvogel
SUSE LINUX Products GmbH
Maxfeldstr. 5                     E-Mail: Klaus.Singvogel at SuSE.de
90409 Nuernberg                   Phone: +49 (0) 911 740530
Germany                           GnuPG-Key-ID: 1024R/5068792D  1994-06-27

SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)





More information about the cups mailing list