{"id":2677,"date":"2025-10-15T08:00:00","date_gmt":"2025-10-15T06:00:00","guid":{"rendered":"https:\/\/www.fuhselab.de\/?p=2677"},"modified":"2025-04-21T10:56:45","modified_gmt":"2025-04-21T08:56:45","slug":"xinetd","status":"publish","type":"post","link":"https:\/\/www.fuhselab.de\/index.php\/2025\/10\/15\/xinetd\/","title":{"rendered":"Xinetd"},"content":{"rendered":"\n<p><br>In diesem Artikel geht es um den \u201cxinitd\u201c \u2013 der extended Version des \u201cinetd\u201c\u2026<\/p>\n\n\n\n<!--more-->\n\n\n\n<p><strong>Installation von xinetd:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>sudo apt install xinetd<\/li>\n<\/ul>\n\n\n\n<p>Nach der Installation findet sich im etc-Ordner auch die Konfigurationsdatei des xinetd.<\/p>\n\n\n\n<p><strong>Konfiguration von xinetd:<\/strong><\/p>\n\n\n\n<p>Die Konfiguration von xinetd erfolgt in der Datei \u201cetc\/xinetd.conf\u201c. Leerzeilen oder Zeilen mit Raute-Zeichen werden ignoriert. Das Raute-Zeichen markiert einen Kommentar. Anders als der inetd braucht der xinetd keinen Neustart \u2013 es reicht wenn ein reload durchgef\u00fchrt wird\u2026dazu dient folgender Befehl:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>sudo \/etc\/init.d\/xinetd reload<\/li>\n<\/ul>\n\n\n\n<p>Die xinetd Konfigurationsdatei besteht aus einzelnen Bl\u00f6cken \u2013 defaults oder service-Bl\u00f6cken\u2026 Direkt nach der Installation ist die Konfigurationsdatei relativ leer. Ein defaults-Block wartet darauf mit Inhalt gef\u00fcllt zu werden und per \u201cincludedir\u201c wird auf einen Unterordner verlinkt\u2026 F\u00fcr die ersten Experimente \u00f6ffnen wir mit root Rechten den Texteditor und die xinetd-Datei und f\u00fcgen folgenden Inhalt in den defaults-Bereich ein\u2026<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>sudo mousepad<\/li>\n\n\n\n<li>log_type = SYSLOG daemon<\/li>\n\n\n\n<li>log_on_success = HOST PID<\/li>\n\n\n\n<li>log_on_failure = HOST<\/li>\n\n\n\n<li>per_source = 5<\/li>\n<\/ul>\n\n\n\n<p>Anschlie\u00dfend den reload nicht vergessen\u2026<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>sudo \/etc\/init.d\/xinetd reload<\/li>\n<\/ul>\n\n\n\n<p><strong>Praxisbeispiel mit Hallo Welt:<\/strong><\/p>\n\n\n\n<p>In die xinetd-Datei wird folgender Inhalt eingef\u00fcgt:<\/p>\n\n\n\n<p><code>service test<\/code><\/p>\n\n\n\n<p><code>{<\/code><\/p>\n\n\n\n<p><code>socket_type = stream<\/code><\/p>\n\n\n\n<p><code>protocol = tcp<\/code><\/p>\n\n\n\n<p><code>port = 3000<\/code><\/p>\n\n\n\n<p><code>type = UNLISTED<\/code><\/p>\n\n\n\n<p><code>wait = no<\/code><\/p>\n\n\n\n<p><code>user = nobody<\/code><\/p>\n\n\n\n<p><code>server = \/bin\/echo<\/code><\/p>\n\n\n\n<p><code>server_args = Hallo Welt!<\/code><\/p>\n\n\n\n<p><code>}<\/code><\/p>\n\n\n\n<p>Wenn man im Webbrowser jetzt die Adresse \u201clocalhost:3000\u201c aufruft, bekommt man die Meldung ausgegeben \u2013 so wie sie hinter \u201cserver_args\u201c eingetragen wurde\u2026 Sollte ein Verbindungsfehler angezeigt werden, bringt eventuell die F5-Taste die L\u00f6sung. Im Zweifel einfach mehrmals F5 dr\u00fccken und die Seite neu laden lassen\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In diesem Artikel geht es um den \u201cxinitd\u201c \u2013 der extended Version des \u201cinetd\u201c\u2026<\/p>\n","protected":false},"author":1,"featured_media":791,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[21],"class_list":["post-2677","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux-gruppe-peine"],"_links":{"self":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/2677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/comments?post=2677"}],"version-history":[{"count":1,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/2677\/revisions"}],"predecessor-version":[{"id":2678,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/2677\/revisions\/2678"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/media\/791"}],"wp:attachment":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/media?parent=2677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/categories?post=2677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/tags?post=2677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}