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 |
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.
|
i don not connect via proxy i have speed touch router -wired network
|
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 |
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 |
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 Code:
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os |
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))) |
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? |
no man
i said lynx donot work and opera do not work only |
I'm just guessing, perhaps disabling ipv6 in firefox would help
In the address bar type: Quote:
try to disable it and see what happens, if not, than put it back to the original state. |
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. |
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. |
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.
|
All times are GMT -5. The time now is 07:35 PM. |