1 (edytowany przez allucard018 2015-06-17 08:00:29)

Temat: CUPS - brak dostępu do GUI

Dzień dobry ;-).
Postępowałem zgodnie z paroma poradnikami odnośnie cups, lecz za każdym razem zatrzymywałem się na dostępie do GUI. To skłoniło mnie do założenia tematu.

Gdy próbuje wejść na 192.168.1.1:631 (adres routera to właśnie 192.168.1.1) otrzymuje komunikat o niemożności nawiązania połączenia.
Poniżej zamieszczam garść informacji.

openWrt:

OpenWrt Barrier Breaker (r44952)
Build time: 2015-03-28 07:45 CET
Cezary Jackiewicz (obsy), [url]http://eko.one.pl[/url]
Machine: TP-Link TL-MR3420 v2                                
 | Uptime: 0d, 00:07:58                                         
 | Load: 0.00 0.05 0.05                                         
 | Flash: total: 942.6MB, free: 876.0MB, used: 1%               
 | Memory: total: 28.2MB, free: 13.7MB, used: 51%               
 | WAN: 192.168.2.29, proto: dhcp                               
 | LAN: 192.168.1.1                                             
 | WLAN: mode: ap, ssid: openWrt, channel: 6, conn: 1           
 --------------------------------------------------------

   
+ doinstalowane Lucy, samba, proftpd, miniDLNA

plik konfiguracyjny:

########################################################################
#                                                                      #
# This is the CUPS configuration file.  If you are familiar with       #
# Apache or any of the other popular web servers, we've followed the   #
# same format.  Any configuration variable used here has the same      #
# semantics as the corresponding variable in Apache.  If we need       #
# different functionality then a different name is used to avoid       #
# confusion...                                                         #
#                                                                      #
########################################################################


AccessLog syslog
ErrorLog syslog
LogLevel info
PageLog syslog
PreserveJobHistory No
PreserveJobFiles No
AutoPurgeJobs Yes
MaxJobs 25
MaxPrinterHistory 10
#Printcap /etc/printcap
#PrintcapFormat BSD
RequestRoot /var/cups
#RemoteRoot remroot
User root
Group root
RIPCache 512k
TempDir /var/cups
Port 631
HostNameLookups Off
KeepAlive On
Browsing On
BrowseProtocols cups

<Location />
Order Deny,Allow
Allow From 127.0.0.1
Allow From 192.168/24
</Location>

<Location /admin>
AuthType Basic
AuthClass Anonymous
Order Allow,Deny
Allow From All
</Location>

Log:

Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: Loaded configuration file "/etc/cups/cupsd.conf"
Wed Jun 17 07:55:42 2015 lpr.notice cupsd[1533]: Group and SystemGroup cannot use the same groups.
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: Resetting Group to "nobody"...
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: Configured for up to 100 clients.
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: Allowing up to 100 client connections per host.
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: Creating CUPS default administrative policy:
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: <Policy default>
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: JobPrivateAccess default
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: JobPrivateValues default
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: SubscriptionPrivateAccess default
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: SubscriptionPrivateValues default
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: <Limit Create-Job Print-Job Print-URI Validate-Job>
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: Order Deny,Allow
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: </Limit>
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: <Limit Send-Document Send-URI Cancel-Job 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 Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Authenticate-Job CUPS-Get-Document>
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: Order Deny,Allow
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: Require user @OWNER @SYSTEM
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: </Limit>
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: <Limit Pause-Printer Resume-Printer Set-Printer-Attributes 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 Cancel-Jobs CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: Order Deny,Allow
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: AuthType Default
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: Require user @SYSTEM
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: </Limit>
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: <Limit All>
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: Order Deny,Allow
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: </Limit>
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: </Policy>
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: Full reload is required.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "texttops" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "texttops" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetops" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetops" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetops" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetops" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetops" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetops" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetops" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetops" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetops" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetops" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "bannertops" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetoraster" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetoraster" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetoraster" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetoraster" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetoraster" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetoraster" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetoraster" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetoraster" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetoraster" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetoraster" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetoraster" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetoraster" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetoraster" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "imagetoraster" not found.
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: Filter "rastertopwg" not found.
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: Loaded MIME database from "/usr/share/cups/mime" and "/etc/cups": 35 types, 2 filters...
Wed Jun 17 07:55:42 2015 lpr.err cupsd[1533]: cupsdLoadBanners: Unable to open banner directory "/usr/share/cups/banners": No such file or directory
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: Loading job cache file "/var/cache/cups/job.cache"...
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: Full reload complete.
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: Cleaning out old files in "/var/cups"...
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: Cleaning out old files in "/var/cache/cups"...
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: Listening to [v1.::]:631 on fd 4...
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: Listening to 0.0.0.0:631 on fd 6...
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: Resuming new connection processing...

Niepokojący komunikat:

Wed Jun 17 07:55:42 2015 lpr.notice cupsd[1533]: Group and SystemGroup cannot use the same groups.
Wed Jun 17 07:55:42 2015 lpr.info cupsd[1533]: Resetting Group to "nobody"...

I te wszystkie filtry...Tak czy owak... Dostęp do GUI nadal powinien być możliwy...(?)

Firewall:

config rule
    option _name 'Drukarka'
    option proto 'tcp'
    option target 'ACCEPT'
    option dest_port '631'
    option src '*'
    option dest '*'

Odnośnie sekcji:
"<Location />
Order Deny,Allow"
Próbowałem rożnych kombinacji, min Allow From 192.168.1.*, Allow From 192.168.1.1/255.255.225.0, Allow From 192.168.1.135, Allow From All, lecz bez skutku. Komputer, z którego chce się połączyć ma adres 192.168.1.135

2

Odp: CUPS - brak dostępu do GUI

Allow from All  allow form 192.168.1.*

I tan nasłuchuje, tą regułę w firewallu wywal - z lanu wszystko jest otworzone.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: CUPS - brak dostępu do GUI

Dziękuje Panie Cezary. Zarówno to co Pan polecił jak i to z mojego confingu jest w porządku.
Problem leżał gdzie indziej - firewall, ale na komputerze ;-x...
Gafa, że szok ;-)... Wczoraj wyłączyłem co prawda zaporę czasowo. Zainstalowałem p910nd. Bawiłem się z nim, ale drukarki nie obsługiwał. A później zapomniałem, że zapora znów jest aktywna x.x. Cholera... a jeszcze specjalnie wyłączyłem zaporę czasowo, aby później nie musieć pamiętać o włączeniu. I zonk... zapomniałem w drugą stronę (że już działa) ;-D.

4

Odp: CUPS - brak dostępu do GUI

smile

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.