Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

A <= ping => B => OK A <= TCP => B => FAILS

Reply
 
Thread Tools Display Modes
  #1  
Old 01-05-2006, 01:37 PM
Default A <= ping => B => OK A <= TCP => B => FAILS



Hi ng,

i've two linux systems (A and B).
I can successfully ping A from B and vice versa.

A simple TCP-Connection from A to B is failing.
I'm using the following TCP SimpleServer and SimpleClient Examples:
http://homepage.uibk.ac.at/~c703350/...simpleclient.c
http://homepage.uibk.ac.at/~c703350/...simpleserver.c

The TCP/IP stack should be ok, since a TCP connection with this program
is working from A<=>A and B<=>B and from A<=>C

Does anyone has a hint what could be the problem?

regards,
Stefan



stefan.oedenkoven@gmx.de
Reply With Quote
  #2  
Old 01-05-2006, 05:59 PM
Tom V
Guest
 
Posts: n/a
Default Re: A <= ping => B => OK A <= TCP => B => FAILS

Different MTU settings perhaps ?


On Thu, 05 Jan 2006 05:37:12 -0800, stefan.oedenkoven wrote:

> Hi ng,
>
> i've two linux systems (A and B).
> I can successfully ping A from B and vice versa.
>
> A simple TCP-Connection from A to B is failing.
> I'm using the following TCP SimpleServer and SimpleClient Examples:
> http://homepage.uibk.ac.at/~c703350/...simpleclient.c
> http://homepage.uibk.ac.at/~c703350/...simpleserver.c
>
> The TCP/IP stack should be ok, since a TCP connection with this program
> is working from A<=>A and B<=>B and from A<=>C
>
> Does anyone has a hint what could be the problem?
>
> regards,
> Stefan


Reply With Quote
  #3  
Old 01-05-2006, 06:39 PM
Joe Beanfish
Guest
 
Posts: n/a
Default Re: A <= ping => B => OK A <= TCP => B => FAILS

On Thu, 05 Jan 2006 08:37:12 -0500, <(E-Mail Removed)> wrote:

> Hi ng,
>
> i've two linux systems (A and B).
> I can successfully ping A from B and vice versa.
>
> A simple TCP-Connection from A to B is failing.
> I'm using the following TCP SimpleServer and SimpleClient Examples:
> http://homepage.uibk.ac.at/~c703350/...simpleclient.c
> http://homepage.uibk.ac.at/~c703350/...simpleserver.c
>
> The TCP/IP stack should be ok, since a TCP connection with this program
> is working from A<=>A and B<=>B and from A<=>C
>
> Does anyone has a hint what could be the problem?


Firewall on B perhaps? Or on A for that matter.
Reply With Quote
  #4  
Old 01-06-2006, 09:53 AM
stefan.oedenkoven@gmx.de
Guest
 
Posts: n/a
Default Re: A <= ping => B => OK A <= TCP => B => FAILS

> Firewall on B perhaps? Or on A for that matter.

A and B are directly connected with a crosslink (A has two NICs). There
are no firewalls on this systems... some more ideas? or any hints how
to narrow it down?
regards,
Stefan

Reply With Quote
  #5  
Old 01-06-2006, 10:29 AM
stefan.oedenkoven@gmx.de
Guest
 
Posts: n/a
Default Re: A <= ping => B => OK A <= TCP => B => FAILS

What i forgot to mention:

PCs:
A: x86, SuSe 8.2, MTU 1500
B: PowerPC, trimmed-down linux, MTU 1500
C: x86, WinXP, MTU 1500

Net:
C <= (192.168.10.205 company net) => A <= (172.16.10.X crosslink) => B

Reply With Quote
  #6  
Old 01-07-2006, 09:51 PM
Postmaster
Guest
 
Posts: n/a
Default Re: A <= ping => B => OK A <= TCP => B => FAILS


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
>> Firewall on B perhaps? Or on A for that matter.

>
> A and B are directly connected with a crosslink (A has two NICs). There
> are no firewalls on this systems... some more ideas? or any hints how
> to narrow it down?
> regards,
> Stefan
>


Ethereal


Reply With Quote
  #7  
Old 01-08-2006, 08:39 AM
Robert
Guest
 
Posts: n/a
Default Re: A <= ping => B => OK A <= TCP => B => FAILS

On Fri, 06 Jan 2006 02:29:39 -0800, stefan.oedenkoven wrote:

> What i forgot to mention:
>
> PCs:
> A: x86, SuSe 8.2, MTU 1500
> B: PowerPC, trimmed-down linux, MTU 1500
> C: x86, WinXP, MTU 1500
>
> Net:
> C <= (192.168.10.205 company net) => A <= (172.16.10.X crosslink) => B


Netmasks set correctly?

Can B talk to C?


--

Regards
Robert

Smile... it increases your face value!


----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Reply With Quote
  #8  
Old 01-09-2006, 03:13 PM
Clifford Kite
Guest
 
Posts: n/a
Default Re: A <= ping => B => OK A <= TCP => B => FAILS

(E-Mail Removed) wrote:
> What i forgot to mention:


> PCs:
> A: x86, SuSe 8.2, MTU 1500
> B: PowerPC, trimmed-down linux, MTU 1500
> C: x86, WinXP, MTU 1500


Perhaps "trimmed-down linux" is configured to deny all TCP access
in hosts.deny or hosts.allow, the configuration files for tcpd.

> Net:
> C <= (192.168.10.205 company net) => A <= (172.16.10.X crosslink) => B


--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
Reply With Quote
  #9  
Old 01-09-2006, 05:59 PM
Joe Beanfish
Guest
 
Posts: n/a
Default Re: A <= ping => B => OK A <= TCP => B => FAILS

On Fri, 06 Jan 2006 04:53:25 -0500, <(E-Mail Removed)> wrote:

>> Firewall on B perhaps? Or on A for that matter.

>
> A and B are directly connected with a crosslink (A has two NICs). There
> are no firewalls on this systems... some more ideas? or any hints how
> to narrow it down?


There needn't bee additional hardware for a firewall. Any Linux
system can be configured as a firewall. Check the iptables settings.
Reply With Quote
  #10  
Old 01-11-2006, 04:20 PM
R
Guest
 
Posts: n/a
Default Re: A <= ping => B => OK A <= TCP => B => FAILS

Since you are pinging between the two machines, we believe routing,
etc. to be ok. On the server machine I would do a netstat -an | more
-or- an lsof -i to make sure that the box is actually listening on the
right port, etc. to make a connection. If you don't see your
simpleserver listening to a particular port then there you go,
application never bound to port. if it is listening, then the next step
would be ethereal or tcpdump on both machines at the same time to see
if you are getting the inital SYN at the server and to see if the
server is sending the SYN/ACK. This should help you see were its
getting lost. You might try netcat (nc) as al alternative to the
simpleclient/simpleserver stuff.

Reply With Quote
Reply

Tags
>, <, fails, ping, tcp

Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump


All times are GMT. The time now is 05:00 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.