LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-28-2016, 11:11 AM   #1
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
unable to browse most sites


hi, i am able to ping certain sites but most i am not able to connect to:
Code:
[schneidz@xbmc ~]$ uname -a -m -p
Linux xbmc 4.5.7-300.fc24.x86_64 #1 SMP Wed Jun 8 18:12:45 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[schneidz@xbmc ~]$ ping -c 5 www.yahoo.com
PING www.yahoo.com(ir1.fp.vip.bf1.yahoo.com (2001:4998:58:c02::a9)) 56 data bytes
64 bytes from ir1.fp.vip.bf1.yahoo.com (2001:4998:58:c02::a9): icmp_seq=1 ttl=48 time=27.3 ms
64 bytes from ir1.fp.vip.bf1.yahoo.com (2001:4998:58:c02::a9): icmp_seq=2 ttl=48 time=65.1 ms
64 bytes from ir1.fp.vip.bf1.yahoo.com (2001:4998:58:c02::a9): icmp_seq=3 ttl=48 time=28.3 ms
64 bytes from ir1.fp.vip.bf1.yahoo.com (2001:4998:58:c02::a9): icmp_seq=4 ttl=48 time=27.5 ms
64 bytes from ir1.fp.vip.bf1.yahoo.com (2001:4998:58:c02::a9): icmp_seq=5 ttl=48 time=28.8 ms

--- www.yahoo.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 27.341/35.455/65.149/14.857 ms
[schneidz@xbmc ~]$ ping -c 5 www.duckduckgo.com
connect: Network is unreachable
i think its related to ipv6 somehow.

thanks,
 
Old 07-28-2016, 04:33 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Ping isn't a great tool but helps some.

Your reply was ipv6 which makes me think that ipv4 isn't enabled.

May be some xbmc(kodi) issue if installed and it is a very modern kernel there may be other issues.

What does ip command tell you about network?

Generally you can disable ipv6 in browser even if network is disabled for ipv6 to correct it.

Need ip command results I think first.

Last edited by jefro; 07-28-2016 at 04:35 PM.
 
1 members found this post helpful.
Old 07-28-2016, 05:15 PM   #3
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 774

Rep: Reputation: 243Reputation: 243Reputation: 243
duckduckgo doesn't seem to have an ipv6 address. Looks like you've got ipv4 disabled or blocked some place. You may also want to check sysctl -A output (grep ipv4), iptables, and routing info while looking for the problem. Since you can't reach most sites, this doesn't say much good for ipv6 adaptation.
 
1 members found this post helpful.
Old 07-28-2016, 08:26 PM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Code:
[schneidz@xbmc ~]$ ip address show dev wlp4s0
3: wlp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 18:5e:0f:9d:76:19 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.105/24 brd 192.168.1.255 scope global wlp4s0
       valid_lft forever preferred_lft forever
    inet6 fdbb:c5a4:dd6d:0:bc0:d53e:710:5a60/64 scope global noprefixroute dynamic 
       valid_lft 7171sec preferred_lft 3571sec
    inet6 2601:8c:702:3e00:48a4:5c3d:46b5:8fec/64 scope global noprefixroute dynamic 
       valid_lft 314948sec preferred_lft 314948sec
    inet6 fe80::2c20:5279:87f1:6bdf/64 scope link 
       valid_lft forever preferred_lft forever
[schneidz@xbmc ~]$ ip link show dev wlp4s0
3: wlp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether 18:5e:0f:9d:76:19 brd ff:ff:ff:ff:ff:ff
[schneidz@xbmc ~]$ ip route show dev wlp4s0
192.168.1.0/24  proto kernel  scope link  src 192.168.1.105  metric 600 
[schneidz@xbmc ~]$ ip rule show 
0:	from all lookup local 
32766:	from all lookup main 
32767:	from all lookup default 
[schneidz@xbmc ~]$ ip netconf | grep wlp4s0
ipv4 dev wlp4s0 forwarding off rp_filter strict mc_forwarding 0 proxy_neigh off 
ipv6 dev wlp4s0 forwarding off mc_forwarding 0 proxy_neigh off 
[schneidz@xbmc ~]$ sudo iptables --list 
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere            
INPUT_direct  all  --  anywhere             anywhere            
INPUT_ZONES_SOURCE  all  --  anywhere             anywhere            
INPUT_ZONES  all  --  anywhere             anywhere            
ACCEPT     icmp --  anywhere             anywhere            
DROP       all  --  anywhere             anywhere             ctstate INVALID
REJECT     all  --  anywhere             anywhere             reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere            
FORWARD_direct  all  --  anywhere             anywhere            
FORWARD_IN_ZONES_SOURCE  all  --  anywhere             anywhere            
FORWARD_IN_ZONES  all  --  anywhere             anywhere            
FORWARD_OUT_ZONES_SOURCE  all  --  anywhere             anywhere            
FORWARD_OUT_ZONES  all  --  anywhere             anywhere            
ACCEPT     icmp --  anywhere             anywhere            
DROP       all  --  anywhere             anywhere             ctstate INVALID
REJECT     all  --  anywhere             anywhere             reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
OUTPUT_direct  all  --  anywhere             anywhere            

Chain FORWARD_IN_ZONES (1 references)
target     prot opt source               destination         
FWDI_FedoraWorkstation  all  --  anywhere             anywhere            [goto] 
FWDI_FedoraWorkstation  all  --  anywhere             anywhere            [goto] 

Chain FORWARD_IN_ZONES_SOURCE (1 references)
target     prot opt source               destination         

Chain FORWARD_OUT_ZONES (1 references)
target     prot opt source               destination         
FWDO_FedoraWorkstation  all  --  anywhere             anywhere            [goto] 
FWDO_FedoraWorkstation  all  --  anywhere             anywhere            [goto] 

Chain FORWARD_OUT_ZONES_SOURCE (1 references)
target     prot opt source               destination         

Chain FORWARD_direct (1 references)
target     prot opt source               destination         

Chain FWDI_FedoraWorkstation (2 references)
target     prot opt source               destination         
FWDI_FedoraWorkstation_log  all  --  anywhere             anywhere            
FWDI_FedoraWorkstation_deny  all  --  anywhere             anywhere            
FWDI_FedoraWorkstation_allow  all  --  anywhere             anywhere            

Chain FWDI_FedoraWorkstation_allow (1 references)
target     prot opt source               destination         

Chain FWDI_FedoraWorkstation_deny (1 references)
target     prot opt source               destination         

Chain FWDI_FedoraWorkstation_log (1 references)
target     prot opt source               destination         

Chain FWDO_FedoraWorkstation (2 references)
target     prot opt source               destination         
FWDO_FedoraWorkstation_log  all  --  anywhere             anywhere            
FWDO_FedoraWorkstation_deny  all  --  anywhere             anywhere            
FWDO_FedoraWorkstation_allow  all  --  anywhere             anywhere            

Chain FWDO_FedoraWorkstation_allow (1 references)
target     prot opt source               destination         

Chain FWDO_FedoraWorkstation_deny (1 references)
target     prot opt source               destination         

Chain FWDO_FedoraWorkstation_log (1 references)
target     prot opt source               destination         

Chain INPUT_ZONES (1 references)
target     prot opt source               destination         
IN_FedoraWorkstation  all  --  anywhere             anywhere            [goto] 
IN_FedoraWorkstation  all  --  anywhere             anywhere            [goto] 

Chain INPUT_ZONES_SOURCE (1 references)
target     prot opt source               destination         

Chain INPUT_direct (1 references)
target     prot opt source               destination         

Chain IN_FedoraWorkstation (2 references)
target     prot opt source               destination         
IN_FedoraWorkstation_log  all  --  anywhere             anywhere            
IN_FedoraWorkstation_deny  all  --  anywhere             anywhere            
IN_FedoraWorkstation_allow  all  --  anywhere             anywhere            

Chain IN_FedoraWorkstation_allow (1 references)
target     prot opt source               destination         
ACCEPT     udp  --  anywhere             anywhere             udp dpt:netbios-ns ctstate NEW
ACCEPT     udp  --  anywhere             anywhere             udp dpt:netbios-dgm ctstate NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ssh ctstate NEW
ACCEPT     udp  --  anywhere             224.0.0.251          udp dpt:mdns ctstate NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpts:blackjack:65535 ctstate NEW
ACCEPT     udp  --  anywhere             anywhere             udp dpts:blackjack:65535 ctstate NEW

Chain IN_FedoraWorkstation_deny (1 references)
target     prot opt source               destination         

Chain IN_FedoraWorkstation_log (1 references)
target     prot opt source               destination         

Chain OUTPUT_direct (1 references)
target     prot opt source               destination     
[schneidz@xbmc ~]$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     600    0        0 wlp4s0
[schneidz@xbmc ~]$ sudo sysctl -A  | grep wlp4s0
net.ipv4.conf.wlp4s0.accept_local = 0
net.ipv4.conf.wlp4s0.accept_redirects = 1
net.ipv4.conf.wlp4s0.accept_source_route = 0
net.ipv4.conf.wlp4s0.arp_accept = 0
net.ipv4.conf.wlp4s0.arp_announce = 0
net.ipv4.conf.wlp4s0.arp_filter = 0
net.ipv4.conf.wlp4s0.arp_ignore = 0
net.ipv4.conf.wlp4s0.arp_notify = 0
net.ipv4.conf.wlp4s0.bootp_relay = 0
net.ipv4.conf.wlp4s0.disable_policy = 0
net.ipv4.conf.wlp4s0.disable_xfrm = 0
net.ipv4.conf.wlp4s0.force_igmp_version = 0
net.ipv4.conf.wlp4s0.forwarding = 0
net.ipv4.conf.wlp4s0.igmpv2_unsolicited_report_interval = 10000
net.ipv4.conf.wlp4s0.igmpv3_unsolicited_report_interval = 1000
net.ipv4.conf.wlp4s0.ignore_routes_with_linkdown = 0
net.ipv4.conf.wlp4s0.log_martians = 0
net.ipv4.conf.wlp4s0.mc_forwarding = 0
net.ipv4.conf.wlp4s0.medium_id = 0
net.ipv4.conf.wlp4s0.promote_secondaries = 1
net.ipv4.conf.wlp4s0.proxy_arp = 0
net.ipv4.conf.wlp4s0.proxy_arp_pvlan = 0
net.ipv4.conf.wlp4s0.route_localnet = 0
net.ipv4.conf.wlp4s0.rp_filter = 1
net.ipv4.conf.wlp4s0.secure_redirects = 1
net.ipv4.conf.wlp4s0.send_redirects = 1
net.ipv4.conf.wlp4s0.shared_media = 1
net.ipv4.conf.wlp4s0.src_valid_mark = 0
net.ipv4.conf.wlp4s0.tag = 0
net.ipv4.neigh.wlp4s0.anycast_delay = 100
net.ipv4.neigh.wlp4s0.app_solicit = 0
net.ipv4.neigh.wlp4s0.base_reachable_time_ms = 30000
net.ipv4.neigh.wlp4s0.delay_first_probe_time = 5
net.ipv4.neigh.wlp4s0.gc_stale_time = 60
net.ipv4.neigh.wlp4s0.locktime = 100
net.ipv4.neigh.wlp4s0.mcast_resolicit = 0
net.ipv4.neigh.wlp4s0.mcast_solicit = 3
net.ipv4.neigh.wlp4s0.proxy_delay = 80
net.ipv4.neigh.wlp4s0.proxy_qlen = 64
net.ipv4.neigh.wlp4s0.retrans_time_ms = 1000
net.ipv4.neigh.wlp4s0.ucast_solicit = 3
net.ipv4.neigh.wlp4s0.unres_qlen = 31
net.ipv4.neigh.wlp4s0.unres_qlen_bytes = 65536
sysctl: reading key "net.ipv6.conf.all.stable_secret"
sysctl: reading key "net.ipv6.conf.default.stable_secret"
sysctl: reading key "net.ipv6.conf.enp3s0.stable_secret"
sysctl: reading key "net.ipv6.conf.lo.stable_secret"
sysctl: reading key "net.ipv6.conf.wlp4s0.stable_secret"
net.ipv6.conf.wlp4s0.accept_dad = 1
net.ipv6.conf.wlp4s0.accept_ra = 1
net.ipv6.conf.wlp4s0.accept_ra_defrtr = 0
net.ipv6.conf.wlp4s0.accept_ra_from_local = 0
net.ipv6.conf.wlp4s0.accept_ra_min_hop_limit = 1
net.ipv6.conf.wlp4s0.accept_ra_mtu = 1
net.ipv6.conf.wlp4s0.accept_ra_pinfo = 0
net.ipv6.conf.wlp4s0.accept_ra_rt_info_max_plen = 0
net.ipv6.conf.wlp4s0.accept_ra_rtr_pref = 0
net.ipv6.conf.wlp4s0.accept_redirects = 1
net.ipv6.conf.wlp4s0.accept_source_route = 0
net.ipv6.conf.wlp4s0.autoconf = 1
net.ipv6.conf.wlp4s0.dad_transmits = 1
net.ipv6.conf.wlp4s0.disable_ipv6 = 0
net.ipv6.conf.wlp4s0.force_mld_version = 0
net.ipv6.conf.wlp4s0.force_tllao = 0
net.ipv6.conf.wlp4s0.forwarding = 0
net.ipv6.conf.wlp4s0.hop_limit = 64
net.ipv6.conf.wlp4s0.ignore_routes_with_linkdown = 0
net.ipv6.conf.wlp4s0.max_addresses = 16
net.ipv6.conf.wlp4s0.max_desync_factor = 600
net.ipv6.conf.wlp4s0.mc_forwarding = 0
net.ipv6.conf.wlp4s0.mldv1_unsolicited_report_interval = 10000
net.ipv6.conf.wlp4s0.mldv2_unsolicited_report_interval = 1000
net.ipv6.conf.wlp4s0.mtu = 1280
net.ipv6.conf.wlp4s0.ndisc_notify = 0
net.ipv6.conf.wlp4s0.optimistic_dad = 0
net.ipv6.conf.wlp4s0.proxy_ndp = 0
net.ipv6.conf.wlp4s0.regen_max_retry = 3
net.ipv6.conf.wlp4s0.router_probe_interval = 60
net.ipv6.conf.wlp4s0.router_solicitation_delay = 1
net.ipv6.conf.wlp4s0.router_solicitation_interval = 4
net.ipv6.conf.wlp4s0.router_solicitations = 3
net.ipv6.conf.wlp4s0.suppress_frag_ndisc = 1
net.ipv6.conf.wlp4s0.temp_prefered_lft = 86400
net.ipv6.conf.wlp4s0.temp_valid_lft = 604800
net.ipv6.conf.wlp4s0.use_oif_addrs_only = 0
net.ipv6.conf.wlp4s0.use_optimistic = 0
net.ipv6.conf.wlp4s0.use_tempaddr = 0
net.ipv6.neigh.wlp4s0.anycast_delay = 100
net.ipv6.neigh.wlp4s0.app_solicit = 0
net.ipv6.neigh.wlp4s0.base_reachable_time_ms = 30000
net.ipv6.neigh.wlp4s0.delay_first_probe_time = 5
net.ipv6.neigh.wlp4s0.gc_stale_time = 60
net.ipv6.neigh.wlp4s0.locktime = 0
net.ipv6.neigh.wlp4s0.mcast_resolicit = 0
net.ipv6.neigh.wlp4s0.mcast_solicit = 3
net.ipv6.neigh.wlp4s0.proxy_delay = 80
net.ipv6.neigh.wlp4s0.proxy_qlen = 64
net.ipv6.neigh.wlp4s0.retrans_time_ms = 1000
net.ipv6.neigh.wlp4s0.ucast_solicit = 3
net.ipv6.neigh.wlp4s0.unres_qlen = 31
net.ipv6.neigh.wlp4s0.unres_qlen_bytes = 65536

Last edited by schneidz; 07-28-2016 at 08:49 PM.
 
Old 07-28-2016, 09:13 PM   #5
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
since this pc is not setup to dhcp, i logged into gnome and went to network preferences. in the ipv4 tab i typed in the ip address of my router in the gateway and dns fields.
 
Old 07-30-2016, 10:57 PM   #6
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 774

Rep: Reputation: 243Reputation: 243Reputation: 243
You don't seem to have an ipv4 default route setup. Should look like

Code:
ip route show dev eth0
default via 192.168.10.1 
192.168.10.0/24  proto kernel  scope link  src 192.168.10.2
You can add a default route via ip route command. I see you marked this "solved" but for another way to fix the problem I've listed the above.
 
1 members found this post helpful.
  


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
Can't browse https sites through squid gubak Linux - Server 4 11-19-2009 01:34 AM
iptables router: can't browse certain sites Robert S Linux - Networking 3 11-27-2007 05:30 AM
help cannot ping to sites but can browse :( madagascar2k Linux - Newbie 3 03-24-2006 01:37 AM
cannot browse the inernet sites in fc2 shams Linux - Networking 1 10-18-2004 04:09 AM
Unable to Browse Sites tanmay_79 Linux - Networking 1 09-05-2002 02:08 AM

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

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