You are not logged in.

#1 2024-11-05 02:15:57

Omarz2012
Member
From: Oshawa, Canada
Registered: 2024-10-19
Posts: 64
Website

[SOLVED]unable to access certain websites

I've recently installed arch linux on my computer and have been trying to install paru but whenever I do it fails, I tried to trouble shoot and found out that I cant ping github and github pages but I can ping every other website including github docs. the only things that I have installed related to networks are iwd, systemd-resolved and Network manager while I only enable iwd and systemd-resolved.
the out put when I ping github or github pages:

ping: connect: Network is unreachable

Last edited by Omarz2012 (2024-11-05 22:42:27)

Offline

#2 2024-11-05 03:20:36

goro9922
Member
Registered: 2019-04-12
Posts: 34

Re: [SOLVED]unable to access certain websites

The first thing I would do is ping github from another machine and note down the IP. Then I would try pinging the IP from your ArchLinux box to see if that works or not. If it does, then it's a resolver problem and you want to check /etc/resolv.conf (which will probably tell you to check a file under /etc/netctl instead). You could also try disabling firewalls. I don't think Arch comes with a default firewall so it would depend on what you installed.

Having said that, it sounds like you have a routing problem. Maybe include the output of ip -r and /etc/netctl/<interface> and see if we can check if you configured your gateway correctly.

Online

#3 2024-11-05 08:37:16

seth
Member
Registered: 2012-09-03
Posts: 59,002

Re: [SOLVED]unable to access certain websites

github.com doesn't have an AAA record, so most likely an IPv4 issue?

ip a; ip r; ping -4 -c1 8.8.8.8

"ip a" will possibly show a publically routable address, only the first to blocks of inet6 addresses are relevant to gage what that is, you can obfuscate the rest

Online

#4 2024-11-05 20:05:41

Omarz2012
Member
From: Oshawa, Canada
Registered: 2024-10-19
Posts: 64
Website

Re: [SOLVED]unable to access certain websites

what are blocks?

seth wrote:

github.com doesn't have an AAA record, so most likely an IPv4 issue?

ip a; ip r; ping -4 -c1 8.8.8.8

"ip a" will possibly show a publically routable address, only the first to blocks of inet6 addresses are relevant to gage what that is, you can obfuscate the rest

also do I run the command or just IP a

Last edited by Omarz2012 (2024-11-05 20:06:48)

Offline

#5 2024-11-05 20:33:33

progandy
Member
Registered: 2012-05-17
Posts: 5,266

Re: [SOLVED]unable to access certain websites

Blocks are the parts of an ipv6 address separated by colons ":". The following command obfuscates all addresses automatically:

 (ip a ; ip r ) | sed -E 's/(\w+[.:]\w*[.:])[0-9a-fA-F:.]+/\1######/g' ; ping -4 -c1 8.8.8.8

| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#6 2024-11-05 22:22:49

Omarz2012
Member
From: Oshawa, Canada
Registered: 2024-10-19
Posts: 64
Website

Re: [SOLVED]unable to access certain websites

output is

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:###### brd 00:00:######
    inet 127.0.######/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: enp4s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 08:8f:###### brd ff:ff:######
4: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 74:4c:###### brd ff:ff:######
    inet6 2607:fea8:######/64 scope global dynamic mngtmpaddr proto kernel_ra 
       valid_lft 298sec preferred_lft 298sec
    inet6 fe80::######/64 scope link proto kernel_ll 
       valid_lft forever preferred_lft forever
ping: connect: Network is unreachable

Offline

#7 2024-11-05 22:28:40

seth
Member
Registered: 2012-09-03
Posts: 59,002

Re: [SOLVED]unable to access certain websites

You don't have an IPv4 lease.

Please post the output of

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Did you enable https://wiki.archlinux.org/title/Iwd#En … figuration ?

Online

#8 2024-11-05 22:41:45

Omarz2012
Member
From: Oshawa, Canada
Registered: 2024-10-19
Posts: 64
Website

Re: [SOLVED]unable to access certain websites

im an idiot. Well thank you for helping me and being so patient

Last edited by Omarz2012 (2024-11-05 23:03:09)

Offline

#9 2024-11-06 06:55:46

seth
Member
Registered: 2012-09-03
Posts: 59,002

Re: [SOLVED]unable to access certain websites

If you fixed this by enabling iwd's network configuration you had systemd-networkd not enabled or unconfigured for that NIC, https://wiki.archlinux.org/title/System … work_files

Online

Board footer

Powered by FluxBB