* telnet question
@ 2004-07-07 5:55 Askar Ali Khan
2004-07-07 6:43 ` Patrick Leslie Polzer
2004-07-07 20:15 ` Nick Taylor
0 siblings, 2 replies; 7+ messages in thread
From: Askar Ali Khan @ 2004-07-07 5:55 UTC (permalink / raw)
To: netfilter
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: telnet question
2004-07-07 5:55 telnet question Askar Ali Khan
@ 2004-07-07 6:43 ` Patrick Leslie Polzer
2004-07-07 9:32 ` Askar Ali Khan
2004-07-07 20:15 ` Nick Taylor
1 sibling, 1 reply; 7+ messages in thread
From: Patrick Leslie Polzer @ 2004-07-07 6:43 UTC (permalink / raw)
To: netfilter
On Wed, 7 Jul 2004 10:55:21 +0500
Askar Ali Khan <askarali@gmail.com> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: telnet question
2004-07-07 6:43 ` Patrick Leslie Polzer
@ 2004-07-07 9:32 ` Askar Ali Khan
2004-07-07 13:08 ` Antony Stone
0 siblings, 1 reply; 7+ messages in thread
From: Askar Ali Khan @ 2004-07-07 9:32 UTC (permalink / raw)
To: Patrick Leslie Polzer, netfilter
On Wed, 7 Jul 2004 08:43:58 +0200, Patrick Leslie Polzer
<leslie.polzer@gmx.net> wrote:
> On Wed, 7 Jul 2004 10:55:21 +0500
> Askar Ali Khan <askarali@gmail.com> 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 :)?
>
> Leslie
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: telnet question
2004-07-07 9:32 ` Askar Ali Khan
@ 2004-07-07 13:08 ` Antony Stone
[not found] ` <a0f69e5040707114531248581@mail.gmail.com>
0 siblings, 1 reply; 7+ messages in thread
From: Antony Stone @ 2004-07-07 13:08 UTC (permalink / raw)
To: netfilter
On Wednesday 07 July 2004 10:32 am, Askar Ali Khan wrote:
> On Wed, 7 Jul 2004 08:43:58 +0200, Patrick Leslie Polzer
>
> <leslie.polzer@gmx.net> wrote:
> > On Wed, 7 Jul 2004 10:55:21 +0500
> >
> > Askar Ali Khan <askarali@gmail.com> 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 :)?
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.
--
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: telnet question
[not found] ` <a0f69e5040707114531248581@mail.gmail.com>
@ 2004-07-07 18:49 ` Antony Stone
0 siblings, 0 replies; 7+ messages in thread
From: Antony Stone @ 2004-07-07 18:49 UTC (permalink / raw)
To: netfilter
On Wednesday 07 July 2004 7:45 pm, Askar Ali Khan wrote:
> On Wed, 7 Jul 2004 14:08:36 +0100, Antony Stone
>
> <antony@soft-solutions.co.uk> wrote:
> > On Wednesday 07 July 2004 10:32 am, Askar Ali Khan wrote:
> > > On Wed, 7 Jul 2004 08:43:58 +0200, Patrick Leslie Polzer
> > >
> > > <leslie.polzer@gmx.net> wrote:
> > > > On Wed, 7 Jul 2004 10:55:21 +0500
> > > >
> > > > Askar Ali Khan <askarali@gmail.com> 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 :)?
> >
> > 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.
>
> 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.
--
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: telnet question
2004-07-07 5:55 telnet question Askar Ali Khan
2004-07-07 6:43 ` Patrick Leslie Polzer
@ 2004-07-07 20:15 ` Nick Taylor
1 sibling, 0 replies; 7+ messages in thread
From: Nick Taylor @ 2004-07-07 20:15 UTC (permalink / raw)
To: Askar Ali Khan; +Cc: netfilter
> 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.
>
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: telnet question
@ 2004-07-07 20:30 Hudson Delbert J Contr 61 CS/SCBN
0 siblings, 0 replies; 7+ messages in thread
From: Hudson Delbert J Contr 61 CS/SCBN @ 2004-07-07 20:30 UTC (permalink / raw)
To: 'Nick Taylor', Askar Ali Khan; +Cc: netfilter
nick,,,bingo...
####################################
# delbert.hudson@losangeles.af.mil #
# 61cs/scbn, 3-0182 #
####################################
-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org]On Behalf Of Nick Taylor
Sent: Wednesday, July 07, 2004 1:16 PM
To: Askar Ali Khan
Cc: netfilter
Subject: Re: telnet question
> 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.
>
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-07-07 20:30 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-07 5:55 telnet question Askar Ali Khan
2004-07-07 6:43 ` Patrick Leslie Polzer
2004-07-07 9:32 ` Askar Ali Khan
2004-07-07 13:08 ` Antony Stone
[not found] ` <a0f69e5040707114531248581@mail.gmail.com>
2004-07-07 18:49 ` Antony Stone
2004-07-07 20:15 ` Nick Taylor
-- strict thread matches above, loose matches on Subject: below --
2004-07-07 20:30 Hudson Delbert J Contr 61 CS/SCBN
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.