Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[CUPS] Imprimante en réseau
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Animatrix
Guru
Guru


Joined: 13 May 2006
Posts: 480
Location: France - Gard (30)

PostPosted: Sun Jul 06, 2008 7:48 pm    Post subject: [CUPS] Imprimante en réseau Reply with quote

Bonjour à tous !!

J'aimerais mettre en réseau mon imprimante, entre deux postes Linux.
Donc j'ai vu qu'il fallait utiliser le protocole IPP.

J'ai donc utilisé ce fichier de configuration :

Code:
LogLevel info
SystemGroup lpadmin
Listen *:631
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseAddress @LOCAL
DefaultAuthType Basic
<Location />
  Allow localhost
  Allow 192.168.0.*
  Deny all
  # Allow shared printing and remote administration...
  Order allow,deny
  Allow all
</Location>
<Location /admin>
  Encryption Required
  Allow localhost
  Allow 192.168.0.*
  Deny all
  # Allow remote administration...
  Order allow,deny
  Allow all
</Location>
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  # Allow remote access to the configuration files...
  Order allow,deny
  Allow all
</Location>
<Policy default>
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>


Seulement en localhost, j'ai totalement accès à l'imprimante.
Mais en passant par l'adresse ip de l'hote plus rien, je tombe sur un 403 Forbidden, même en essayant depuis la machine hote.

Savez-vous d'où peut provenir ce problème ?
Back to top
View user's profile Send private message
ghoti
Advocate
Advocate


Joined: 30 Dec 2002
Posts: 3580
Location: Belgium

PostPosted: Sun Jul 06, 2008 9:15 pm    Post subject: Reply with quote

Tu as bien redémarré le daemon cupsd pour prendre tes modifs en compte ?
Back to top
View user's profile Send private message
Animatrix
Guru
Guru


Joined: 13 May 2006
Posts: 480
Location: France - Gard (30)

PostPosted: Mon Jul 07, 2008 8:59 am    Post subject: Reply with quote

ghoti wrote:
Tu as bien redémarré le daemon cupsd pour prendre tes modifs en compte ?
Oui et toujours rien :'(
Back to top
View user's profile Send private message
nico_calais
l33t
l33t


Joined: 09 Jun 2005
Posts: 628
Location: Saint Julien en Genevois

PostPosted: Mon Jul 07, 2008 9:18 am    Post subject: Reply with quote

Tu es assé par l'interface web du seruer cups pour ajouter ton imprimante ?

https://IP_serveur:631
_________________
"Unix IS user friendly... It's just selective about who its friends are." — Tollef Fog Heen tollef@add.no
Back to top
View user's profile Send private message
-KuRGaN-
Veteran
Veteran


Joined: 05 Dec 2004
Posts: 1142
Location: Besançon (25) [FRANCE]

PostPosted: Mon Jul 07, 2008 9:50 am    Post subject: Reply with quote

Et changeant la conf comme ceci:
Code:

<Location />
  Order deny,allow
  Deny from all
  Allow localhost
  Allow 192.168.0.*
</Location>

_________________
Knight Gent00 Industries RiDeR !!!!
Back to top
View user's profile Send private message
Animatrix
Guru
Guru


Joined: 13 May 2006
Posts: 480
Location: France - Gard (30)

PostPosted: Tue Jul 08, 2008 2:31 pm    Post subject: Reply with quote

-KuRGaN- wrote:
Et changeant la conf comme ceci:
Code:

<Location />
  Order deny,allow
  Deny from all
  Allow localhost
  Allow 192.168.0.*
</Location>
En effet le problème venait bien de là.
Back to top
View user's profile Send private message
-KuRGaN-
Veteran
Veteran


Joined: 05 Dec 2004
Posts: 1142
Location: Besançon (25) [FRANCE]

PostPosted: Wed Jul 09, 2008 8:36 am    Post subject: Reply with quote

Donc il manque plus qu'un petit résolu ans le titre.
_________________
Knight Gent00 Industries RiDeR !!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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