Date: Tue, 31 Oct 2000 19:54:31 -0700 From: Stephen Fisher <sfisher@nmia.com> To: Lu!s Croker <lcroker@megared.net.mx> Cc: freebsd-questions@freebsd.org Subject: Re: Time Server Message-ID: <20001031195431.A10410@plato.nmia.com> In-Reply-To: <20001031131308.192f53d7.lcroker@megared.net.mx>; from lcroker@megared.net.mx on Tue, Oct 31, 2000 at 01:13:08PM -0600 References: <20001031131308.192f53d7.lcroker@megared.net.mx>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, The time server on port 37 is explained in more detail in RFC #868 which can be found at http://www.faqs.org/rfcs/rfc868.html Basically, it is a program (or these days it is often built into the inetd program) which returns a 32-bit value for the number of seconds since Jan 1, 1900. It does not appear to be human readable, at least if you telnet to port 37 but there are programs which will understand it and set your system's clock accordingly. A human readable time service is on port 13 ("daytime") which returns a standard unix time and date stamp such as this: sfisher@shadow:/home/sfisher> telnet localhost 13 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Tue Oct 31 19:52:37 2000 Connection closed by foreign host. This daytime service can now also be run internally from inetd. It is usually recommended that these "tcp small servers" and "udp small servers" be turned off to avoid DoS type attacks and stick to using a protocol such as the Network Time Protocol (NTP) which runs on port 123 and has a special daemon you can run called ntpd or xntpd to serve it. Steve On Tue, Oct 31, 2000 at 01:13:08PM -0600, Lu!s Croker wrote: > Hi... what is the function of time server in port 37 ??? > and which commands runs ??? > Can anybody help me ??? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001031195431.A10410>