LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how telnet thru port 7001 (https://www.linuxquestions.org/questions/linux-newbie-8/how-telnet-thru-port-7001-a-593574/)

solarisdon 10-21-2007 11:17 PM

how telnet thru port 7001
 
Hi,

Please let me know how to telnet thru port 7001.How to make the port 7001 listen to the telnet request.

Thanks & Regards,
Ashish Zankar
Sysadmin
Motorola India
Bangalore.

blackhole54 10-22-2007 02:32 AM

Quote:

Originally Posted by solarisdon (Post 2932161)
How to make the port 7001 listen to the telnet request.

The telnetd program (if that is what you are using) cannot listen on an arbitrary port if you start it with inetd , the normal way it is started. So I believe your only other choice is to use iptables to redirect the request:

Code:

iptables  -t nat -A PREROUTING -d <your IP address> -p tcp --dport 7001 -j REDIRECT --to-ports 23
If this is all you do, then telnetd can be accessed at both tcp/23 and tcp/7001. If you don't want it to receive requests on tcp/23, then that must be blocked. I don't have a lot of experience with REDIRECTS, but I don't think you can do this in the netfilter INPUT chain, as I believe that would block even the REDIRECTs. What might work to block external access to tcp/23 is:

Code:

iptables -t nat -A PREROUTING -d <your IP address> -p tcp --dport 23 -j DROP.

LlNUX 10-22-2007 07:03 AM

blackhole54's solution sound good. I just want to add that, in case you are not using TELNET only with LAN its good practice to create ssh tunnel with telnet by using port forwarding so all traffic is encrypted.

blackhole54 10-22-2007 07:36 PM

Quote:

Originally Posted by LlNUX (Post 2932426)
I just want to add that, in case you are not using TELNET only with LAN its good practice to create ssh tunnel with telnet by using port forwarding so all traffic is encrypted.

I have never used it, by my understanding was that recent versions of telnet could be compiled with options that allowed for encryption and secure connection over an untrusted network. I would be happy to learn of any errors in my understanding or have somebody explain it in more detail. But you are right that the old telnet protocol should not be used over an untrusted network unless it is done w/o requiring a password and only if the data being sent was not sensitive.

solarisdon 10-26-2007 02:52 AM

thanks
 
Hi,

Thanks for all those who helped me in solving the problem. Things are working fine now.
Actually i have installed weblogic 8.1 with sp5. And i required port 7001 to connect thru webbrowser to start weblogic. But now i get this error.

when i open the weblogic server by entering in the browser as
http://10.232.16.125:7001/console ,
it shows the weblogic login console
i will login as weblogic and password as weblogic.
It shows
Welcome to Weblogic server Home.
But on the left of the screen there is one icon if i click on that it show a message saying;-
The page contains information of type(application/x-java-vm) that can only be viewed with appropriate plug-in.

I have already installed jdk 1.4.2-08.
but i dont know what is the problem.Please guide.

blackhole54 10-26-2007 11:50 PM

Quote:

Originally Posted by solarisdon (Post 2937338)
I have already installed jdk 1.4.2-08. but i dont know what is the problem.Please guide.

This is getting beyond my experience, but it sounds like the browser you are using needs a plugin. I would suggest googling on the name of the browser, "java" and "plugin" and see what you can find about installing one. If you would like to see if somebody here can give you more specific details, you should post what kind of a browser you are using.


All times are GMT -5. The time now is 08:12 PM.