LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-21-2007, 11:17 PM   #1
solarisdon
LQ Newbie
 
Registered: Oct 2007
Location: India
Distribution: linux & solaris
Posts: 2

Rep: Reputation: 0
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.
 
Old 10-22-2007, 02:32 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by solarisdon View Post
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.

Last edited by blackhole54; 10-22-2007 at 02:36 AM.
 
Old 10-22-2007, 07:03 AM   #3
LlNUX
Member
 
Registered: Oct 2007
Location: Sydney, Australia
Distribution: Debian
Posts: 63

Rep: Reputation: 15
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.
 
Old 10-22-2007, 07:36 PM   #4
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by LlNUX View Post
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.
 
Old 10-26-2007, 02:52 AM   #5
solarisdon
LQ Newbie
 
Registered: Oct 2007
Location: India
Distribution: linux & solaris
Posts: 2

Original Poster
Rep: Reputation: 0
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.
 
Old 10-26-2007, 11:50 PM   #6
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by solarisdon View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PLESK [Solution] Change port to 23 (telnet) instead of default port 8443 x5452 Linux - Software 6 05-10-2009 05:58 AM
telnet port 25 frankcchan Linux - Software 2 12-30-2006 11:38 PM
can't telnet to port 25 varun_saa Mandriva 8 12-05-2005 08:36 PM
Installing Wireless Network with Gateway 7001 series Access Point ejap105053 Linux - Wireless Networking 1 09-29-2005 12:30 PM
telnet to port 80 davee Linux - Networking 5 08-06-2003 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration