Results 1 to 10 of 13

Thread: Ping works, WWW doesn't

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Beans
    36

    Ping works, WWW doesn't

    Hi folks,
    i bought a Asus-Netbook Eee Pc 1005HA PU17 recently and am pretty happy with it. As I installed Ubuntu 9.10 on it today I was unable to get the Internet connection to work. I am able to connect to a network (wired as well as wireless) but cannot open Websites (the connection times out) or update my ubuntu install. What's really strange is that pinging IPs and websites works just fine.

    I tried different Kernels (2.6.31-16 and 2.6.32) as well as installing backports.

    My network chips are Atheros AR8132 for Ethernet and Atheros AR9285 for WLAN.

    Furthermore the Internet works perfectly in Windows 7 and even in Moblin 2.1.

    Would be great if anyone would have an advice. Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Ping works, WWW doesn't

    My latest favorite villain is MTU - this thread shows a troubleshooting technique.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  3. #3
    Join Date
    Dec 2009
    Beans
    110
    Distro
    Ubuntu

    Re: Ping works, WWW doesn't

    I suspect something is blocking outbound connections to port 80 from your machine.

    Do you have something like this in either ~/.profile or /etc/profile?

    Code:
    export  http_proxy=http://proxy-server.mycorp.com:3128/
    To check ~/.profile , please use :

    Code:
    gedit ~/.profile
    For /etc/profile use :

    Code:
    sudo gedit /etc/profile
    It could also be a firewalling rule. A look at what you've got set may be very illuminating. You can list them using :

    Code:
    sudo iptables -L
    Additionally, you're connecting via DHCP, yes? This post ( http://ubuntuforums.org/showthread.php?t=911963 ) suggests if you set up a static address, an error in the gateway setting can cause this.
    I just need your bank account number and sort code, and we can wire you the monies directly.

  4. #4
    Join Date
    Dec 2007
    Beans
    36

    Re: Ping works, WWW doesn't

    Thanks for your hints, but the problem still persists.

    @Iowan: I tried pinging -s 32 and -s 1600 and both of them succeeded. So I don't think it's an MTU issue.

    @changingstate: I didn't add anything to my profile files since it's a fresh install. There is no export statement in them. Also the iptables seem to be empty. Yes, I am connecting via DHCP.

    This is the output of wget www.google.com (it is stuck after that):
    Code:
    wget www.google.com > result
    --2010-01-12 00:37:58--  http://www.google.com/
    Resolving www.google.com... 74.125.39.147
    Connecting to www.google.com|74.125.39.147|:80... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: http://www.google.it/ [following]
    --2010-01-12 00:37:58--  http://www.google.it/
    Resolving www.google.it... 1.0.0.0
    Connecting to www.google.it|1.0.0.0|:80...
    Seems to be a DNS problem imho. I double checked the systems proxy config and it's set to "Direct Connection to the Internet".

  5. #5
    Join Date
    Dec 2009
    Beans
    110
    Distro
    Ubuntu

    Re: Ping works, WWW doesn't

    Aaah, I've seen this with a flaky DNS server on an old D-Link router I have floating around somewhere. It utterly loathed the DNS requests from my debian 2.2 system but was quite happy with the windows systems.

    IIRC, I hacked /etc/resolv.conf to access my ISP's nameserver directly, rather than the D-Link router. It produced a little more traffic on the network, but it fixed the issue.
    Last edited by changingstate; January 12th, 2010 at 03:17 AM. Reason: Yes, there was a typo. Thank you.
    I just need your bank account number and sort code, and we can wire you the monies directly.

  6. #6
    Join Date
    May 2007
    Location
    Basildon, England
    Beans
    339
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Ping works, WWW doesn't

    Adding my three ha'p'n'th it does sound a little like DNS issues or firewall.
    I hate this answer but have you rebooted your router since setting up the system. There are times when these bits of kit get their underwear twisted and rebooting can often provide a resolution.
    Mick 'n Keef rock, Chas beats time and Ronnie is the new boy
    Registered as user 466848 with the Linux Counter. Registered Ubuntu User 22858. Our company website or our new venture

  7. #7
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Ping works, WWW doesn't

    I was afraid I'd used up my luck on MTU...
    What's in /etc/resolv.conf? (Although you'd think DNS would mess with pings, too)
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •