Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.networking > #2741 > unrolled thread

can't access a service to a remate hosts

Started byxeon Mailinglist <xeonmailinglist@gmail.com>
First post2014-02-23 06:30 -0800
Last post2014-02-23 19:47 +0000
Articles 16 — 7 participants

Back to article view | Back to comp.os.linux.networking


Contents

  can't access a service to a remate hosts xeon Mailinglist <xeonmailinglist@gmail.com> - 2014-02-23 06:30 -0800
    Re: can't access a service to a remate hosts Ulf Volmer <u.volmer@u-v.de> - 2014-02-23 15:39 +0100
      Re: can't access a service to a remate hosts xeon Mailinglist <xeonmailinglist@gmail.com> - 2014-02-23 06:55 -0800
        Re: can't access a service to a remate hosts Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2014-02-23 18:33 +0200
          Re: can't access a service to a remate hosts xeon Mailinglist <xeonmailinglist@gmail.com> - 2014-02-23 09:33 -0800
            Re: can't access a service to a remate hosts xeon Mailinglist <xeonmailinglist@gmail.com> - 2014-02-23 09:34 -0800
              Re: can't access a service to a remate hosts Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2014-02-23 20:03 +0200
                Re: can't access a service to a remate hosts Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2014-02-23 19:50 +0100
                  Re: can't access a service to a remate hosts Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2014-02-23 23:32 +0200
                    Re: can't access a service to a remate hosts Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2014-02-24 00:14 +0100
              Re: can't access a service to a remate hosts Andrew Gideon <c182driver9@gideon.org> - 2014-02-26 14:16 +0000
          Re: can't access a service to a remate hosts Joe Beanfish <joebeanfish@nospam.duh> - 2014-02-24 15:01 +0000
        Re: can't access a service to a remate hosts Ulf Volmer <u.volmer@u-v.de> - 2014-02-23 19:15 +0100
          Re: can't access a service to a remate hosts Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2014-02-23 19:46 +0100
        Re: can't access a service to a remate hosts William Unruh <unruh@invalid.ca> - 2014-02-23 19:48 +0000
    Re: can't access a service to a remate hosts William Unruh <unruh@invalid.ca> - 2014-02-23 19:47 +0000

#2741 — can't access a service to a remate hosts

Fromxeon Mailinglist <xeonmailinglist@gmail.com>
Date2014-02-23 06:30 -0800
Subjectcan't access a service to a remate hosts
Message-ID<36fdfb9e-4473-4fb1-9cd4-1c233ebee3f4@googlegroups.com>
I have this network. host1 <-> router1 <-> router2 <-> router3 <-> router4 <-> host2. I  can ping from host1 to host2, but I can access a service that is running in the port 50070. How can I find what is going on? I don't have access to the routers, only to the hosts.

Both hosts run linux in terminal mode.

[toc] | [next] | [standalone]


#2742

FromUlf Volmer <u.volmer@u-v.de>
Date2014-02-23 15:39 +0100
Message-ID<slrnlgk205.ui9.u.volmer@x2-5.u-v.de>
In reply to#2741
xeon Mailinglist <xeonmailinglist@gmail.com> schrieb:
> I have this network. host1 <-> router1 <-> router2 <-> router3 <-> router4 <-> host2. I  can ping from host1 to host2, but I can access a service that is running in the port 50070. How can I find what is going on? I don't have access to the routers, only to the hosts.
>
> Both hosts run linux in terminal mode.

You can test with tcptraceroute if any route blocks your ports:

tcptracerouet host2 50070

regards
Ulf

[toc] | [prev] | [next] | [standalone]


#2743

Fromxeon Mailinglist <xeonmailinglist@gmail.com>
Date2014-02-23 06:55 -0800
Message-ID<bc2c8dfd-1206-414a-b6d8-9720382d0461@googlegroups.com>
In reply to#2742
I did tcptraceroute, and I get this output. It seems that it has connected, but when I access the service with a browser, I get Connection refused.

Am I reading right? The output got show that I connected to the destination?

HadoopWorkers-rci-0:~# tcptraceroute 10.103.0.20 50070
traceroute to 10.103.0.20 (10.103.0.20), 30 hops max, 60 byte packets
 1  HadoopWorkers-fiu-0 (10.103.0.20) <rst,ack>  1.087 ms  1.016 ms  0.960 ms



On Sunday, February 23, 2014 2:39:01 PM UTC, Ulf Volmer wrote:
> xeon Mailinglist <xeonmailinglist@gmail.com> schrieb:
> 
> > I have this network. host1 <-> router1 <-> router2 <-> router3 <-> router4 <-> host2. I  can ping from host1 to host2, but I can access a service that is running in the port 50070. How can I find what is going on? I don't have access to the routers, only to the hosts.
> 
> >
> 
> > Both hosts run linux in terminal mode.
> 
> 
> 
> You can test with tcptraceroute if any route blocks your ports:
> 
> 
> 
> tcptracerouet host2 50070
> 
> 
> 
> regards
> 
> Ulf

[toc] | [prev] | [next] | [standalone]


#2744

FromTauno Voipio <tauno.voipio@notused.fi.invalid>
Date2014-02-23 18:33 +0200
Message-ID<led7sh$dvn$1@dont-email.me>
In reply to#2743
On 23.2.14 16:55, xeon Mailinglist wrote:
> I did tcptraceroute, and I get this output. It seems that it has connected, but when I access the service with a browser, I get Connection refused.
>
> Am I reading right? The output got show that I connected to the destination?
>
> HadoopWorkers-rci-0:~# tcptraceroute 10.103.0.20 50070
> traceroute to 10.103.0.20 (10.103.0.20), 30 hops max, 60 byte packets
>   1  HadoopWorkers-fiu-0 (10.103.0.20) <rst,ack>  1.087 ms  1.016 ms  0.960 ms

The target host (10.103.0.20) refused the TCP connection.
Are you sure that there is anything listening tp port 50070?

-- 

Tauno Voipio

[toc] | [prev] | [next] | [standalone]


#2745

Fromxeon Mailinglist <xeonmailinglist@gmail.com>
Date2014-02-23 09:33 -0800
Message-ID<33692a1c-ed57-4a5c-a53e-1463a7783e05@googlegroups.com>
In reply to#2744
Yes, i am. I accessed the service from the machine. 

[toc] | [prev] | [next] | [standalone]


#2746

Fromxeon Mailinglist <xeonmailinglist@gmail.com>
Date2014-02-23 09:34 -0800
Message-ID<2703be8e-d876-4900-87ea-5675f2698f4d@googlegroups.com>
In reply to#2745
I just can't access the service from a remote hosts.

[toc] | [prev] | [next] | [standalone]


#2747

FromTauno Voipio <tauno.voipio@notused.fi.invalid>
Date2014-02-23 20:03 +0200
Message-ID<ledd62$gik$1@dont-email.me>
In reply to#2746
On 23.2.14 19:34, xeon Mailinglist wrote:
> I just can't access the service from a remote hosts.


Are you sure that the accessed host is what you think it is?

The 10.x.y.z are RFC1918 private addresses, which can mean
different hosts in different local networks. If the routers
obey the RFC's, they must not forward the 10 -series addresses
if there is any hop in the public network.

-- 

-TV

[toc] | [prev] | [next] | [standalone]


#2750

FromPascal Hambourg <boite-a-spam@plouf.fr.eu.org>
Date2014-02-23 19:50 +0100
Message-ID<ledfsf$q0k$2@saria.nerim.net>
In reply to#2747
Tauno Voipio a écrit :
> 
> Are you sure that the accessed host is what you think it is?

Wise question.

> The 10.x.y.z are RFC1918 private addresses, which can mean
> different hosts in different local networks. If the routers
> obey the RFC's, they must not forward the 10 -series addresses
> if there is any hop in the public network.

Agreed, but then they should not reply with a TCP RST, should they ?

[toc] | [prev] | [next] | [standalone]


#2754

FromTauno Voipio <tauno.voipio@notused.fi.invalid>
Date2014-02-23 23:32 +0200
Message-ID<ledpdc$u07$1@dont-email.me>
In reply to#2750
On 23.2.14 20:50, Pascal Hambourg wrote:
> Tauno Voipio a écrit :
>>
>> Are you sure that the accessed host is what you think it is?
>
> Wise question.
>
>> The 10.x.y.z are RFC1918 private addresses, which can mean
>> different hosts in different local networks. If the routers
>> obey the RFC's, they must not forward the 10 -series addresses
>> if there is any hop in the public network.
>
> Agreed, but then they should not reply with a TCP RST, should they ?


That's right, but it is prefectly correct to have a host
with the targeted IP in the network he's attempting access
from, so the SYN segment goes to a completely different
host the OP is targeting.

There is a clue in this direction in the trace he posted:
the RST comes from the address he wants to connect to, but
without the router hops he claims there are.

The RST comes from an unprepared host or from a firewall
which is configured to assassin TCP to unallowed ports.

-- 

-TV

[toc] | [prev] | [next] | [standalone]


#2755

FromPascal Hambourg <boite-a-spam@plouf.fr.eu.org>
Date2014-02-24 00:14 +0100
Message-ID<ledvct$vbb$1@saria.nerim.net>
In reply to#2754
Tauno Voipio a écrit :
> On 23.2.14 20:50, Pascal Hambourg wrote:
>>
>>> The 10.x.y.z are RFC1918 private addresses, which can mean
>>> different hosts in different local networks. If the routers
>>> obey the RFC's, they must not forward the 10 -series addresses
>>> if there is any hop in the public network.
>> Agreed, but then they should not reply with a TCP RST, should they ?
> 
> That's right, but it is prefectly correct to have a host
> with the targeted IP in the network he's attempting access
> from, so the SYN segment goes to a completely different
> host the OP is targeting.
> 
> There is a clue in this direction in the trace he posted:
> the RST comes from the address he wants to connect to, but
> without the router hops he claims there are.

Unlike ICMP errors, a TCP RST always appears to come from the target
address, even when sent by an intermediate firewall. Otherwise the
original sender would not accept it.

> The RST comes from an unprepared host or from a firewall
> which is configured to assassin TCP to unallowed ports.

Not from the expected destination host, anyway.

[toc] | [prev] | [next] | [standalone]


#2758

FromAndrew Gideon <c182driver9@gideon.org>
Date2014-02-26 14:16 +0000
Message-ID<KGmPu.8030$aO4.7842@fx02.iad>
In reply to#2746
On Sun, 23 Feb 2014 09:34:27 -0800, xeon Mailinglist wrote:

> I just can't access the service from a remote hosts.

Try "lsof -p 50070" on the listening host.  The listerer may be listening 
only on the localhost IP (or some other set of IPs not including the one 
to which you are attempting to connect).

	- Andrew

[toc] | [prev] | [next] | [standalone]


#2756

FromJoe Beanfish <joebeanfish@nospam.duh>
Date2014-02-24 15:01 +0000
Message-ID<lefmsu$gpi$2@dont-email.me>
In reply to#2744
On Sun, 23 Feb 2014 18:33:21 +0200, Tauno Voipio wrote:

> On 23.2.14 16:55, xeon Mailinglist wrote:
>> I did tcptraceroute, and I get this output. It seems that it has
>> connected, but when I access the service with a browser, I get
>> Connection refused.
>>
>> Am I reading right? The output got show that I connected to the
>> destination?
>>
>> HadoopWorkers-rci-0:~# tcptraceroute 10.103.0.20 50070 traceroute to
>> 10.103.0.20 (10.103.0.20), 30 hops max, 60 byte packets
>>   1  HadoopWorkers-fiu-0 (10.103.0.20) <rst,ack>  1.087 ms  1.016 ms 
>>   0.960 ms
> 
> The target host (10.103.0.20) refused the TCP connection. Are you sure
> that there is anything listening tp port 50070?

Perhaps the server is bound to localhost only? On the server try
   netstat -nlp |grep :50070
to check it out.

[toc] | [prev] | [next] | [standalone]


#2748

FromUlf Volmer <u.volmer@u-v.de>
Date2014-02-23 19:15 +0100
Message-ID<slrnlgkemh.ui9.u.volmer@x2-5.u-v.de>
In reply to#2743
xeon Mailinglist <xeonmailinglist@gmail.com> schrieb:
> I did tcptraceroute, and I get this output. It seems that it has connected, but when I access the service with a browser, I get Connection refused.
>
> Am I reading right? The output got show that I connected to the destination?
>
> HadoopWorkers-rci-0:~# tcptraceroute 10.103.0.20 50070
> traceroute to 10.103.0.20 (10.103.0.20), 30 hops max, 60 byte packets
>  1  HadoopWorkers-fiu-0 (10.103.0.20) <rst,ack>  1.087 ms  1.016 ms  0.960 ms
                                         ^^^

The server refuse your connection. Is the Server listening on the right (all) 
interfaces?
Are there any firewall on the server?

regards
Ulf

[toc] | [prev] | [next] | [standalone]


#2749

FromPascal Hambourg <boite-a-spam@plouf.fr.eu.org>
Date2014-02-23 19:46 +0100
Message-ID<ledfkv$q0k$1@saria.nerim.net>
In reply to#2748
Ulf Volmer a écrit :
> xeon Mailinglist <xeonmailinglist@gmail.com> schrieb:
>> I did tcptraceroute, and I get this output. It seems that it has connected

No it's not. rst = RESET = connection refused.

>> Am I reading right? The output got show that I connected to the destination?

Not quite. It stopped a the first hop, not even reaching the finale
destination (unless all routers along the path do not decrease the TTL,
which would be against the IP standard).

>> HadoopWorkers-rci-0:~# tcptraceroute 10.103.0.20 50070
>> traceroute to 10.103.0.20 (10.103.0.20), 30 hops max, 60 byte packets
>>  1  HadoopWorkers-fiu-0 (10.103.0.20) <rst,ack>  1.087 ms  1.016 ms  0.960 ms
>                                          ^^^
> The server refuse your connection.

Nope. The first hop refused the connection.

[toc] | [prev] | [next] | [standalone]


#2752

FromWilliam Unruh <unruh@invalid.ca>
Date2014-02-23 19:48 +0000
Message-ID<ledjb9$mkp$2@dont-email.me>
In reply to#2743
On 2014-02-23, xeon Mailinglist <xeonmailinglist@gmail.com> wrote:
> I did tcptraceroute, and I get this output. It seems that it has connected, but when I access the service with a browser, I get Connection refused.

That is a different issue. The program listening to port 50070 is
refusing the connection. Look at that program ( which you never told us
about)

>
> Am I reading right? The output got show that I connected to the destination?
>
> HadoopWorkers-rci-0:~# tcptraceroute 10.103.0.20 50070
> traceroute to 10.103.0.20 (10.103.0.20), 30 hops max, 60 byte packets
>  1  HadoopWorkers-fiu-0 (10.103.0.20) <rst,ack>  1.087 ms  1.016 ms  0.960 ms
>
>
>
> On Sunday, February 23, 2014 2:39:01 PM UTC, Ulf Volmer wrote:
>> xeon Mailinglist <xeonmailinglist@gmail.com> schrieb:
>> 
>> > I have this network. host1 <-> router1 <-> router2 <-> router3 <-> router4 <-> host2. I  can ping from host1 to host2, but I can access a service that is running in the port 50070. How can I find what is going on? I don't have access to the routers, only to the hosts.
>> 
>> >
>> 
>> > Both hosts run linux in terminal mode.
>> 
>> 
>> 
>> You can test with tcptraceroute if any route blocks your ports:
>> 
>> 
>> 
>> tcptracerouet host2 50070
>> 
>> 
>> 
>> regards
>> 
>> Ulf
>

[toc] | [prev] | [next] | [standalone]


#2751

FromWilliam Unruh <unruh@invalid.ca>
Date2014-02-23 19:47 +0000
Message-ID<ledj7t$mkp$1@dont-email.me>
In reply to#2741
On 2014-02-23, xeon Mailinglist <xeonmailinglist@gmail.com> wrote:
> I have this network. host1 <-> router1 <-> router2 <-> router3 <-> router4 <-> host2. I  can ping from host1 to host2, but I can access a service that is running in the port 50070. How can I find what is going on? I don't have access to the routers, only to the hosts.

routers running firewall? Nothing on host 2 listening to port 50070?

tcpdump on host 2 to see if packets coming through.

>
> Both hosts run linux in terminal mode.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.os.linux.networking


csiph-web