• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst]Kann "www.localhost:631" nicht mehr aufruf

Erischa

Member
Hallo,
beim Aufruf von http://127.0.0.1:631 erscheint bloss noch

Code:
Not Found
Die gewünschte Ressource wurde auf diesem Server nicht gefunden.

Bis zum update von SuSE 9.2 auf SuSE 9.3 konnte ich da immer meinen Drucker HP-PSC 750 bedienen.

Ein ping 127.0.0.1:631 ergab

Code:
ping 127.0.0.1:631
ping: unknown host 127.0.0.1:631

und ein netstat -pltn | grep 631 ergab

Code:
netstat -pltn | grep 631
tcp        0      0 0.0.0.0:631             0.0.0.0:*               LISTEN      9470/cupsd

und die /etc/cups/printers.conf sieht wie folgt aus

Code:
# Printer configuration file for CUPS v1.1.23
# Written by cupsd on Mi 10 Aug 2005 20:34:34 CEST
<DefaultPrinter ESDrucker>
Info HPPSC750
Location Privat
DeviceURI ptal:/mlc:usb:PSC_750
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
~
~
~
~
~
~
~
~
~
~
"/etc/cups/printers.conf" 13L, 277C                           1,1         Alles

cups ist ebenfalls gestartet

Code:
/etc/init.d/cups start
Starting cupsd                                                       done



Warum kann ich localhost:631 nicht mehr aufrufen
 
OP
Erischa

Erischa

Member
Hallo,




rm -rf / schrieb:
Code:
iptables -L

ergab in der Konsole

Code:
iptables -L
Chain INPUT (policy DROP)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTAB
LISHED
input_int  all  --  anywhere             anywhere
LOG        all  --  anywhere             anywhere            limit: avg 3/min bu
rst 5 LOG level warning tcp-options ip-options prefix `SFW2-IN-ILL-TARGET '
DROP       all  --  anywhere             anywhere

Chain FORWARD (policy DROP)
target     prot opt source               destination
LOG        all  --  anywhere             anywhere            limit: avg 3/min bu
rst 5 LOG level warning tcp-options ip-options prefix `SFW2-FWD-ILL-ROUTING '

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere            state NEW,RELATED,E
STABLISHED
LOG        all  --  anywhere             anywhere            limit: avg 3/min bu
rst 5 LOG level warning tcp-options ip-options prefix `SFW2-OUT-ERROR '

Chain forward_int (0 references)
target     prot opt source               destination

Chain input_int (1 references)
target     prot opt source               destination
ACCEPT     udp  --  anywhere             anywhere            PKTTYPE = broadcast
 udp dpt:ipp
DROP       all  --  anywhere             anywhere            PKTTYPE = broadcast

ACCEPT     icmp --  anywhere             anywhere            icmp source-quench
ACCEPT     icmp --  anywhere             anywhere            icmp echo-request
ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTAB
LISHED icmp echo-reply
ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTAB
LISHED icmp destination-unreachable
ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTAB
LISHED icmp time-exceeded
ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTAB
LISHED icmp parameter-problem
ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTAB
LISHED icmp timestamp-reply
ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTAB
LISHED icmp address-mask-reply
ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTAB
LISHED icmp protocol-unreachable
ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTAB
LISHED icmp redirect
LOG        tcp  --  anywhere             anywhere            limit: avg 3/min bu
rst 5 tcp dpt:pop3 flags:SYN,RST,ACK/SYN LOG level warning tcp-options ip-option
s prefix `SFW2-INint-ACC-TCP '
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:pop3
ACCEPT     udp  --  anywhere             anywhere            udp dpt:ipp
LOG        tcp  --  anywhere             anywhere            limit: avg 3/min bu                                     rst 5 tcp flags:SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix                                      `SFW2-INint-DROP-DEFLT '
LOG        icmp --  anywhere             anywhere            limit: avg 3/min bu                                     rst 5 LOG level warning tcp-options ip-options prefix `SFW2-INint-DROP-DEFLT '
LOG        udp  --  anywhere             anywhere            limit: avg 3/min bu                                     rst 5 LOG level warning tcp-options ip-options prefix `SFW2-INint-DROP-DEFLT '
LOG        all  --  anywhere             anywhere            limit: avg 3/min bu                                     rst 5 state INVALID LOG level warning tcp-options ip-options prefix `SFW2-INint-                                     DROP-DEFLT-INV '
DROP       all  --  anywhere             anywhere

Chain reject_func (0 references)
target     prot opt source               destination
REJECT     tcp  --  anywhere             anywhere            reject-with tcp-res                                     et
REJECT     udp  --  anywhere             anywhere            reject-with icmp-po                                     rt-unreachable
REJECT     all  --  anywhere             anywhere            reject-with icmp-pr                                     oto-unreachable

hier brauche ich Hilfestellung da ich mich absolut nicht auskenne.
 
A

Anonymous

Gast
ganz logisch, deine firewall blockt cups, bzw alles was auf cups rein will! Man sollte sich schon bewusst darüber sein, was genau eine Firewall macht, und sich dann nicht wundern wenn bestimmte Portanfragen nicht funktionieren ohne die Firewall umzustellen, wie auch immer:
Code:
iptables -A INPUT -p tcp --dport 631 -j ACCEPT
löst dein problem, jetzt würde ich noch den zugriff auf cups nur für bestimmte ips und MACs erlauben, und zwar in der cups.conf, allerdings würde das auch ganz einfach per iptables gehen (ist zuverlässiger)
 
OP
Erischa

Erischa

Member
Hallo,

an die Firewall hatte ich auch schon gedacht und habe sie in Runlevel schon mal deaktiviert ohne Erfolg.
Nun habe ich die Firewall in Runlevel wieder deaktiviert plus in Yast2/Sicherheit und Benutzer/Firewall auf manuell starten gestellt.

Leider bringt ein http://localhost:631 immer noch ein

Code:
Not Found
Die gewünschte Ressource wurde auf diesem Server nicht gefunden.

und iptables -L ergibt

Code:
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

An was könnte es dennoch liegen?
 
OP
Erischa

Erischa

Member
Hallo,

@ rm -rf /

Vielen Dank für deine Hilfe, ich konnte inzwischen den Fehler ausfindig machen.

Es lag an der neuen Druckerinstallation (hplip) dass ich mit Apt auf die Version SuSE 9.3 mitinstalliert habe. Nachdem löschen von hplip habe ich nun wieder Zutritt auf http://127.0.0.1:631
 
Oben