Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jan 2001 19:00:33 +0100
From:      Edwin Groothuis <mavetju@chello.nl>
To:        Igor Vieira Debacker <igor@viamax.com.br>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Services
Message-ID:  <20010122190033.B94743@d9168.upc-d.chello.nl>
In-Reply-To: <001e01c084a4$9433a750$502ca8c0@MMDSC.COM.BR>; from igor@viamax.com.br on Mon, Jan 22, 2001 at 03:53:14PM -0300
References:  <001e01c084a4$9433a750$502ca8c0@MMDSC.COM.BR>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010122190033.B94743>