Operating System - OpenVMS
1819929 Members
3077 Online
109607 Solutions
New Discussion юеВ

How to assign differrent port for Telnet?

 
Kitti Thanapuasuwan
Occasional Advisor

How to assign differrent port for Telnet?

I want to setup the additional port 1414/1415 to use for Telnet. Please guide me how to setup this.

Thanks
5 REPLIES 5
Wim Van den Wyngaert
Honored Contributor

Re: How to assign differrent port for Telnet?

Different port : ucx set servi telnet /port=1414. ucx disable servi telnet. ucx enable servi telnet.

Extra port : duplicate the service telnet (ucx add servi with the extra portno in /port) and enable it. Named it e.g. telnet2.

Wim
Wim
Kitti Thanapuasuwan
Occasional Advisor

Re: How to assign differrent port for Telnet?

Dear Wim Van den Wyngaert

I try command ucx add service ..., and error show unknown /service/..

Could you please give me exact command I should use?

If I setup correctly, when I use command TELNET x.x.x.x /port=1414, it should work?
Hoff
Honored Contributor

Re: How to assign differrent port for Telnet?

Which IP stack are you using, and what version of the package?

If you are using TCP/IP Services, the command UCX SHOW VERSION will display the stack and version configuration info.

Are you planning to switch completely over to the other port, or start up a second parallel telnet server on the alternate port?

As for testing with a telnet client, connecting with an alternate port on OpenVMS V6.2 and later:

SET HOST/TELNET/PORT=n hostname (or hostid)

or you can use:

telnet/port=n hostname (or hostid)

Many telnet clients will also support:

telnet hostname port
telnet hostid port

For grins, you can try specifying port 80 and use telnet to connect into a node with a web server. Enter the command GET. Off you go, and with a really simple web browser: telnet.

If this port shuffle is for security, ssh or such is preferable to telnet -- a port scan will find a weird port pretty quickly. (And if it is to avoid local organizational policies that discourage use of telnet, the IT police will notice. Weird ports really stick out on typical network security logs, as they can indicate infections.) In most configurations, ssh is easy to set up, and easy to use. And it keeps the network IT folks happier.

TCP port 1414 is reserved to IBM WebSphere MQ; IBM MQseries.
Kitti Thanapuasuwan
Occasional Advisor

Re: How to assign differrent port for Telnet?

My TCP/IP version is 5.1 - ECO 4on OpenVMS 7.2-1.

The port 1414 will assign parallel for testing purpose, then we'll remove later.

Thank you
Bojan Nemec
Honored Contributor

Re: How to assign differrent port for Telnet?

Kitti,

I have no same version of TCPIP to test it but on my version (VMS 7.3-2 V5.4 - ECO 2) the command works:

$ TCPIP SET SERVICE MYTELNET - /PORT=1414-
/FLAG=(listen,rtty,ipv6) -
/INACT=1/LIMIT=10000 - /SOCKET=(keep,receiv:3000,send:3000) -
/LOG=(activ,noaddr,deact,conn,error,login,logout,modify,reject) -
/PROC=""/USER=""/FILE=tcpip$telnet_run.exe
$ TCPIP ENABLE SERVICE MYTELNET

Now you can do:
$ TELNET hostname 1414

If you want to put it also on port 1415 replace the name of the service with a new name (services are stored by its names, so you can not have two services with the same name) and the port to 1415.
The /SOCKET,/LOG,/INACT and /LIMIT were copied from TCPIP SHOW SERVICE TELNET. The same is for the /FLAG qualifier. You can ommit the ipv6 keyword, but not rtty which tels that this is an remote interactive terminal and the system will prompt you for the username and password.

Bojan