telnet question
hi,
we got a machine to which we telnet only telnet is allow on that machine (C) no ssh thingy, the problem is that we telnet the machine from two different linux boxes "servers" here is the traceroute for
...
Linux Box :A tracetroute output for the machine C
traceroute to xxx.xxx.xx.x (xxx.xxx.xx.x), 30 hops max, 38 byte packets 1 abc.foo.net (xxx.xxx.xx.x) 4.440 ms 3.931 ms 4.406 ms
<---direct to machine C
Linux Box: B tracetroute output for the machine C
traceroute to xxx.xxx.xx.x (xxx.xxx.xx.x), 30 hops max, 38 byte packets
1 xxx.xxx.xx.1 (xxx.xxx.xx.1) 5.056 ms 1.088 ms 1.109 ms <-----gateway 2 xxx.xxx.xx.x (xxx.xxx.xx.x) 5.198 ms 5.887 ms 14.429 ms <-----machine C
my question is that how to makes Linux Box (B) direct to machine C i-e like that Linux Box A.
regards
Quoted 2 lines · On Wed, 7 Jul 2004 10:55:21 +0500 Askar Ali Khan <[email protected]> wrote:
my question is that how to makes Linux Box (B) direct to machine C i-e like that Linux Box A.
That depends on your network architecture. Could you please provide more information? Use dummy IPs and network ranges that resemble the real setup and maybe draw some ASCII stuff.
Leslie
Quoted 8 lines · Patrick Leslie Polzer
Quoted 2 lines · On Wed, 7 Jul 2004 10:55:21 +0500 Askar Ali Khan <[email protected]> wrote:
my question is that how to makes Linux Box (B) direct to machine C i-e like that Linux Box A.
That depends on your network architecture. Could you please provide more information? Use dummy IPs and network ranges that resemble the real setup and maybe draw some ASCII stuff.
okay i will try with dumy IPs, I don't know whats more information you are asking for :)?
Quoted 4 lines
Leslie
Quoted 9 lines · Askar Ali Khan
On Wed, 7 Jul 2004 08:43:58 +0200, Patrick Leslie Polzer
Quoted 6 lines · <[email protected]> wrote:
On Wed, 7 Jul 2004 10:55:21 +0500
Quoted 2 lines · Askar Ali Khan
my question is that how to makes Linux Box (B) direct to machine C i-e like that Linux Box A.
Quoted 6 lines
Quoted 3 lines
That depends on your network architecture. Could you please provide more information? Use dummy IPs and network ranges that resemble the real setup and maybe draw some ASCII stuff.
okay i will try with dumy IPs, I don't know whats more information you are asking for :)?
We need to understand how your computers are connected together - ie: what
shape your network is. Imagine one of us had to recreate your network
layout in our own office - give us enough information that we'd be able to do that.
Regards,
Antony.
Signature · 5 lines
Normal people think "If it ain't broke, don't fix it".
Engineers think "If it ain't broke, it doesn't have enough features yet".
Please reply to the list;
please don't CC me.A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 25 lines · Askar Ali Khan
On Wed, 7 Jul 2004 14:08:36 +0100, Antony Stone
Quoted 14 lines · <[email protected]> wrote:
Quoted 13 lines · Askar Ali Khan
On Wed, 7 Jul 2004 08:43:58 +0200, Patrick Leslie Polzer
Quoted 9 lines · <[email protected]> wrote:
On Wed, 7 Jul 2004 10:55:21 +0500
Quoted 2 lines · Askar Ali Khan
my question is that how to makes Linux Box (B) direct to machine C i-e like that Linux Box A.
That depends on your network architecture. Could you please provide more information? Use dummy IPs and network ranges that resemble the real setup and maybe draw some ASCII stuff.
Quoted 7 lines
Quoted 2 lines
okay i will try with dumy IPs, I don't know whats more information you are asking for :)?
We need to understand how your computers are connected together - ie:
what shape your network is. Imagine one of us had to recreate your
network layout in our own office - give us enough information that we'd be able to do that.
Quoted 6 lines
machine C is sorta access server we connect it though telnet, and we first connect to net using dialup and then telnet to machine C, first we ssh to one of our Linux machine and then telnet to C, however its possible to telnet directly to C, however due to security we prefer first SSHing then from there Telnetting
all systems are on same netmask.
Okay, so you have a flat network with only one subnet.
In that case I don't understand where netfilter comes into the question, because netfilter runs on routers (and helps them say "no" to certain packets, basically), and you don't have a router between machines on the same subnet.
So, you have three machines all on the same subnet, called A, B and C.
Please state clearly what the problem is, and where you have netfilter installed.
Regards,
Antony.
Signature · 3 lines
The words "e pluribus unum" on the Great Seal of the United States are from a poem by Virgil entitled "Moretum", which is about cheese and garlic salad dressing.
Quoted 11 lines
we got a machine to which we telnet only telnet is allow on that machine (C) no ssh thingy, the problem is that we telnet the machine from two different linux boxes "servers" here is the traceroute for
...Linux Box :A tracetroute output for the machine C
traceroute to xxx.xxx.xx.x (xxx.xxx.xx.x), 30 hops max, 38 byte packets 1 abc.foo.net (xxx.xxx.xx.x) 4.440 ms 3.931 ms 4.406 ms
<---direct to machine C
Quoted 8 lines
Linux Box: B tracetroute output for the machine C
traceroute to xxx.xxx.xx.x (xxx.xxx.xx.x), 30 hops max, 38 byte packets1 xxx.xxx.xx.1 (xxx.xxx.xx.1) 5.056 ms 1.088 ms 1.109 ms <-----gateway 2 xxx.xxx.xx.x (xxx.xxx.xx.x) 5.198 ms 5.887 ms 14.429 ms <-----machine Cmy question is that how to makes Linux Box (B) direct to machine C i-e like that Linux Box A.
Without knowing more about your network, providing "the" answer is hard, but if I understand correctly, what you're complaining about is the first hop in the traceroute, the one you marked as "gateway". You want the packets to be delivered directly to machine C without going through the gateway first, is this correct?
If so, you must understand how routing works, and that there are two different things that a host on a network might do when trying to talk to another machine. First, it will check to see if it can do local delivery, and if that doesn't work, it will try to find a router to use.
So, if two computers are directly connceted on the same ethernet hub, you'd like them to be able to talk to eachother directly. TCP/IP doesn't know about hubs and switches though, it only knows about IP addresses.
Here's where I make up an example...
IP Address Netmask Machine A: 192.168.23.4 255.255.255.0 Machine B: 192.168.23.7 255.255.255.0 Machine C: 10.30.42.6 255.255.0.0 Gateway: 192.168.23.1 255.255.255.0 Gateway: 10.30.12.1 255.255.0.0
When Machine A wants to talk to Machine B, it first computes the bitwise AND of it's IP address and it's netmask, so 192.168.23.4 & 255.255.255.0 = 192.168.23.0, this is the so-called network address, then it calculates Machine B's network address, 192.168.23.7 & 255.255.255.0 = 192.168.23.0, and it now realizes that both network addresses are the same, thus the two machines are on the same network. Now, it uses ARP to get the hardware address of machine B, and transmits the packet directly.
When Machine C wants to talk to machine B, it trys the same thing, but 10.30.42.6 & 255.255.0.0 is 10.30.0.0, and 192.168.23.4 & 255.255.0.0 is 192.168.0.0, which is NOT the same, so machine C cannot do local delivery, because as far as TCP/IP is concerned, they're not on the same network. So, machine C will look in its routing table for an entry that matches, most likely it will find it's default route, so it will transmit the packet to it's gateway 10.30.12.1. It will look up the hardware address of 10.30.12.1 using ARP, and send the packet to the router, which DOES know how to talk to 192.168.23.4, and forwards the packet accordingly.
In order to get the machines talking to eachother without a gateway, they need not only to be on the same physical wire, but also they need to have IP addresses in the same IP network.
I hope this is helpful.