Can't connect to github

Hello all.

Running into a weird problem. I am running OpenSuse Leap 15.4 fully up to date as of last night. I am using it as a home server and have it installed on a Dell PowerEdge T310. I only use 1 of the onboard NICs. The system is connected to a switch with 2 other Linux systems connected to it then that switch is connected to the router. Just trying to provide as much info on the setup as I can for troubleshooting.

Onto the problem. I am trying to install Webmin. I am following the install guide SDB:Webmin - openSUSE Wiki which says using Git is the preferred method to install it. Git installed just fine but the problem comes when I try and connect to github.com. When I try and clone the location I get the error “Network is unreachable”. I get the same if I try and ping github.com yet I can ping google.com just fine. I can access any site in a web browser except github.com yet on my other 2 systems connected to that same switch (running Manjaro) I can ping and connect to github.com just fine. Even in a browser. My other machines are still connecting to the file shares on it just fine. OpenSuse even pulls down updates with no problem. Just for some reason it will not allow any sort of connection to github.com. Any ideas?

Thank you everyone.

@pjsteeves use https git clone https://github.com/webmin/webmin.git /usr/local/webadmin

Thank you for your reply. I wish that worked. Just tried that and I get a different error "fatal: unable to access ‘GitHub - webmin/webmin: Powerful and flexible web-based server management control panel’: Couldn’t connect to server. I’m not sure why but it seems like something somewhere is blocking my access to that site but no idea where to look. I have never setup a firewall rule to block that site. Even disabling the firewall has the same result.

Sorry. Was trying to quote the error and for some reason the forum software is substituting part of my quote of the error with a description of the software.

@pjsteeves I would just clone (as your user) and copy the files over as root user to the indicated location.

git clone https://github.com/webmin/webmin.git webadmin
Cloning into 'webadmin'...
remote: Enumerating objects: 197394, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 197394 (delta 2), reused 6 (delta 1), pack-reused 197383
Receiving objects: 100% (197394/197394), 93.67 MiB | 23.86 MiB/s, done.
Resolving deltas: 100% (108347/108347), done.
Updating files: 100% (62628/62628), done.

But this is the problem I’m having. I can’t connect to github.com as a regular or root user at all. Not from the command line or in a web browser even though my other 2 desktop systems can. It’s like a rule or something is blocking my access to that site on my OpenSuse system even though I’ve never set one up.

@pjsteeves Disable the firewall temporarily and check.

Sorry but as mentioned above… Disabling the firewall has the same result. Is there somewhere other than the firewall that might be keeping a blacklist of sites or something similar? Although I have no idea why github would ever be blocked by anything.

@pjsteeves so your other computers work fine, perhaps check your /etc/hosts and /etc/resolv.conf file(s), does github resolve from the machine?

dig github.com
dig github.com @8.8.8.8

Not sure if this helps.

@pjsteeves so if you try the commands above on the other computers do both dig commands work? Check the /etc/resolv.conf files on these machines are they the same?

Sorry I don’t have dig on my Manjaro machines just drill. But from what I understand it’s functionally equivalent.

Same command ran on my OpenSuse server. Not sure if this helps.

@pjsteeves I suspect ipv4 vs ipv6 Try git clone --ipv6 ... or test with drill github.com @2001:4860:4860::8888

It has nothing to do with openSUSE. Report this to your ISP, we have no way to know where and why connection is blocked.

They are different:

erlangen:~ # ping -c1 google.com
PING google.com(fra24s02-in-x0e.1e100.net (2a00:1450:4001:803::200e)) 56 data bytes
64 bytes from fra24s02-in-x0e.1e100.net (2a00:1450:4001:803::200e): icmp_seq=1 ttl=60 time=20.0 ms

--- google.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 20.001/20.001/20.001/0.000 ms
erlangen:~ # ping -c1 github.com
PING github.com (140.82.121.4) 56(84) bytes of data.
64 bytes from lb-140-82-121-4-fra.github.com (140.82.121.4): icmp_seq=1 ttl=57 time=19.4 ms

--- github.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 19.354/19.354/19.354/0.000 ms
erlangen:~ # 

Make sure ipv4 works. I switched from systemd-network to NetworkManager and found that some of the hosts get an ipv6 address only. Restarting avahi fixes ipv4.

erlangen:~ # ping -c1 -6 github.com
ping: github.com: Address family for hostname not supported
erlangen:~ # 

Sorry but yes. This has everything to do with OpenSuse. My ISP is NOT blocking github.com so there is nothing to report to them. As stated above I have 2 other machines connected to the same switch running Manjaro that are able to connect and install packages from github just fine. Only OpenSuse seems to have the issue.

Hmm. I wonder if that could be where the issue lies. I moved away from NetworkManager and went with Wicked on the OpenSuse machine when I first set it up. My 2 Manjaro machines I left running NetworkManager instead. I need to go run some errands but will look a bit more into this when I get home. :slight_smile:

@malcolmlewis

Ok no idea why but it seems Wicked was causing the problem. I switched back to Network Manager and oddly it works. I have no idea why using Wicked it was blocking github.com as I have never set up any filtering rules or anything beyond the defaults. But github is finally working. Thank you guys for your help. Much appreciated. :slight_smile: