You are not logged in.

#1 2022-09-25 02:39:02

eatmydiarrhea
Member
Registered: 2022-09-25
Posts: 4

[SOLVED] can't connect to most websites

Fresh install of arch and I'm on i3 then installed firefox. I also installed NetworkManager, ModemManager and enabled/started the services successfully. I can connect to some websites (flawlessly): google,youtube,gmail,archlinux,& more. The error I get on other websites, say reddit, is just the generic can't connect error:

Hmm. We’re having trouble finding that site.

We can’t connect to the server at www.reddit.com.

If you entered the right address, you can:

    Try again later
    Check your network connection
    Check that Firefox has permission to access the web (you might be connected but behind a firewall)

but when I ping reddit.com in terminal, it's successful and has a response time of ~15ms. I initially thought it was an issue with SSL but decided against it because I setup my date and time when installing, and when I get SSL issues it usually results in some websites loading improperly, and a variety of errors instead of the generic one. Hope somebody can help, I need this to work so I can debug issues by myself, thanks

Last edited by eatmydiarrhea (2022-09-25 12:34:47)

Offline

#2 2022-09-25 03:16:31

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] can't connect to most websites

Do you have an IPv4 address? I've seen this happen on IPv6 only systems, they can't access sites that don't have IPv6.

Offline

#3 2022-09-25 03:48:21

eatmydiarrhea
Member
Registered: 2022-09-25
Posts: 4

Re: [SOLVED] can't connect to most websites

Scimmia wrote:

Do you have an IPv4 address? I've seen this happen on IPv6 only systems, they can't access sites that don't have IPv6.

yes, unfortunately you are correct, I have an IPv6 address only. Is there anything I can do?

btw: I didn't run into this issue on ubuntu, win7 or win10

Last edited by eatmydiarrhea (2022-09-25 03:53:44)

Offline

#4 2022-09-25 06:22:19

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,485

Re: [SOLVED] can't connect to most websites

Remove the "unsolved" nonsense from the subject, that's assumed.

Is there anything I can do?

Identify the problem

I can connect to some websites  … I ping reddit.com in terminal, it's successful

and fix your network configuration.

Let's start w/ some usable data:

ip a
ip r
resolvectl status
dig reddit.com
dig @8.8.8.8 reddit.com
find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
sudo journalctl -b | curl -F 'file=@-' 0x0.st # if this doesn't work
sudo journalctl -b > /tmp/journal.txt # and upload that file somewhere somehow

Offline

#5 2022-09-25 08:01:46

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,395

Re: [SOLVED] can't connect to most websites

Scimmia wrote:

Do you have an IPv4 address? I've seen this happen on IPv6 only systems, they can't access sites that don't have IPv6.

looks like you are having this problem.


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

#6 2022-09-25 08:28:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,485

Re: [SOLVED] can't connect to most websites

Though www.reddit.com redirects to reddit.map.fastly.net and  unlike reddit.com doesn't seem to have an AAAA record, so he might have been testing different domains, there're MANY reasons why the OP could end up w/o an IPv4 lease/route - protocol issues w/ a specific server are only one of them - and not the common one (esp. since he had no issues w/ ubuntu)

Offline

#7 2022-09-25 12:34:17

eatmydiarrhea
Member
Registered: 2022-09-25
Posts: 4

Re: [SOLVED] can't connect to most websites

jl2 wrote:
Scimmia wrote:

Do you have an IPv4 address? I've seen this happen on IPv6 only systems, they can't access sites that don't have IPv6.

looks like you are having this problem.

thanks, fixed after install dhcpcd and dhclient, then services  dhcpcd.service, dhcpcd@lo.service, dhcpcd@enp3s0.service, dhclient@enp3s0.service, dhclient@l0.service. Don't know if I set it up right but im still taking this W cause it works <3

Offline

#8 2022-09-25 12:35:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,485

Re: [SOLVED] can't connect to most websites

So now next to NM you've enabled a bunch of dhcpcd and dhclient services - if anything you've made the situation worse.
Post the outputs I asked for in #4

Offline

#9 2022-09-25 13:13:47

eatmydiarrhea
Member
Registered: 2022-09-25
Posts: 4

Re: [SOLVED] can't connect to most websites

seth wrote:

So now next to NM you've enabled a bunch of dhcpcd and dhclient services - if anything you've made the situation worse.
Post the outputs I asked for in #4

ip a https://pastebin.com/h1AJAJKa
ip r https://pastebin.com/5S3KB7mi
resolvectl status https://pastebin.com/6v5a8yMP
dig reddit.com https://pastebin.com/wHAYNAUi
dig @8.8.8.8 reddit.com https://pastebin.com/kXyGrAL8
find... https://pastebin.com/P18tqy7K
http://0x0.st/oWJJ.txt


how have I made the situation worse?

Offline

#10 2022-09-25 13:31:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,485

Re: [SOLVED] can't connect to most websites

how have I made the situation worse?

dhclient@enp3s0.service                  | multi-user.target.wants
dhclient@lo.service                      | multi-user.target.wants
dhcpcd@enp3s0.service                    | multi-user.target.wants
dhcpcd@lo.service                        | multi-user.target.wants
dhcpcd.service                           | multi-user.target.wants
NetworkManager.service                   | multi-user.target.wants
NetworkManager-wait-online.service       | network-online.target.wants

You have now 3½ services competing for the same NIC configuration, LargeWarmLadybird-max-1mb.gif

If you want to use dhcpcd OR dhclient as backend of networkmanager, you'd have to https://wiki.archlinux.org/title/Networ … HCP_client and under no circumstances enable them by themselves.

Edit: there's however no reply for

Sep 24 22:17:49 Boss NetworkManager[503]: <info>  [1664072269.3023] dhcp4 (enp5s0): activation: beginning transaction (timeout in 45 seconds)

so you might indeed run into a protocol issue w/ NMs internal dhcp implementation and substituting that therefore a usable workaround for your problem.

Last edited by seth (2022-09-25 13:35:08)

Offline

Board footer

Powered by FluxBB