LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-18-2011, 04:03 AM   #1
circuit_PT
Member
 
Registered: Aug 2005
Location: Portugal
Distribution: Fedora Core 3
Posts: 33

Rep: Reputation: 0
Exclamation Strange Network problem Only with some linux hosts


Hello, I will try to keep this post small,but I will describe all my scenario...cause I truly find myself quite lost here.

I have one Linux desktop running Fedora Core 15, it is connect by Ethernet and has address 'A'. This desktop is dual boot and has also windows XP that uses the same address.

I have 3 proxy servers, all running CentOS 5.5 with SSH enabled and running, with ip addresses proxyip1, proxyip2, proxyip3.

There are no firewalls configured in any of the servers neither on my desktop environments.

I make the following test in my fedora core:

Code:
telnet proxyip3 22
it shows the OPENSSH header I click a few times in my keyboard and it disconnects has expected..everything ok here;

Code:
telnet proxyip2 22
it shows the OPENSSH header I click a few times in my keyboard and it disconnects has expected..everything ok here also;

Code:
telnet proxyip1 22
nothing happens it stays trying trying until it just gives gives up.

the thing is...it doesn't happen all the time, just "sometimes..." the main problem isn't even with ssh, we just noticed that some of our Linux desktops where extremely slow accessing the INTERNET, it happens because all this 3 proxy's load balance our INTERNET connections, and Linux desktops where slow so slow that I decided to debug a little bit... and I noticed that during the times they were very slow we couldn't access some of the proxy services, and then noticed that during those times not just the proxy service was unavailable, but any tcp connection to some of the proxy servers was just impossible. However make a ping to the very same server and it works.... and no firewall is configured!

The most strange thing is...this doesn't happen always with this server...sometimes it happens with any of the other two. Even stranger is.... I reboot my desktop and go to my windows xp.... it works great... never ever fails... even stranger... I reboot again... go back to my Linux desktop, repeat the test and it fails has described.. I launch virtual box, I have a virtual machine with windows xp in it... I configure another a new address for it and put the network in bridge mode with my ethernet card...the very same the Linux host is using..In the Fedora it stills fails... inside my virtual box with windows xp installed it WORKS.

At first I thought it was a problem within the network...the packets are being blocked from reaching the server somewhere...maybe the load balancing protocol (WCCP) is causing this....but no... I go to all the proxys and execute:
Code:
tcpdump not host anotheripfromwhereimconnecting and tcp port 22
so that I can see all communications to port 22 and... well...packets enter all the servers...but in the "problematic server of the moment" nothing happens after they enter... nothing... no packet is outputted.. if I saw the packet leaving the server...maybe it could be somewhere in the network..some router blocking it...but an answer never leaves the server...

Output of tcpdump in a server that is working:
Code:
10:28:46.049975 IP myip.50284 > serverip.ssh: S 1027432837:1027432837(0) win 14600 <mss 1460,sackOK,timestamp 6735462 0,nop,wscale 7>
10:28:46.050017 IP serverip.ssh > myip.50284: S 2399763698:2399763698(0) ack 1027432838 win 5792 <mss 1460,sackOK,timestamp 2494826769 6735462,nop,wscale 8>
10:28:46.051098 IP myip.50284 > serverip.ssh: . ack 1 win 115 <nop,nop,timestamp 6735463 2494826769>
10:28:46.051121 IP myip.50284 > serverip.ssh: R 1:1(0) ack 1 win 115 <nop,nop,timestamp 6735463 2494826769>
Output of tcpdump in a server that is experiencing the problem:
Code:
10:28:17.521801 IP myip.50567 > serverip.ssh: S 581526549:581526549(0) win 14600 <mss 1460,sackOK,timestamp 6706958 0,nop,wscale 7>
10:28:17.621496 IP myip.50568 > serverip.ssh: S 572792424:572792424(0) win 14600 <mss 1460,sackOK,timestamp 6707058 0,nop,wscale 7>
10:28:26.527413 IP myip.50580 > serverip.ssh: S 722321451:722321451(0) win 14600 <mss 1460,sackOK,timestamp 6715964 0,nop,wscale 7>
10:28:26.627455 IP myip.50581 > serverip.ssh: S 713286386:713286386(0) win 14600 <mss 1460,sackOK,timestamp 6716064 0,nop,wscale 7>
10:28:35.538137 IP myip.50593 > serverip.ssh: S 858993821:858993821(0) win 14600 <mss 1460,sackOK,timestamp 6724974 0,nop,wscale 7>
10:28:35.637897 IP myip.50594 > serverip.ssh: S 852852340:852852340(0) win 14600 <mss 1460,sackOK,timestamp 6725074 0,nop,wscale 7>
10:28:44.556576 IP myip.50606 > serverip.ssh: S 1005758577:1005758577(0) win 14600 <mss 1460,sackOK,timestamp 6733993 0,nop,wscale 7>
10:28:44.656551 IP myip.50607 > serverip.ssh: S 995859375:995859375(0) win 14600 <mss 1460,sackOK,timestamp 6734093 0,nop,wscale 7>
I've captured packets in intermediate routers, to try and see any difference between a packet generated by a Linux host and a packet generated by a windows host... was expecting to see some problem in TTL's, MSS, MTU etc... nothing....everything "looks" the same.

Can anyone give a hint in where to go from here? Can I check if the packet is discarded by the Linux server kernel somehow? loosing my mind here... please help

This is apparently not a new problem in this network...when I arrived here and said I was having trouble accessing the INTERNET other people in here already knew this could be happening...

Any help will be greatly appreciated!

Thank you and sorry for the long post
 
Old 08-23-2011, 07:47 AM   #2
goossen
Member
 
Registered: May 2006
Location: Bayern, Germany
Distribution: Many
Posts: 224

Rep: Reputation: 41
I think it may be realated to some DNS issues. Check if you can reverse resolve all the hosts IPs and if you have the DNS properly configured in all your machines.
 
Old 08-24-2011, 04:18 AM   #3
circuit_PT
Member
 
Registered: Aug 2005
Location: Portugal
Distribution: Fedora Core 3
Posts: 33

Original Poster
Rep: Reputation: 0
DNS Problem

Hello, I don't think it is DNS related because I forgot to tell this: when my windows packets arrive at the proxy server they arrived masked with one address that is exactly the same has the packets originating in my Linux host. If it was DNS related in relation to this IP it should happen both with the windows packets and the linux packets, however i just checked and reverse dns dns is ok in that server.

Thank you anyway for your help
 
Old 08-24-2011, 09:29 AM   #4
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
Do oyu see that problem if instead of using names you use IPs?
 
Old 08-24-2011, 09:35 AM   #5
circuit_PT
Member
 
Registered: Aug 2005
Location: Portugal
Distribution: Fedora Core 3
Posts: 33

Original Poster
Rep: Reputation: 0
IP's

yes, i practically only use ip addresses never their dns, even now I needed to reboot the services, i connected to the second ip by ssh and reloaded the service, the same with the ip address of the third, however i just couldn't connect to the first... i connected to the second and from there connected to the first to reload the service and it worked....

thanks
 
Old 08-24-2011, 09:54 AM   #6
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
When that failure you just talked about happens, what traffic between the two affected hosts to do you on tcpdump/tshark? I mean, is there traffic leaving the first host? Is it arriving at the second host? Is there a response from the seccond host? Is it reacing the first host?
 
Old 08-24-2011, 10:05 AM   #7
circuit_PT
Member
 
Registered: Aug 2005
Location: Portugal
Distribution: Fedora Core 3
Posts: 33

Original Poster
Rep: Reputation: 0
discarded packets

yes, I have it described in my first post.... both from windows and linux, packets leave my computer, they both arrive at the destination server...however when tha packet comes from my windows it is followed by a reply from the server...when it comes from my linux box... nothing happens ij just goes to the void.... nothing in /var/log/* nothing... it just looks like the server discards it somehow.

thanks for the help
 
Old 08-24-2011, 10:13 AM   #8
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
veeeeeeeeeeeery weird. As a rather simple test, what is the TTL of packets when they leave the linux box and when they arrive at the server? I think you can see the TTLs if you add -v's to tcpdump.
 
1 members found this post helpful.
Old 08-24-2011, 10:21 AM   #9
circuit_PT
Member
 
Registered: Aug 2005
Location: Portugal
Distribution: Fedora Core 3
Posts: 33

Original Poster
Rep: Reputation: 0
I would tell you....but right now... I can access the three servers...sometimes they all work..... just half an hour ago one of them wasn't accessible... as soon as I can Ill post that info.

thank you
 
Old 09-02-2011, 05:01 AM   #10
circuit_PT
Member
 
Registered: Aug 2005
Location: Portugal
Distribution: Fedora Core 3
Posts: 33

Original Poster
Rep: Reputation: 0
Hello, I'm sorry but this problem has been "solved"....all the caching servers were turned off, for now they are not going to be used...so the problem was "solved" I didn't even have the chance to check the TTL, I'm sorry.

But thank you all for all your help!

Carlos Ramos
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Two network interfaces on Ubuntu 10.4.1 caused strange network problem iArash Linux - Networking 1 02-06-2011 04:07 AM
Strange problem with connection between two hosts pgrd Linux - Networking 6 06-21-2009 05:22 AM
Strange Network Problem - Help!!! iceradish Linux - Networking 1 01-24-2009 11:03 PM
strange network problem bom2k1 Linux - Networking 2 06-22-2008 03:01 AM
strange network problem bigmoe Linux - Networking 6 04-02-2006 05:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration