tachtler:time_protocol_archlinux
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende ÜberarbeitungLetzte ÜberarbeitungBeide Seiten der Revision | ||
tachtler:time_protocol_archlinux [2020/12/31 11:07] – [Time Protocol Archlinux] klaus | tachtler:time_protocol_archlinux [2021/01/10 12:21] – [Installation] klaus | ||
---|---|---|---|
Zeile 7: | Zeile 7: | ||
Das "Time Protocol" | Das "Time Protocol" | ||
- | Um einen " | + | Um einen " |
:!: **HINWEIS ** - Nachfolgend soll die Installation eines " | :!: **HINWEIS ** - Nachfolgend soll die Installation eines " | ||
- | |||
- | :!: **HINWEIS** - **IPv6 soll __NICHT__ genutzt werden!!!** | ||
Ab hier werden zur Ausführung nachfolgender Befehle **'' | Ab hier werden zur Ausführung nachfolgender Befehle **'' | ||
Zeile 22: | Zeile 20: | ||
Zur Installation eines " | Zur Installation eines " | ||
- | * **'' | + | * **'' |
installiert werden. | installiert werden. | ||
Um eine " | Um eine " | ||
- | * **'' | + | * **'' |
installiert werden. | installiert werden. | ||
Mit nachfolgendem Befehl, wird das Pakete **'' | Mit nachfolgendem Befehl, wird das Pakete **'' | ||
< | < | ||
- | # pacman -S xinetd | + | # pacman |
+ | resolving dependencies... | ||
+ | looking for conflicting packages... | ||
+ | |||
+ | Package (1) New Version | ||
+ | |||
+ | extra/ | ||
+ | |||
+ | Total Download Size: 0.10 MiB | ||
+ | Total Installed Size: 0.23 MiB | ||
+ | |||
+ | :: Proceed with installation? | ||
+ | :: Retrieving packages... | ||
+ | | ||
+ | (1/1) checking keys in keyring | ||
+ | (1/1) checking package integrity | ||
+ | (1/1) loading package files [###################### | ||
+ | (1/1) checking for file conflicts | ||
+ | (1/1) checking available disk space [###################### | ||
+ | :: Running pre-transaction hooks... | ||
+ | (1/1) Performing snapper pre snapshots for the following configurations... | ||
+ | ==> root: 19 | ||
+ | :: Processing package changes... | ||
+ | (1/1) installing xinetd | ||
+ | Optional dependencies for xinetd | ||
+ | perl: for xconv.pl script [installed] | ||
+ | :: Running post-transaction hooks... | ||
+ | (1/3) Reloading system manager configuration... | ||
+ | (2/3) Arming ConditionNeedsUpdate... | ||
+ | (3/3) Performing snapper post snapshots for the following configurations... | ||
+ | ==> root: 20 | ||
</ | </ | ||
Zeile 37: | Zeile 65: | ||
< | < | ||
# pacman -Qil xinetd | # pacman -Qil xinetd | ||
+ | Name : xinetd | ||
+ | Version | ||
+ | Description | ||
+ | Architecture | ||
+ | URL : https:// | ||
+ | Licenses | ||
+ | Groups | ||
+ | Provides | ||
+ | Depends On : libtirpc | ||
+ | Optional Deps : perl: for xconv.pl script [installed] | ||
+ | Required By : None | ||
+ | Optional For : None | ||
+ | Conflicts With : None | ||
+ | Replaces | ||
+ | Installed Size : 230.60 KiB | ||
+ | Packager | ||
+ | Build Date : Mon 17 Aug 2020 02:48:12 PM CEST | ||
+ | Install Date : Thu 31 Dec 2020 11:11:34 AM CET | ||
+ | Install Reason | ||
+ | Install Script | ||
+ | Validated By : Signature | ||
+ | |||
+ | xinetd /etc/ | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd /usr/ | ||
+ | xinetd /usr/bin/ | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd /usr/lib/ | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd /usr/share/ | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
+ | xinetd / | ||
</ | </ | ||
Mit nachfolgendem Befehl, wird das Pakete **'' | Mit nachfolgendem Befehl, wird das Pakete **'' | ||
< | < | ||
- | # pikaur -S rdate | + | # pikaur |
+ | Reading repository package databases... | ||
+ | Reading local package database... | ||
+ | Resolving AUR dependencies... | ||
+ | looking for conflicting AUR packages... | ||
+ | Not showing diff for rdate package (--noconfirm) | ||
+ | :: Skipping review of PKGBUILD for rdate package (--noconfirm) | ||
+ | |||
+ | |||
+ | :: Starting the build: | ||
+ | ... | ||
+ | ... | ||
+ | ... | ||
+ | Finished with result: success | ||
+ | Main processes terminated with: code=exited/ | ||
+ | Service runtime: 4.921s | ||
+ | |||
+ | loading packages... | ||
+ | resolving dependencies... | ||
+ | looking for conflicting packages... | ||
+ | |||
+ | Package (1) New Version | ||
+ | |||
+ | rdate 1.5-3 0.01 MiB | ||
+ | |||
+ | Total Installed Size: 0.01 MiB | ||
+ | |||
+ | :: Proceed with installation? | ||
+ | (1/1) checking keys in keyring | ||
+ | (1/1) checking package integrity | ||
+ | (1/1) loading package files [###################### | ||
+ | Y0/1) checking for file conflicts | ||
+ | (1/1) checking for file conflicts | ||
+ | (1/1) checking available disk space [###################### | ||
+ | :: Running pre-transaction hooks... | ||
+ | (1/1) Performing snapper pre snapshots for the following configurations... | ||
+ | ==> root: 21 | ||
+ | :: Processing package changes... | ||
+ | (1/1) installing rdate | ||
+ | :: Running post-transaction hooks... | ||
+ | (1/2) Arming ConditionNeedsUpdate... | ||
+ | (2/2) Performing snapper post snapshots for the following configurations... | ||
+ | ==> root: 22 | ||
</ | </ | ||
Zeile 47: | Zeile 175: | ||
< | < | ||
# pikaur -Qil rdate | # pikaur -Qil rdate | ||
+ | Name : rdate | ||
+ | Version | ||
+ | Description | ||
+ | Architecture | ||
+ | URL : http:// | ||
+ | Licenses | ||
+ | Groups | ||
+ | Provides | ||
+ | Depends On : glibc | ||
+ | Optional Deps : None | ||
+ | Required By : None | ||
+ | Optional For : None | ||
+ | Conflicts With : None | ||
+ | Replaces | ||
+ | Installed Size : 14.88 KiB | ||
+ | Packager | ||
+ | Build Date : Thu 31 Dec 2020 11:12:43 AM CET | ||
+ | Install Date : Thu 31 Dec 2020 11:12:48 AM CET | ||
+ | Install Reason | ||
+ | Install Script | ||
+ | Validated By : None | ||
+ | |||
+ | rdate /usr/ | ||
+ | rdate /usr/bin/ | ||
+ | rdate / | ||
+ | rdate /usr/share/ | ||
+ | rdate / | ||
+ | rdate / | ||
+ | rdate / | ||
</ | </ | ||
Zeile 54: | Zeile 211: | ||
< | < | ||
# systemctl enable xinetd.service | # systemctl enable xinetd.service | ||
+ | Created symlink / | ||
</ | </ | ||
Zeile 60: | Zeile 217: | ||
< | < | ||
# systemctl list-unit-files --type=service | grep -E ^xinetd | # systemctl list-unit-files --type=service | grep -E ^xinetd | ||
+ | xinetd.service | ||
</ | </ | ||
bzw. | bzw. | ||
Zeile 71: | Zeile 228: | ||
< | < | ||
# systemctl status xinetd | # systemctl status xinetd | ||
+ | ● xinetd.service - A secure replacement for inetd | ||
+ | | ||
+ | | ||
</ | </ | ||
Zeile 87: | Zeile 247: | ||
< | < | ||
# ls -l / | # ls -l / | ||
+ | total 52 | ||
+ | -rw-r--r-- 1 root root 293 Aug 17 14:48 chargen | ||
+ | -rw-r--r-- 1 root root 313 Aug 17 14:48 chargen-udp | ||
+ | -rw-r--r-- 1 root root 293 Aug 17 14:48 daytime | ||
+ | -rw-r--r-- 1 root root 313 Aug 17 14:48 daytime-udp | ||
+ | -rw-r--r-- 1 root root 293 Aug 17 14:48 discard | ||
+ | -rw-r--r-- 1 root root 312 Aug 17 14:48 discard-udp | ||
+ | -rw-r--r-- 1 root root 285 Aug 17 14:48 echo | ||
+ | -rw-r--r-- 1 root root 304 Aug 17 14:48 echo-udp | ||
+ | -rw-r--r-- 1 root root 253 Aug 17 14:48 servers | ||
+ | -rw-r--r-- 1 root root 254 Aug 17 14:48 services | ||
+ | -rw-r--r-- 1 root root 158 Sep 6 17:32 tftp | ||
+ | -rw-r--r-- 1 root root 319 Aug 17 14:48 time | ||
+ | -rw-r--r-- 1 root root 313 Aug 17 14:48 time-udp | ||
</ | </ | ||
Zeile 104: | Zeile 278: | ||
Nachfolgend dargestellte Änderungen sollten an der Konfigurationsdatei durchgeführt werden (**komplette Konfigurationsdatei**): | Nachfolgend dargestellte Änderungen sollten an der Konfigurationsdatei durchgeführt werden (**komplette Konfigurationsdatei**): | ||
<code ini> | <code ini> | ||
+ | # default: off | ||
+ | # description: | ||
+ | # which is used by rdate. | ||
+ | service time | ||
+ | { | ||
+ | type = INTERNAL | ||
+ | id = time-stream | ||
+ | socket_type = stream | ||
+ | protocol | ||
+ | user = root | ||
+ | wait = no | ||
+ | # Tachtler | ||
+ | # default: | ||
+ | disable | ||
+ | } | ||
</ | </ | ||
Zeile 111: | Zeile 300: | ||
Nachfolgend dargestellte Änderungen sollten an der Konfigurationsdatei durchgeführt werden (**komplette Konfigurationsdatei**): | Nachfolgend dargestellte Änderungen sollten an der Konfigurationsdatei durchgeführt werden (**komplette Konfigurationsdatei**): | ||
<code ini> | <code ini> | ||
+ | # default: off | ||
+ | # description: | ||
+ | service time | ||
+ | { | ||
+ | type = INTERNAL UNLISTED | ||
+ | id = time-dgram | ||
+ | socket_type = dgram | ||
+ | protocol | ||
+ | user = root | ||
+ | wait = yes | ||
+ | # Tachtler | ||
+ | # default: disable | ||
+ | disable | ||
+ | port = 37 | ||
+ | } | ||
</ | </ | ||
Zeile 179: | Zeile 383: | ||
Um diese '' | Um diese '' | ||
< | < | ||
+ | # iptables-save -f / | ||
</ | </ | ||
Zeile 192: | Zeile 396: | ||
< | < | ||
# ps auxwf | grep xinetd | # ps auxwf | grep xinetd | ||
+ | root 8334 0.0 0.1 | ||
+ | root 8332 0.4 0.1 | ||
</ | </ | ||
bzw. nachfolgendem Befehl überprüft werden: | bzw. nachfolgendem Befehl überprüft werden: | ||
Zeile 198: | Zeile 403: | ||
< | < | ||
# systemctl status xinetd.service | # systemctl status xinetd.service | ||
+ | ● xinetd.service - A secure replacement for inetd | ||
+ | | ||
+ | | ||
+ | Main PID: 8332 (xinetd) | ||
+ | Tasks: 1 (limit: 2358) | ||
+ | | ||
+ | | ||
+ | | ||
+ | Dec 31 11:20:59 vml010 xinetd[8332]: | ||
+ | Dec 31 11:20:59 vml010 xinetd[8332]: | ||
+ | Dec 31 11:20:59 vml010 xinetd[8332]: | ||
+ | Dec 31 11:20:59 vml010 xinetd[8332]: | ||
+ | Dec 31 11:20:59 vml010 xinetd[8332]: | ||
+ | Dec 31 11:20:59 vml010 xinetd[8332]: | ||
+ | Dec 31 11:20:59 vml010 xinetd[8332]: | ||
+ | Dec 31 11:20:59 vml010 xinetd[8332]: | ||
+ | Dec 31 11:20:59 vml010 xinetd[8332]: | ||
+ | Dec 31 11:20:59 vml010 xinetd[8332]: | ||
</ | </ | ||
Auf welchen Ports der '' | Auf welchen Ports der '' | ||
< | < | ||
- | # ss -taubn | grep xinetd | + | # ss -taubpn |
- | + | udp | |
- | </ | + | tcp |
- | + | ||
- | Eine weitere Überprüfung, | + | |
- | < | + | |
- | # systemctl status | + | |
</ | </ | ||
Zeile 221: | Zeile 439: | ||
Befehl zu Abfrage gegen den Zeitserver via **TCP**: | Befehl zu Abfrage gegen den Zeitserver via **TCP**: | ||
< | < | ||
- | # rdate 192.168.0.11 | + | # rdate 192.168.0.20 |
+ | rdate: [192.168.0.20] Thu Dec 31 11:28:39 2020 | ||
</ | </ | ||
Befehl zu Abfrage gegen den Zeitserver via **UDP**: | Befehl zu Abfrage gegen den Zeitserver via **UDP**: | ||
< | < | ||
- | # rdate -u 192.168.0.11 | + | # rdate -u 192.168.0.20 |
+ | rdate: [192.168.0.20] Thu Dec 31 11:29:05 2020 | ||
</ | </ | ||
tachtler/time_protocol_archlinux.txt · Zuletzt geändert: 2022/03/31 05:27 von klaus