Page 1 of 1

Cent os 8 Status code: 403

Posted: 2020/09/21 06:18:07
by gromazeka81
Hello !
I have a problem, when I try to get updates, I get errors:
# dnf update
CentOS-8 - AppStream 11 kB/s | 3.7 kB 00:00
Errors during downloading metadata for repository 'AppStream':
- Status code: 403 for http://mirrorlist.centos.org/?release=8 ... nfra=stock (IP: 192.168.1.40)
Error: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: Status code: 403 for http://mirrorlist.centos.org/?release=8 ... nfra=stock (IP: 192.168.1.40)

# yum -y install httpd
CentOS-8 - AppStream 32 kB/s | 3.7 kB 00:00
Errors during downloading metadata for repository 'AppStream':
- Status code: 403 for http://mirrorlist.centos.org/?release=8 ... nfra=stock (IP: 192.168.1.40)
Error: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: Status code: 403 for http://mirrorlist.centos.org/?release=8 ... nfra=stock (IP: 192.168.1.40)


/etc/yum.conf
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=True
proxy=http://192.168.1.40:6588


«metadata_timer_sync=3600»

I can't understand what the problem is, the proxy is registered in the config, Help please

Re: Cent os 8 Status code: 403

Posted: 2020/09/21 11:55:57
by TrevorH
Your proxy id rejecting your attempts to get outside. Perhaps you need to provide it login details.

Re: Cent os 8 Status code: 403

Posted: 2021/01/06 14:42:53
by Rodd828
Hello! could you solve it?
I have the same problem..

Re: Cent os 8 Status code: 403

Posted: 2021/01/07 10:33:56
by TrevorH
The 403 is coming from an ip address 172.16.1.107 which is an RFC1918 private ip address and is thus inside your own organisation. It is presumably some sort of web proxy and you will probably need to authenticate with it to be able to get access outside. Talk to your network admins if you do not understand why this is happening. It is an internal issue that only your organisation can solve.