tachtler:time_protocol_archlinux
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
tachtler:time_protocol_archlinux [2020/12/31 11:18] – [/etc/xinetd.d] klaus | tachtler:time_protocol_archlinux [2022/03/31 05:27] (aktuell) – [Installation] klaus | ||
---|---|---|---|
Zeile 20: | Zeile 20: | ||
Zur Installation eines " | Zur Installation eines " | ||
- | * **'' | + | * **'' |
installiert werden. | installiert werden. | ||
Zeile 28: | Zeile 28: | ||
Mit nachfolgendem Befehl, wird das Pakete **'' | Mit nachfolgendem Befehl, wird das Pakete **'' | ||
+ | < | ||
+ | # pacman --noconfirm -S xinetd | ||
+ | </ | ||
+ | ++++ Installationsverlauf | | ||
< | < | ||
# pacman --noconfirm -S xinetd | # pacman --noconfirm -S xinetd | ||
Zeile 61: | Zeile 65: | ||
==> root: 20 | ==> root: 20 | ||
</ | </ | ||
+ | ++++ | ||
Mit nachfolgendem Befehl kann überprüft werden, welche Inhalte mit den Paket **'' | Mit nachfolgendem Befehl kann überprüft werden, welche Inhalte mit den Paket **'' | ||
+ | < | ||
+ | # pacman -Qil xinetd | ||
+ | </ | ||
+ | ++++ Installierte Dateien | | ||
+ | < | ||
< | < | ||
# pacman -Qil xinetd | # pacman -Qil xinetd | ||
Zeile 124: | Zeile 134: | ||
xinetd / | xinetd / | ||
</ | </ | ||
+ | ++++ | ||
Mit nachfolgendem Befehl, wird das Pakete **'' | Mit nachfolgendem Befehl, wird das Pakete **'' | ||
+ | < | ||
+ | # pikaur --noconfirm -S rdate | ||
+ | </ | ||
+ | ++++ Installationsverlauf | | ||
+ | < | ||
< | < | ||
# pikaur --noconfirm -S rdate | # pikaur --noconfirm -S rdate | ||
Zeile 137: | Zeile 153: | ||
:: Starting the build: | :: Starting the build: | ||
- | Running as unit: run-u82.service | + | ... |
- | Press ^] three times within 1s to disconnect TTY. | + | ... |
- | ==> Making package: rdate 1.5-3 (Thu 31 Dec 2020 11:12:43 AM CET) | + | ... |
- | ==> Checking runtime dependencies... | + | |
- | ==> Checking buildtime dependencies... | + | |
- | ==> Retrieving sources... | + | |
- | -> Downloading rdate-1.5.tar.gz... | + | |
- | % Total % Received % Xferd Average Speed | + | |
- | | + | |
- | 100 | + | |
- | 100 83337 100 83337 0 | + | |
- | ==> Validating source files with sha256sums... | + | |
- | rdate-1.5.tar.gz ... Passed | + | |
- | ==> Extracting sources... | + | |
- | -> Extracting rdate-1.5.tar.gz with bsdtar | + | |
- | ==> Starting prepare()... | + | |
- | checking for a BSD-compatible install... / | + | |
- | checking whether build environment is sane... yes | + | |
- | checking for gawk... gawk | + | |
- | checking whether make sets $(MAKE)... yes | + | |
- | checking for gcc... gcc | + | |
- | checking for C compiler default output file name... a.out | + | |
- | checking whether the C compiler works... yes | + | |
- | checking whether we are cross compiling... no | + | |
- | checking for suffix of executables... | + | |
- | checking for suffix of object files... o | + | |
- | checking whether we are using the GNU C compiler... yes | + | |
- | checking whether gcc accepts -g... yes | + | |
- | checking for gcc option to accept ANSI C... none needed | + | |
- | checking for style of include used by make... GNU | + | |
- | checking dependency style of gcc... gcc3 | + | |
- | checking for a BSD-compatible install... / | + | |
- | checking for gethostbyaddr... yes | + | |
- | checking for socket... yes | + | |
- | checking for logwtmp... no | + | |
- | checking for logwtmp in -lutil... yes | + | |
- | checking for getaddrinfo... yes | + | |
- | checking for getnameinfo... yes | + | |
- | checking for adjtime... yes | + | |
- | checking for sigaction... yes | + | |
- | checking return type of signal handlers... void | + | |
- | checking how to run the C preprocessor... gcc -E | + | |
- | checking for egrep... grep -E | + | |
- | checking for ANSI C header files... yes | + | |
- | checking for sys/ | + | |
- | checking for sys/ | + | |
- | checking for stdlib.h... yes | + | |
- | checking for string.h... yes | + | |
- | checking for memory.h... yes | + | |
- | checking for strings.h... yes | + | |
- | checking for inttypes.h... yes | + | |
- | checking for stdint.h... yes | + | |
- | checking for unistd.h... yes | + | |
- | checking time.h usability... yes | + | |
- | checking time.h presence... yes | + | |
- | checking for time.h... yes | + | |
- | checking sys/time.h usability... yes | + | |
- | checking sys/time.h presence... yes | + | |
- | checking for sys/ | + | |
- | checking libutil.h usability... no | + | |
- | checking libutil.h presence... no | + | |
- | checking for libutil.h... no | + | |
- | checking util.h usability... no | + | |
- | checking util.h presence... no | + | |
- | checking for util.h... no | + | |
- | checking utmp.h usability... yes | + | |
- | checking utmp.h presence... yes | + | |
- | checking for utmp.h... yes | + | |
- | checking for unistd.h... (cached) yes | + | |
- | checking for uint32_t... yes | + | |
- | checking for uint16_t... yes | + | |
- | checking for uint8_t... yes | + | |
- | configure: creating ./ | + | |
- | config.status: | + | |
- | config.status: | + | |
- | config.status: | + | |
- | config.status: | + | |
- | Now type ' | + | |
- | ==> Starting build()... | + | |
- | Making all in src | + | |
- | make[1]: Entering directory '/ | + | |
- | make all-am | + | |
- | make[2]: Entering directory '/ | + | |
- | if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -Wunused -Wall -pipe -MT rdate.o -MD -MP -MF " | + | |
- | then mv -f " | + | |
- | rdate.c: In function ‘rdate’: | + | |
- | rdate.c: | + | |
- | 271 | | + | |
- | | ^~~~~~~~ | + | |
- | | | | + | |
- | | unsigned char * | + | |
- | rdate.c: | + | |
- | 141 | rdate_tcp( int fd, struct addrinfo* ainfo, char* buf, int buf_size ) | + | |
- | | ~~~~~~^~~ | + | |
- | rdate.c: | + | |
- | 273 | | + | |
- | | ^~~~~~~~ | + | |
- | | | | + | |
- | | unsigned char * | + | |
- | rdate.c: | + | |
- | 181 | rdate_udp( int fd, struct addrinfo* ainfo, char* buf, int buf_size ) | + | |
- | | ~~~~~~^~~ | + | |
- | gcc -g -O2 -Wunused -Wall -pipe -o rdate rdate.o | + | |
- | make[2]: Leaving directory '/ | + | |
- | make[1]: Leaving directory '/ | + | |
- | make[1]: Entering directory '/ | + | |
- | make[1]: Nothing to be done for ' | + | |
- | make[1]: Leaving directory '/ | + | |
- | ==> Entering fakeroot environment... | + | |
- | ==> Starting package()... | + | |
- | Making install in src | + | |
- | make[1]: Entering directory '/ | + | |
- | make[2]: Entering directory '/ | + | |
- | test -z "/ | + | |
- | / | + | |
- | make[2]: Nothing to be done for ' | + | |
- | make[2]: Leaving directory '/ | + | |
- | make[1]: Leaving directory '/ | + | |
- | make[1]: Entering directory '/ | + | |
- | make[2]: Entering directory '/ | + | |
- | make[2]: Nothing to be done for ' | + | |
- | test -z "/ | + | |
- | / | + | |
- | make[2]: Leaving directory '/ | + | |
- | make[1]: Leaving directory '/ | + | |
- | ==> Tidying install... | + | |
- | -> Removing libtool files... | + | |
- | -> Purging unwanted files... | + | |
- | -> Removing static library files... | + | |
- | -> Stripping unneeded symbols from binaries and libraries... | + | |
- | -> Compressing man and info pages... | + | |
- | ==> Checking for packaging issues... | + | |
- | ==> Creating package " | + | |
- | -> Generating .PKGINFO file... | + | |
- | -> Generating .BUILDINFO file... | + | |
- | -> Generating .MTREE file... | + | |
- | -> Compressing package... | + | |
- | ==> Leaving fakeroot environment. | + | |
- | ==> Finished making: rdate 1.5-3 (Thu 31 Dec 2020 11:12:48 AM CET) | + | |
Finished with result: success | Finished with result: success | ||
Main processes terminated with: code=exited/ | Main processes terminated with: code=exited/ | ||
Zeile 307: | Zeile 187: | ||
==> root: 22 | ==> root: 22 | ||
</ | </ | ||
+ | ++++ | ||
Mit nachfolgendem Befehl kann überprüft werden, welche Inhalte mit den Paket **'' | Mit nachfolgendem Befehl kann überprüft werden, welche Inhalte mit den Paket **'' | ||
+ | < | ||
+ | # pikaur -Qil rdate | ||
+ | </ | ||
+ | ++++ Installierte Dateien | | ||
< | < | ||
# pikaur -Qil rdate | # pikaur -Qil rdate | ||
Zeile 341: | Zeile 226: | ||
rdate / | rdate / | ||
</ | </ | ||
+ | ++++ | ||
===== Konfiguration ===== | ===== Konfiguration ===== | ||
Zeile 519: | Zeile 405: | ||
Um diese '' | Um diese '' | ||
< | < | ||
+ | # iptables-save -f / | ||
</ | </ | ||
Zeile 532: | Zeile 418: | ||
< | < | ||
# 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 538: | Zeile 425: | ||
< | < | ||
# 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 561: | Zeile 461: | ||
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