View previous topic :: View next topic |
Author |
Message |
Animatrix Guru
Joined: 13 May 2006 Posts: 480 Location: France - Gard (30)
|
Posted: Sun Jul 06, 2008 7:48 pm Post subject: [CUPS] Imprimante en réseau |
|
|
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 |
|
|
ghoti Advocate
Joined: 30 Dec 2002 Posts: 3634 Location: Belgium
|
Posted: Sun Jul 06, 2008 9:15 pm Post subject: |
|
|
Tu as bien redémarré le daemon cupsd pour prendre tes modifs en compte ? |
|
Back to top |
|
|
Animatrix Guru
Joined: 13 May 2006 Posts: 480 Location: France - Gard (30)
|
Posted: Mon Jul 07, 2008 8:59 am Post subject: |
|
|
ghoti wrote: | Tu as bien redémarré le daemon cupsd pour prendre tes modifs en compte ? | Oui et toujours rien :'( |
|
Back to top |
|
|
nico_calais l33t
Joined: 09 Jun 2005 Posts: 628 Location: Saint Julien en Genevois
|
Posted: Mon Jul 07, 2008 9:18 am Post subject: |
|
|
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 |
|
|
-KuRGaN- Veteran
Joined: 05 Dec 2004 Posts: 1142 Location: Besançon (25) [FRANCE]
|
Posted: Mon Jul 07, 2008 9:50 am Post subject: |
|
|
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 |
|
|
Animatrix Guru
Joined: 13 May 2006 Posts: 480 Location: France - Gard (30)
|
Posted: Tue Jul 08, 2008 2:31 pm Post subject: |
|
|
-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 |
|
|
-KuRGaN- Veteran
Joined: 05 Dec 2004 Posts: 1142 Location: Besançon (25) [FRANCE]
|
Posted: Wed Jul 09, 2008 8:36 am Post subject: |
|
|
Donc il manque plus qu'un petit résolu ans le titre. _________________ Knight Gent00 Industries RiDeR !!!! |
|
Back to top |
|
|
|