LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 09-24-2018, 11:59 AM   #1
Matheus_Dias
LQ Newbie
 
Registered: Sep 2018
Posts: 4

Rep: Reputation: Disabled
Can’t access most websites on a particular computer and a particular wireless network


I recently installed linux for the first time (I’m using deepin 15.7) and I can’t access most websites. I’ve tested in three other computers running the exact same distribution, on the same network (wireless) and they’re fine, and I can normally access every website in other connections. I don’t know if it matters, but most of the websites i AM able to access are mostly google services (google.com, gmail, google drive, google sheets) another one is facebook. I am able to ping these websites, but not 8.8.8.8 or the opendns one.

Hope you can help me.
 
Old 09-24-2018, 02:24 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,093

Rep: Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301
Welcome to LQ.
Post the contents of these files, and we'll try
Code:
echo "Route:"
route
echo
echo "Resolv.conf:"
cat /etc/resolv.conf
echo
Are you using startup scripts or networkmanager?
 
Old 09-24-2018, 03:32 PM   #3
Matheus_Dias
LQ Newbie
 
Registered: Sep 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hey, I’m a newbie when it comes to linux, so, forgive me if i’m doing something wrong.
I’m not sure what startup scripts and network manager are, but I assume i’m using network manager based on the “#Generated by NetworkManager” line, but if it’s not, let me know and i’ll search it up.

Code:
Route:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

Resolv.conf:
# Generated by NetworkManager
nameserver 2001:12f0:618:160::2
nameserver 2001:12f0:619:340::3
Thanks for the help! xD

Last edited by Matheus_Dias; 09-24-2018 at 05:03 PM.
 
Old 09-24-2018, 08:40 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,257
Blog Entries: 28

Rep: Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119
In addition to the above suggestions, try a "traceroute" to a couple of sites you can connect to, then to a couple of sites you can't connect to and pipe the results to files. By comparing the files, you may get a hint as to what is breaking down. For example:

Code:
traceroute [address] > [somefile.txt]
traceroute [address1] > [somefile1.txt]
and so on.
Here's an article on *buntu networking that you might find helpful: https://help.ubuntu.com/lts/servergu...orking.html.en
 
Old 09-25-2018, 01:27 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i once had a problem where ipv6 was available, but ipv4 wasn't, which strangely resulted in mostly only google sites being accessible.

please show us:
Code:
ping -4 -c3 8.8.8.8
ping -6 -c3 2001:12f0:618:160::2
 
Old 09-25-2018, 03:36 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,093

Rep: Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301
Quote:
Originally Posted by Matheus_Dias
Route:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface

Resolv.conf:
# Generated by NetworkManager
nameserver 2001:12f0:618:160::2
nameserver 2001:12f0:619:340::3
That seems to be showing what frankbell & ondoho have already explained. You have IPV6 capability, but not IPV4

When IPV4 was switched off for a weekend some years back, the whole internet broke in many places. It runs (still) on IPV4. You have an IPV6 setup. What's your modem IP address? What's NetworkManager smoking? Here's my setup
Code:
bash-4.4$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         xxx.xxx.xxx.1   0.0.0.0         UG    304    0        0 wlan0
loopback        0.0.0.0         255.0.0.0       U     0      0        0 lo
xxx.xxx.xxx.0   0.0.0.0         255.255.255.0   U     304    0        0 wlan0
Where xxx.xxx.xxx.1 is my modem address (e.g. 192.168.1.1) and 192.168.1.0 is my home network. You need routes to
  1. Your modem (
  2. yourself
  3. Your home network.
  4. Any other network you need access to (e.g. your job's network).

You can install these by hand with 'route add <details>' See man route for details. And here is my resolv.conf
Code:
bash-4.4$ cat /etc/resolv.conf
# Generated by dhcpcd
nameserver 208.67.222.222
nameserver 208.67.220.220
# /etc/resolv.conf.tail can replace this line
bash-4.4$
You can see the opendns servers in there. I believe google is IPV6 capable. I certainly am not atm. I'm a user, not a sysadmin. While you are figuring this oput, modify /etc/resolv.conf, and put in my 2 name servers above the IPV6 ones that NetworkManager has in there. Add a few routes manually, and try things.
You'll have to go at networkmanager, but I'm not the one to do much for you there. I'm only cominjg up to speed on that myself.
Your isp normally gives out DNS addresses when the modem connects; Your modem/router gives out DNS addresses when you connect. These can be what the ISP offers, or your own choices. Then you can use the ones you're offered, or your own ones. You configure that on your box. I was able to filter the modem not to pick up dodgy sites, but free myself not to be restricted; It's not that I want porn, but I want sci-hub.
 
1 members found this post helpful.
Old 09-25-2018, 07:48 AM   #7
Matheus_Dias
LQ Newbie
 
Registered: Sep 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hey, guys.

For some reason beyond my understanding, when I came to work today I could access every website. I don't know what's changed, but it works lol.

Thank you very much, anyways.
 
Old 09-25-2018, 09:38 AM   #8
Matheus_Dias
LQ Newbie
 
Registered: Sep 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Nevermind, I was just on another network.
Anyways, I’ll try all you guys said and see if it works.

Thank you so much.
 
Old 09-26-2018, 12:54 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
this was my thread about the issue back then.
i did get it solved in the end, but i don't exactly remember how.
i'm not exactly hot on networking stuff.
also, some things have probably changed (a lot) since then, at least on archlinux: systemd is now doing most if not all of the networking.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
wireless network connected but cannot visit any websites gvoutsad Linux - Newbie 1 02-19-2012 09:04 PM
Can't access websites from internal network... dschuett Linux - Networking 4 08-30-2010 01:57 PM
What does it take to access winxp computer on home network? ieatbunnies Linux - Newbie 3 02-04-2010 07:19 PM
Computer to Computer Wireless Network How To Sir Lunch-a-lot Linux - Wireless Networking 5 10-18-2006 08:56 PM
How can I access websites from private network alanvee Linux - Networking 1 02-04-2006 11:05 AM

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

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