From owner-freebsd-questions Tue Oct 31 18:54:35 2000 Delivered-To: freebsd-questions@freebsd.org Received: from socrates.nmia.com (socrates.nmia.com [198.59.166.170]) by hub.freebsd.org (Postfix) with ESMTP id F122737B479 for ; Tue, 31 Oct 2000 18:54:32 -0800 (PST) Received: from plato.nmia.com(really [198.59.166.165]) by socrates.nmia.com via sendmail with smtp id for ; Tue, 31 Oct 2000 19:54:32 -0700 (MST) (Smail-3.2.0.109 1999-Oct-27 #6 built 2000-Oct-18) Received: by plato.nmia.com id m13qo2p-0011ZPC; Tue, 31 Oct 2000 19:54:31 -0700 (MST) Date: Tue, 31 Oct 2000 19:54:31 -0700 From: Stephen Fisher To: Lu!s Croker Cc: freebsd-questions@freebsd.org Subject: Re: Time Server Message-ID: <20001031195431.A10410@plato.nmia.com> References: <20001031131308.192f53d7.lcroker@megared.net.mx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20001031131308.192f53d7.lcroker@megared.net.mx>; from lcroker@megared.net.mx on Tue, Oct 31, 2000 at 01:13:08PM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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