LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-31-2010, 05:15 PM   #1
bbrazell
LQ Newbie
 
Registered: May 2010
Posts: 3

Rep: Reputation: 0
Newly Built Debian Server - PC Unable to Browse to Google


I just rebuilt my OpenSuSE server with the latest version of Debian. Everything is working fine, except for a slight problem. One out of four PCs on my home LAN is unable to access Google. At first I thought that this was a problem with the PC (such as a hijacked hosts file) BUT...when I connect a Linksys Router in place of the Debian server, the PC can get to Google without a problem. This is a very odd problem, I know. I've tried various things on the PC such as updating the NIC driver. The PC is able to ping www.google.com, so I know that DNS and routing are working. I can even telnet to www.google.com on port 80 and do a successful GET, but neither IE8 or Firefox can load any Google page (including the UK, Canada or Japan).

Wireshark shows quite a few TCP Retransmission packets. Also see a "Destination unreachable" and "Fragmentation Needed" packet returned from the server to the client. No packets are returned from Google that I can see. I can upload the cap file if it will help.

Any ideas? Thanks!
 
Old 05-31-2010, 05:23 PM   #2
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 221Reputation: 221Reputation: 221
This is probably an MTU mismatch. What is the MTU setting on the PC?
 
1 members found this post helpful.
Old 05-31-2010, 05:36 PM   #3
bbrazell
LQ Newbie
 
Registered: May 2010
Posts: 3

Original Poster
Rep: Reputation: 0
The MTU on the PC is set to the default value of 1500. Here is what it shows on the server:

eth0 Link encap:Ethernet HWaddr 00:40:63:ed:1b:c0
inet addr:76.104.250.50 Bcast:255.255.255.255 Mask:255.255.248.0
UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1
RX packets:251705 errors:0 dropped:0 overruns:0 frame:0
TX packets:77592 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:72148646 (68.8 MiB) TX bytes:11074185 (10.5 MiB)
Interrupt:10 Base address:0xd000

eth1 Link encap:Ethernet HWaddr 00:40:63:ed:1b:bf
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::240:63ff:feed:1bbf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:143308 errors:0 dropped:0 overruns:0 frame:0
TX packets:240035 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16733337 (15.9 MiB) TX bytes:112689112 (107.4 MiB)
Interrupt:11 Base address:0xe400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:49 errors:0 dropped:0 overruns:0 frame:0
TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2519 (2.4 KiB) TX bytes:2519 (2.4 KiB)

Do you think that the MTU for the external interface should be higher than 576?
 
Old 05-31-2010, 06:35 PM   #4
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 221Reputation: 221Reputation: 221
Yes. It should be 1500 as well.

The MTU mis-match is why packets are getting bounced as "fragmentation required."

Why would you want the MTU at 576? I'll bet you that the Linksys you mentioned in the origional post is set for 1500.

Last edited by foodown; 05-31-2010 at 06:38 PM.
 
Old 06-01-2010, 11:29 AM   #5
bbrazell
LQ Newbie
 
Registered: May 2010
Posts: 3

Original Poster
Rep: Reputation: 0
I didn't set it to 576. It was either Comcast (via DHCP?) or the default in the build. I changed it to 1500 and now Google works fine. To get it to survive a reboot, I first tried adding this line to /etc/network/interfaces:
pre-up /sbin/ifconfig $IFACE mtu 1500

I rebooted and it was still set to 576. I then did this:

Created a file called mtu in /etc/network/if-up.d and added this to it:

#!/bin/sh
ifconfig eth0 mtu 1500

Then I ran chmod 755 mtu

Rebooted and the external interface is set to 1500.

I'm guessing that Google's firewalls must be set to drop fragmented packets. All other sites (Bing, Hotmail, Etrade, etc.) allowed it to work when the MTU was 576. Also strange that it was only failing on my wife's computer and worked on mine (same OS). Thanks for your help. Cheers!
 
Old 06-01-2010, 11:32 AM   #6
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 221Reputation: 221Reputation: 221
Strangely enough, I appreciate the chance to diagnose this issue, as it is my first "real world" networking problem since I got my CCNA.
 
  


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
Problems in newly built kernel saurabh nigam Slackware 8 10-10-2009 02:43 AM
Unable to boot the newly built LFS. luckybtn Linux From Scratch 3 09-13-2008 05:53 PM
Samba server changed to public IP now unable to browse rmarkin Linux - Networking 2 02-18-2006 09:41 AM
Newly Built and no Ethernet grimlaur Mandriva 6 06-11-2005 10:34 PM
debian appending 'n' to newly built kernel name? antonyhilliard Linux - Newbie 5 12-20-2004 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:47 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