From owner-freebsd-questions Mon Jan 22 10: 0:52 2001 Delivered-To: freebsd-questions@freebsd.org Received: from d9168.upc-d.chello.nl (d9168.upc-d.chello.nl [213.46.9.168]) by hub.freebsd.org (Postfix) with ESMTP id F254837B404 for ; Mon, 22 Jan 2001 10:00:34 -0800 (PST) Received: by d9168.upc-d.chello.nl (Postfix, from userid 1001) id 05AE4352; Mon, 22 Jan 2001 19:00:34 +0100 (CET) Date: Mon, 22 Jan 2001 19:00:33 +0100 From: Edwin Groothuis To: Igor Vieira Debacker Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Services Message-ID: <20010122190033.B94743@d9168.upc-d.chello.nl> Mail-Followup-To: Edwin Groothuis , Igor Vieira Debacker , freebsd-questions@FreeBSD.ORG References: <001e01c084a4$9433a750$502ca8c0@MMDSC.COM.BR> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <001e01c084a4$9433a750$502ca8c0@MMDSC.COM.BR>; from igor@viamax.com.br on Mon, Jan 22, 2001 at 03:53:14PM -0300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jan 22, 2001 at 03:53:14PM -0300, Igor Vieira Debacker wrote: > Greetings, > > I have a question.. > > if i would like to change the telnet service port from 23 to 8000 for > example, what will i do ? what files should i change ? > > etc/services ? There are two options: change ni /etc/services telnet to port 8000 and HUP your inetd. This is good if you only use telnet to go to your own machine, because next time you type telnet it assumes that the telnet-port is 8000 for everything and you will end up with a lot of connection refused if you go to the outside world. The other option is to define a new service op port 8000 (for example telnet8k), add the service to your inetd.conf (just copy the telnet-line and replace the first telnet with telnet8k). You then can telnet locally to your machine with "telnet localhost telnet8k" or from a remote machine as "telnet yourhost 8000". The first one is easier, the second one is cleaner (IMHO that is) Edwin -- Edwin Groothuis | Interested in MUDs? Visit Fatal Dimensions: mavetju@chello.nl | http://fataldimensions.nl.eu.org/ ------------------+ telnet://fataldimensions.nl.eu.org:4000 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message