telnet with a certain route


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting telnet with a certain route
# 1  
Old 03-01-2012
telnet with a certain route

OS : *NIX
Shell : any

I want to test telnet for a certain port on a certain machine, but via a VIP which is in front of that machine. Basically I want to follow the same route as the application does. Is there any possiblility to force telnet to follow a certain route (via the VIP I mentioned) ?
I must mention that by default telnet from the local host to destination follows a direct route that doesn't include the VIP.

...Or any other way to check the connection between 2 machines on a certain port (and a certain route - via a VIP ) ?
# 2  
Old 03-01-2012
Quote:
Originally Posted by black_fender
OS : *NIX
Shell : any

I want to test telnet for a certain port on a certain machine, but via a VIP which is in front of that machine. Basically I want to follow the same route as the application does. Is there any possiblility to force telnet to follow a certain route (via the VIP I mentioned) ?
I must mention that by default telnet from the local host to destination follows a direct route that doesn't include the VIP.

...Or any other way to check the connection between 2 machines on a certain port (and a certain route - via a VIP ) ?
You can try creating a static route from the localhost to the destination machine using the vip as a gateway...but there's no guarantee due to the dynamic nature of routing...as some intermediate router in the network cloud may send it another way as that path is shorter etc...
# 3  
Old 03-01-2012
The network controls the route, not you, and that includes your application; so what makes your application special enough to have particular routing arranged for it? That is the question. Since it's probably not magic either, it likely uses either the destination or the port number to decide where it goes. It might also be something stranger like TCP type-of-service or other unusual TCP options.

I'd attempt a connection on the port your application uses, which may be enough.
Code:
telnet hostname portnumber </dev/null

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

Route get output

I'm having some trouble understanding the output of the route command. Specifically, the "route to" and "destination" fields. I'm guessing "route to: <address>" means when the queried host receives packets, it sends them to <address> by default, and "destination: <address>" means <address> is the... (2 Replies)
Discussion started by: Ultrix
2 Replies

2. UNIX for Dummies Questions & Answers

Difference Between Krb5-telnet And Ekrb5-telnet

Hi, I want to know the difference between these two services. Both are under xinetd. Both are used for enabling and disabling Telnet service. So, can somebody please explain me the difference between the two ? Thanks in advance :) (0 Replies)
Discussion started by: kashifsd17
0 Replies

3. UNIX for Dummies Questions & Answers

Automatically login in the telnet from present telnet

Hi, I was writing one script which includes to switch to the another telnet automatically from the present telnet server. I was using rlogin but firstly it takes the same user name of the present telnet and secondly it is prompting for the password. But i want to switch to the another telnet... (2 Replies)
Discussion started by: Prateek
2 Replies

4. IP Networking

Route to nowhere?

Hi, HP-UX 11iV2, but it's probably universal (tcp/ip) I have a production and a test server. The test server gets the application updated nightly from the production server software. The application accesses a set of process servers on a separate subnet (192.163.22.30,31,32), but reachable... (1 Reply)
Discussion started by: monroedoug
1 Replies

5. Shell Programming and Scripting

Webpage to Telnet via Perl and Expect: Telnet problem?

Somewhat long story: I have a simple Perl CGI script that uses Expect to Telnet to a device and grab some data, and then spits it back to Perl for display on the Webpage. This works for many devices I've tried, but one device just fails, it keeps rejecting the password on this device, only... (1 Reply)
Discussion started by: jondo
1 Replies

6. UNIX for Dummies Questions & Answers

Static Route

Hi, Request you to please tell me the command or the process to add the static route in redhat linux. Thanks in Advance. Regards Arun (2 Replies)
Discussion started by: Arun.Kakarla
2 Replies

7. Solaris

permanent route

How do I make a route permanent, other than default route on a Solaris server? (1 Reply)
Discussion started by: jontom
1 Replies

8. IP Networking

trace route ip

hi everybody , i have a solaris 5.6 box and i want to trace the route on an ip i treid traceroute but soalris 5.6 does not support it ... is there a command that can be used equivelent to traceroute ? thanks for your help (2 Replies)
Discussion started by: ppass
2 Replies

9. IP Networking

Modifying Route

hello, I have to communicate with a distant station . But Both belong to the same area. So I do not need a gate . But when I make a traceroute, it indicates that I pass through out a gate. What can I do to establish a direct connexion between the both. (with NT ) (1 Reply)
Discussion started by: hoang
1 Replies

10. UNIX for Advanced & Expert Users

Route for Solaris 8

Hello Dear Friends, I'm here again I need to know where is the permanent file for gateway configuration. I did the following command route add -net 0.0.0.0 5.0.0.3 ( My Gateway), but when i restart my computer i have to do it again. What the file can i set the permanent configuration for my... (1 Reply)
Discussion started by: themask
1 Replies
Login or Register to Ask a Question