LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-23-2008, 05:35 PM   #1
nourel2mar
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Rep: Reputation: 0
very strange and comlex problem with my connection (can ping , can't browse)


i have abad problem with al linux destros here .......

i hope to find help here because im really disaapointed

my laptop is >>>>> dell inspiron 1525

i have problem that ican ping any http sites

but if i try to browse them it fails

in firefox it sais

found www.yahoo.com

waiting for www.yahoo.com ......

and it stays like that for along time and finnaly nothing happen

when i use lynx

it stops at

sending http request

waiting for response

i can guess that there some thing drops http reply and prevent it from reaching my pc

i check every configuration

and i tried alot of destros

with no solution

there also bad things

i can't make yum as yum repo refer to http sites

the most stubid thing is that this problem sometimes and other times it is solved i don't know how?????

but when i try ftp sites fire fox can connect to it

and wget works good

im really confused and i searched alo to find a solution

i hope some one will help me




here is the output if some commands in my laptop


root@localhost ~]# ifconfig eth0
eth0: error fetching interface information: Device not found
[root@localhost ~]# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:1D:09:4E:BD:F3
inet addr:192.168.0.8 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21d:9ff:fe4e:bdf3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1424 errors:0 dropped:0 overruns:0 frame:0
TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:121539 (118.6 KiB) TX bytes:15139 (14.7 KiB)
Interrupt:169 Memory:fe8fc000-0



[root@localhost ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth1



[root@localhost ~]# vim /etc/resolv.conf
nameserver 208.67.222.222
nameserver 208.67.220.220
search localdomain



[root@localhost ~]# vim /etc/host.conf
order hosts,bind




[root@localhost ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere

Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere icmp any
ACCEPT esp -- anywhere anywhere
ACCEPT ah -- anywhere anywhere
ACCEPT udp -- anywhere 224.0.0.251 udp dpt:mdns
ACCEPT udp -- anywhere anywhere udp dpt:ipp
ACCEPT tcp -- anywhere anywhere tcp dpt:ipp
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
 
Old 09-23-2008, 05:45 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
How are you connected to the internet? What is the exact setup of your network, so, for example, what router do you have, any proxies, etc.
 
Old 09-23-2008, 05:58 PM   #3
nourel2mar
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Original Poster
Rep: Reputation: 0
i don not connect via proxy i have speed touch router -wired network
 
Old 09-23-2008, 06:06 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Not a lot of detail there.

You say wget works - does it work if you try to download from an http site, or only ftp?

What happens if you telnet in, so try

telnet www.google.com 80

and post the results
 
Old 09-23-2008, 06:19 PM   #5
nourel2mar
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Original Poster
Rep: Reputation: 0
here is the details u need


[root@localhost ~]# telnet www.google.com 80
Trying 208.69.34.230...
Connected to www.google.com (208.69.34.230).
Escape character is '^]'.

**********************************************************************

[root@localhost ~]# wget http://www.google.com
--02:15:17-- http://www.google.com/
Resolving www.google.com... 208.69.34.231, 208.69.34.230
Connecting to www.google.com|208.69.34.231|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://www.google.com.eg/ [following]
--02:15:17-- http://www.google.com.eg/
Resolving www.google.com.eg... 208.69.34.231, 208.69.34.230
Reusing existing connection to www.google.com:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `index.html'

[ <=> ] 5,090 --.-K/s in 0.07s

02:15:18 (69.6 KB/s) - `index.html' saved [5090]

**********************************************************************

[root@localhost ~]# yum update
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
Could not retrieve mirrorlist http://mirrorlist.centos.org/?releas...h=i386&repo=os error was
[Errno 4] IOError: <urlopen error >
Error: Cannot find a valid baseurl for repo: base
 
Old 09-23-2008, 06:33 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
For yum, first try

yum clean all

Then retry

yum update

If that doesn't work, try commenting out the mirrorlist line and uncommenting out the baseurl in /etc/yum.repos.d/CentOS-Base.repo, so

Code:
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/]
to
Code:
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
Pay careful attention to any changes in error messages as you do this if they still occur

Last edited by billymayday; 09-23-2008 at 06:35 PM.
 
Old 09-23-2008, 07:00 PM   #7
nourel2mar
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Original Poster
Rep: Reputation: 0
i did what u said
nothing changed
some one told me to use tcpdump to analyse http packets
how can i do it
plz tell me if u know

((((all my problem is with http sites only)))
 
Old 09-23-2008, 07:09 PM   #8
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Read man tcpdump.

Your problem looks far more like a basic setup problem, and the yum issue is probably separate from your firefox one.

Can you browse at all from the command line using elinks for example?
 
Old 09-23-2008, 07:36 PM   #9
nourel2mar
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Original Poster
Rep: Reputation: 0
no man
i said lynx donot work
and opera do not work only
 
Old 09-23-2008, 07:40 PM   #10
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
I'm just guessing, perhaps disabling ipv6 in firefox would help

In the address bar type:
Quote:
about:config
and then in the filter bar: ipv6
try to disable it and see what happens, if not, than put it back to the original state.
 
Old 09-23-2008, 07:49 PM   #11
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Have you ever been able to browse from that machine on that network - do you have Windows dual booted that works for example, or anothe computer on that network that works?

If you have this problem with a number of distros, it doesn't sound like a linux issue.

If your setup is basically laptop - ethernet - router/modem - internet then you could have an issue with your NIC, not more likely your router/modem.
 
Old 09-25-2008, 11:18 AM   #12
bwdave
LQ Newbie
 
Registered: Sep 2005
Posts: 10

Rep: Reputation: 0
I too am having the same type of problem, going to try the IPv6 in firefox fix first then some of the network commandlines I have seen so far.

My problem has been with several distros from PCLinux 2007, Mandriva 2008, and SuSe 11.0 I eventually seem to have problems connecting to the internet using Firefox, Pidgin, Opera, and the Software management suites.

I can connect using Konqueror, Amsn, and Amarok streaming radio. I can also resolve http addresses and ping them in the cmd line and I can browse the FTP sites using firefox for the software management suites.

The problem starts after installing a distro, and it working for awhile, sometimes the linux box gets shutdown due to a power outage, or a clean shutdown and restart will cause it too. I sometimes will get google to work, and in Mandriva I could get the mandriva home page to work in Firefox. Google will come up but the igoogle page takes forever to load and will not load any of the gadgets.

I've reinstalled firefox and that seems to work for awhile, I checked netstat, traceroute, I just think a port is being disabled or something.

I installed these distros on a seperate partition and also on virtual machines on top of my Windows box. The VMs were running Nat and I switched them to bridged and still same problem

Can it be my router is not letting certain traffic through because it expects this windows box to be on the wire, the problem is it is letting some traffic through such as Amarok and Konqueror. I think it is a conf problem but not sure where to look.
 
Old 09-26-2008, 01:15 PM   #13
bwdave
LQ Newbie
 
Registered: Sep 2005
Posts: 10

Rep: Reputation: 0
I was able to get firefox working with disabling the IPv6. looking at a profile setting for rpmdrake in Mandriva I think it needs something like this disabled.

Last edited by bwdave; 09-26-2008 at 01:17 PM. Reason: Update on status
 
  


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
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
ppp dial-up modem connection: can browse but can't ping DaneM Linux - Networking 6 10-10-2007 04:28 AM
Ping no browse problem simplymepis Kaula Linux - Wireless Networking 2 06-12-2005 01:53 AM
strange ping problem zsoltrenyi Linux - Software 6 10-13-2004 04:24 AM
strange ping problem tonan Linux - Networking 0 10-03-2004 03:41 PM

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

All times are GMT -5. The time now is 05:24 PM.

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