yum update on cent OS in a restricted network
I have a situation where I have CentOS 7.5 installed on my VM from iso image. My server is not connected over internet. Now, I want to update the packages from centOS site but when I execute yum update , it fails with below error -
Error- https://mirror.centos.org/centos/7/extras/x86_64/repodata/repomd.xml: [Errno
14] curl#7 - "Failed to connect to 2a00:1768:1001:48::10: Network is unreachable"
Trying other mirror.
I have added the IP for mirror.centos.org in firewall rules. But problem is the IP keeps changing each time I try to do nslookup.
[root@763729-mars-oms-docker-registry yum.repos.d]# curl -v https://mirror.centos.org
* About to connect() to mirror.centos.org port 443 (#0)
* Trying 185.50.225.30...
* Connection refused
* Trying 2a05:b80:0:118::10...
* Failed to connect to 2a05:b80:0:118::10: Network is unreachable
* Failed connect to mirror.centos.org:443; Network is unreachable
* Closing connection 0
curl: (7) Failed to connect to 2a05:b80:0:118::10: Network is unreachable
[root@763729-mars-oms-docker-registry yum.repos.d]# nslookup mirror.centos.org
Server: 83.138.151.80
Address: 83.138.151.80#53
Non-authoritative answer:
Name: mirror.centos.org
Address: 195.154.220.72
[root@763729-mars-oms-docker-registry yum.repos.d]# nslookup mirror.centos.org
Server: 83.138.151.80
Address: 83.138.151.80#53
Non-authoritative answer:
Name: mirror.centos.org
Address: 77.247.178.5
[root@763729-mars-oms-docker-registry yum.repos.d]# curl -v https://mirror.centos.org
* About to connect() to mirror.centos.org port 443 (#0)
* Trying 109.228.54.129...
* Connection refused
* Trying 2a02:2658:1056:0:222:19ff:fed6:7c9a...
* Failed to connect to 2a02:2658:1056:0:222:19ff:fed6:7c9a: Network is unreachable
* Failed connect to mirror.centos.org:443; Network is unreachable
* Closing connection 0
curl: (7) Failed to connect to 2a02:2658:1056:0:222:19ff:fed6:7c9a: Network is unreachable
As firewall rules are not managed by us, we have to request our cloud provider to perform the changes each time if any change is to be performed. So, we have asked to implement dynamic ACL for this url. But it would take some time from their side to implement as they work outside our timezone, so I have to wait for next day.
But, is there a static IP for cent OS mirror repos, which I can refer and add it once to work around this. Or any other suggestions?
centos7 yum
add a comment |
I have a situation where I have CentOS 7.5 installed on my VM from iso image. My server is not connected over internet. Now, I want to update the packages from centOS site but when I execute yum update , it fails with below error -
Error- https://mirror.centos.org/centos/7/extras/x86_64/repodata/repomd.xml: [Errno
14] curl#7 - "Failed to connect to 2a00:1768:1001:48::10: Network is unreachable"
Trying other mirror.
I have added the IP for mirror.centos.org in firewall rules. But problem is the IP keeps changing each time I try to do nslookup.
[root@763729-mars-oms-docker-registry yum.repos.d]# curl -v https://mirror.centos.org
* About to connect() to mirror.centos.org port 443 (#0)
* Trying 185.50.225.30...
* Connection refused
* Trying 2a05:b80:0:118::10...
* Failed to connect to 2a05:b80:0:118::10: Network is unreachable
* Failed connect to mirror.centos.org:443; Network is unreachable
* Closing connection 0
curl: (7) Failed to connect to 2a05:b80:0:118::10: Network is unreachable
[root@763729-mars-oms-docker-registry yum.repos.d]# nslookup mirror.centos.org
Server: 83.138.151.80
Address: 83.138.151.80#53
Non-authoritative answer:
Name: mirror.centos.org
Address: 195.154.220.72
[root@763729-mars-oms-docker-registry yum.repos.d]# nslookup mirror.centos.org
Server: 83.138.151.80
Address: 83.138.151.80#53
Non-authoritative answer:
Name: mirror.centos.org
Address: 77.247.178.5
[root@763729-mars-oms-docker-registry yum.repos.d]# curl -v https://mirror.centos.org
* About to connect() to mirror.centos.org port 443 (#0)
* Trying 109.228.54.129...
* Connection refused
* Trying 2a02:2658:1056:0:222:19ff:fed6:7c9a...
* Failed to connect to 2a02:2658:1056:0:222:19ff:fed6:7c9a: Network is unreachable
* Failed connect to mirror.centos.org:443; Network is unreachable
* Closing connection 0
curl: (7) Failed to connect to 2a02:2658:1056:0:222:19ff:fed6:7c9a: Network is unreachable
As firewall rules are not managed by us, we have to request our cloud provider to perform the changes each time if any change is to be performed. So, we have asked to implement dynamic ACL for this url. But it would take some time from their side to implement as they work outside our timezone, so I have to wait for next day.
But, is there a static IP for cent OS mirror repos, which I can refer and add it once to work around this. Or any other suggestions?
centos7 yum
add a comment |
I have a situation where I have CentOS 7.5 installed on my VM from iso image. My server is not connected over internet. Now, I want to update the packages from centOS site but when I execute yum update , it fails with below error -
Error- https://mirror.centos.org/centos/7/extras/x86_64/repodata/repomd.xml: [Errno
14] curl#7 - "Failed to connect to 2a00:1768:1001:48::10: Network is unreachable"
Trying other mirror.
I have added the IP for mirror.centos.org in firewall rules. But problem is the IP keeps changing each time I try to do nslookup.
[root@763729-mars-oms-docker-registry yum.repos.d]# curl -v https://mirror.centos.org
* About to connect() to mirror.centos.org port 443 (#0)
* Trying 185.50.225.30...
* Connection refused
* Trying 2a05:b80:0:118::10...
* Failed to connect to 2a05:b80:0:118::10: Network is unreachable
* Failed connect to mirror.centos.org:443; Network is unreachable
* Closing connection 0
curl: (7) Failed to connect to 2a05:b80:0:118::10: Network is unreachable
[root@763729-mars-oms-docker-registry yum.repos.d]# nslookup mirror.centos.org
Server: 83.138.151.80
Address: 83.138.151.80#53
Non-authoritative answer:
Name: mirror.centos.org
Address: 195.154.220.72
[root@763729-mars-oms-docker-registry yum.repos.d]# nslookup mirror.centos.org
Server: 83.138.151.80
Address: 83.138.151.80#53
Non-authoritative answer:
Name: mirror.centos.org
Address: 77.247.178.5
[root@763729-mars-oms-docker-registry yum.repos.d]# curl -v https://mirror.centos.org
* About to connect() to mirror.centos.org port 443 (#0)
* Trying 109.228.54.129...
* Connection refused
* Trying 2a02:2658:1056:0:222:19ff:fed6:7c9a...
* Failed to connect to 2a02:2658:1056:0:222:19ff:fed6:7c9a: Network is unreachable
* Failed connect to mirror.centos.org:443; Network is unreachable
* Closing connection 0
curl: (7) Failed to connect to 2a02:2658:1056:0:222:19ff:fed6:7c9a: Network is unreachable
As firewall rules are not managed by us, we have to request our cloud provider to perform the changes each time if any change is to be performed. So, we have asked to implement dynamic ACL for this url. But it would take some time from their side to implement as they work outside our timezone, so I have to wait for next day.
But, is there a static IP for cent OS mirror repos, which I can refer and add it once to work around this. Or any other suggestions?
centos7 yum
I have a situation where I have CentOS 7.5 installed on my VM from iso image. My server is not connected over internet. Now, I want to update the packages from centOS site but when I execute yum update , it fails with below error -
Error- https://mirror.centos.org/centos/7/extras/x86_64/repodata/repomd.xml: [Errno
14] curl#7 - "Failed to connect to 2a00:1768:1001:48::10: Network is unreachable"
Trying other mirror.
I have added the IP for mirror.centos.org in firewall rules. But problem is the IP keeps changing each time I try to do nslookup.
[root@763729-mars-oms-docker-registry yum.repos.d]# curl -v https://mirror.centos.org
* About to connect() to mirror.centos.org port 443 (#0)
* Trying 185.50.225.30...
* Connection refused
* Trying 2a05:b80:0:118::10...
* Failed to connect to 2a05:b80:0:118::10: Network is unreachable
* Failed connect to mirror.centos.org:443; Network is unreachable
* Closing connection 0
curl: (7) Failed to connect to 2a05:b80:0:118::10: Network is unreachable
[root@763729-mars-oms-docker-registry yum.repos.d]# nslookup mirror.centos.org
Server: 83.138.151.80
Address: 83.138.151.80#53
Non-authoritative answer:
Name: mirror.centos.org
Address: 195.154.220.72
[root@763729-mars-oms-docker-registry yum.repos.d]# nslookup mirror.centos.org
Server: 83.138.151.80
Address: 83.138.151.80#53
Non-authoritative answer:
Name: mirror.centos.org
Address: 77.247.178.5
[root@763729-mars-oms-docker-registry yum.repos.d]# curl -v https://mirror.centos.org
* About to connect() to mirror.centos.org port 443 (#0)
* Trying 109.228.54.129...
* Connection refused
* Trying 2a02:2658:1056:0:222:19ff:fed6:7c9a...
* Failed to connect to 2a02:2658:1056:0:222:19ff:fed6:7c9a: Network is unreachable
* Failed connect to mirror.centos.org:443; Network is unreachable
* Closing connection 0
curl: (7) Failed to connect to 2a02:2658:1056:0:222:19ff:fed6:7c9a: Network is unreachable
As firewall rules are not managed by us, we have to request our cloud provider to perform the changes each time if any change is to be performed. So, we have asked to implement dynamic ACL for this url. But it would take some time from their side to implement as they work outside our timezone, so I have to wait for next day.
But, is there a static IP for cent OS mirror repos, which I can refer and add it once to work around this. Or any other suggestions?
centos7 yum
centos7 yum
asked Nov 23 '18 at 13:07
NKumarNKumar
9416
9416
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
This got resolved by adding the nearest mirror site in baseurl and replacing mirror.centos.org. And adding the mirror site IP in firewall rule.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53447315%2fyum-update-on-cent-os-in-a-restricted-network%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
This got resolved by adding the nearest mirror site in baseurl and replacing mirror.centos.org. And adding the mirror site IP in firewall rule.
add a comment |
This got resolved by adding the nearest mirror site in baseurl and replacing mirror.centos.org. And adding the mirror site IP in firewall rule.
add a comment |
This got resolved by adding the nearest mirror site in baseurl and replacing mirror.centos.org. And adding the mirror site IP in firewall rule.
This got resolved by adding the nearest mirror site in baseurl and replacing mirror.centos.org. And adding the mirror site IP in firewall rule.
answered Nov 29 '18 at 18:51
NKumarNKumar
9416
9416
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53447315%2fyum-update-on-cent-os-in-a-restricted-network%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown