LINUX.ORG.RU
ФорумAdmin

Немогу подключится к http://localhost:631- CUPS server.


0

0

Кто-нить сталкивался с этой проблемой ??
Система: Gentoo Linux
Поставил CUPS - emerge cups, запустил cupsd, открываю браузер, набираю http://localhost:631 - Host not found :(

netstat -la|grep 631
tcp        0      0 *:631       *:*                     LISTEN
udp        0      0 *:631       *:*

ps -Af|grep cupsd
root      5521     1  0 12:54 ?        00:00:00 /usr/sbin/cupsd

Где копать - незнаю :(
anonymous

Попробуй http://127.0.0.1:631/ если получиться подключиться, то надо поправить файл /etc/hosts

Vlad_Ts ★★★★★
()

Забыл сказать, что фаервол не включен.

#iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination

Chain FORWARD (policy ACCEPT) target prot opt source destination

Chain OUTPUT (policy ACCEPT) target prot opt source destination

Конфиг /etc/cups/cupsd.conf

ServerName GHost ServerAdmin root@GHost AccessLog /var/log/cups/access_log DocumentRoot /usr/share/cups/docs ErrorLog /var/log/cups/error_log LogLevel debug2 MaxLogSize 1048576 PageLog /var/log/cups/page_log MaxJobsPerUser 0 RemoteRoot root User lp Group lp Port 631 MaxClients 1000000000 BrowseAddress@IF(eth1) BrowseShortNames Yes SystemGroup lp <Location /> Order Deny,Allow Deny From All Allow From 127.0.0.1 Allow From 192.168.15.254 Allow From 192.168.* Allow From @LOCAL </Location> AuthType None <Location /admin> AuthType Basic AuthClass System Order Deny,Allow Deny From All Allow From 127.0.0.1 Allow From 192.168.* </Location>

anonymous
()
Ответ на: комментарий от anonymous

http://127.0.0.1:631 - тоже самое :(

А теперь с форматированием...

#iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Конфиг /etc/cups/cupsd.conf

ServerName GHost
ServerAdmin root@GHost
AccessLog /var/log/cups/access_log
DocumentRoot /usr/share/cups/docs
ErrorLog /var/log/cups/error_log
LogLevel debug2
MaxLogSize 1048576
PageLog /var/log/cups/page_log
MaxJobsPerUser 0
RemoteRoot root
User lp
Group lp
Port 631
MaxClients 1000000000
BrowseAddress@IF(eth1)
BrowseShortNames Yes
SystemGroup lp
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.15.254
Allow From 192.168.*
Allow From @LOCAL
</Location>
AuthType None
<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.*
</Location>

anonymous
()
Ответ на: комментарий от anonymous

в свойствах браузера стоит прокси?
телнетом на купс пробовал? (после коннекта GET / HTTP/1.0 и два ентера)

anonymous
()
Ответ на: комментарий от anonymous

Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.*

---------------------------

Order Deny,Allow
Allow From 127.0.0.1
Allow From 192.168.*
Deny From All

Попробуй так. Напиши, что получилось.

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.