PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Problem mit dem inetd



iGEL
30.11.01, 12:55
Moin!

Ich habe nach einigem hin und her mit verschiedenen Servern festgestellt, dass der inetd nicht so tut wie er soll. Er macht nämlich gar nix :(

Also, zunächst mal meine /etc/inetd.conf:

# See "man 8 inetd" for more information.
#
# If you make changes to this file, either reboot your machine or send the
# inetd a HUP signal:
# Do a "ps x" as root and look up the pid of inetd. Then do a
# "kill -HUP <pid of inetd>".
# The inetd will re-read this file whenever it gets that signal.
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
# [kommentare gekürzt]
# chargen dgram udp wait root internal
time stream tcp nowait root internal
time dgram udp wait root internal
#
# [...]
#ftp stream tcp nowait root /usr/sbin/tcpd proftpd
telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd
#
# [...]
#
finger stream tcp nowait nobody /usr/sbin/tcpd in.fingerd -u
# systat stream tcp nowait nobody /usr/sbin/tcpd /bin/ps -auwwx
# [...]
auth stream tcp wait nobody /usr/sbin/in.identd in.identd -P/dev/null
#
# [..]
nntp stream tcp nowait news /usr/local/sbin/leafnode
# End of inetd.conf.

Die hosts.deny ist leer, der Firewall sollte (jetzt :mad: ) auch nix mehr blocken. Ich hab ihn zur Sicherheit nochmal angehängt.

Aber bei allen diesen Diensten bekomme ich nun folgende Fehlermeldung:
<i>igel@lorien:~$ telnet inder
Trying 192.168.100.1...
telnet: Unable to connect to remote host: Connection refused</i>

wenn ich den inetd mit -d starte, zeigt dieser auch nix an. Gibt es ne Möglichkeit, mir alle Ports anzeigen zu lassen, auf denen der inetd lauscht?

Was kann ich sonst noch tun? Ich steig sonst bald auf xinetd um ;)

Danke schon mal,
Johannes

billsucks
03.12.01, 18:30
probier mal hosts

geronet
03.12.01, 18:39
mit netstat siehst du alle verbundenen kanäle..

netstat -a zeigt alle.

iGEL
09.12.01, 16:40
Moin!

Wenn ich <i>netstat -a</i> ausführe, bekomme ich dies hier:


root@InderNett:~# netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:1024 *:* LISTEN
tcp 0 0 *:742 *:* LISTEN
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 *:www *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 ::ffff:192.168.100.:ssh ::ffff:192.168.100:2871 ESTABLISHED
udp 0 0 *:1024 *:*
udp 0 0 *:2049 *:*
udp 0 0 *:1026 *:*
udp 0 0 *:723 *:*
udp 0 0 *:740 *:*
udp 0 0 *:sunrpc *:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 7 [ ] DGRAM 88 /dev/log
unix 2 [ ] DGRAM 234
unix 2 [ ] DGRAM 230
unix 2 [ ] DGRAM 99
unix 2 [ ] DGRAM 95
unix 2 [ ] DGRAM 90
root@InderNett:~# ps aux | grep inetd
root 110 0.0 1.8 1380 568 ? S 00:55 0:00 /usr/sbin/inetd
root 189 0.0 1.5 1328 452 pts/1 S 03:18 0:00 grep inetd

Es scheint wirklich so zu sein, dass inetd nicht auf den Ports lauscht, oder sehe ich das falsch (ganz schlau werd ich aus der Ausgabe leider nicht)? inetd läuft ja, wie das <i>ps aux | grep inetd</i> zeigt.

Danke schonmal für den Tipp,

Johannes

tonice
10.12.01, 10:25
versuch mal netstat -l -p

das sollte dir auch die Programme zeigen, die auf den Ports "lauschen"

Hotnine
10.12.01, 15:46
hi!

hast du schon mal in die /var/log/messages geschaut? vielleicht hast du da ne fehlermeldung drinne, das der tcpd fehlt. bei mir lief auch nichts und daran lags :)

CU Till