내Cent OS 7 VM 게스트: 열려고 해봐http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os브라우저에는 있지만 연결할 수 없습니다. 심지어http://mirrorlist.centos.org아니요(Firefox에서 시도)
[root@labipa ~]# nslookup mirrorlist.centos.org
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: mirrorlist.centos.org
Address: 85.236.43.108
Name: mirrorlist.centos.org
Address: 212.69.166.138
Name: mirrorlist.centos.org
Address: 216.176.179.218
Name: mirrorlist.centos.org
Address: 67.219.148.138
[root@labipa ~]#
[root@labipa ~]# cat /etc/resolv.conf
# Generated by NetworkManager
search example.com
nameserver 8.8.8.8
[root@labipa ~]# ping -w 1 mirrorlist.centos.org
PING mirrorlist.centos.org (67.219.148.138) 56(84) bytes of data.
64 bytes from 67.219.148.138: icmp_seq=1 ttl=54 time=248 ms
64 bytes from 67.219.148.138: icmp_seq=2 ttl=54 time=249 ms
--- mirrorlist.centos.org ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 248.644/248.861/249.078/0.217 ms
[root@labipa ~]#
[root@labipa ~]# sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: permissive
Mode from config file: permissive
Policy MLS status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: 28
[root@labipa ~]#
[root@labipa ~]# systemctl status firewalld
firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)
Active: inactive (dead) since Sat 2018-05-19 00:59:21 EDT; 16min ago
Process: 639 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS)
Main PID: 639 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/firewalld.service
May 19 00:56:31 labipa.example.com systemd[1]: Started firewalld - dynamic firewall daemon.
May 19 00:59:20 labipa.example.com systemd[1]: Stopping firewalld - dynamic firewall daemon...
May 19 00:59:21 labipa.example.com systemd[1]: Stopped firewalld - dynamic firewall daemon.
[root@labipa ~]#
Cent OS 7 VM 게스트 내부
- nslookup은 mirrorlist.centos.org에서 작동합니다.
- 방화벽이 비활성화되고 selinux가 허용으로 설정됨
- pingmirrorlist.centos.org 성공
- 8.8.8.8을 DNS 서버로 사용
- 이름 지정 서비스가 실행되고 있지 않습니다.
mirrorlist.centos.org를 제외한 다른 모든 웹사이트는 열려 있습니다.
[root@labipa ~]# ip route
default via 192.168.4.2 dev eth0 proto static metric 100
192.168.4.0/24 dev eth0 proto kernel scope link src 192.168.4.200 metric 100
흠 오류:
[root@labipa ~]# yum makecache
Loaded plugins: fastestmirror, langpacks
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#7 - "Failed to connect to 2604:1580:fe02:2::10: Network is unreachable"
편집하다: 내 가상 머신 IP192.168.4.200/24
212.69.166.138 ( is mirrorlist.centos.org )
호스트(192.168.1.6/24)에서 Wireshark를 실행합니다(그리고 다음 오류가 발생합니다(호스트가 관리적으로 금지되었습니다.)
30 23.475234289 212.69.166.138 192.168.4.200 ICMP 102 Destination unreachable (Host administratively prohibited)
31 23.476239837 192.168.4.200 216.176.179.218 TCP 74 52579 > http [SYN] Seq=0 Win=14600 Len=0 MSS=1460 SACK_PERM=1 TSval=5955935 TSecr=0 WS=128
답변1
이 글을 쓰는 시점에서는 mirrorlist.centos.org
IPv6를 통한 액세스가 불가능한 것으로 보입니다.
매뉴얼 페이지에 따르면 yum
다음 줄을 편집하여 IPv4 주소만 확인할 수 있습니다.yum.conf
ip_resolve = IPv4