- 论坛徽章:
- 0
|
iptables设置后 yum一直无法下载,关闭防火墙后就恢复。
iptables具体配置如下:
[root@Centos ~]# iptables --line-numbers -L
Chain INPUT (policy DROP)
num target prot opt source destination
1 ACCEPT tcp -- anywhere anywhere tcp dpt:22022
2 ACCEPT tcp -- anywhere anywhere tcp spt:domain
3 ACCEPT udp -- anywhere anywhere udp spt:domain
4 ACCEPT tcp -- anywhere anywhere tcp dpt:ftp
5 ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
6 ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
Chain FORWARD (policy DROP)
num target prot opt source destination
Chain OUTPUT (policy DROP)
num target prot opt source destination
1 ACCEPT tcp -- anywhere anywhere tcp spt:22022
2 ACCEPT tcp -- anywhere anywhere tcp dpt:domain
3 ACCEPT udp -- anywhere anywhere udp dpt:domain
4 ACCEPT tcp -- anywhere anywhere tcp dpt:ftp-data state ESTABLISHED
5 ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
6 ACCEPT tcp -- anywhere anywhere tcp spt:ssh
7 ACCEPT tcp -- anywhere anywhere tcp spt:http state NEW
Chain ANTI_DDOS (0 references)
num target prot opt source destination
报错具体如下:
[root@Centos ~]# yum install mtr* -y
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mtr.x86_64 2:0.75-5.el6 will be installed
---> Package mtr-gtk.x86_64 2:0.75-5.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================================
Package Arch Version Repository Size
=========================================================================================================
Installing:
mtr x86_64 2:0.75-5.el6 base 54 k
mtr-gtk x86_64 2:0.75-5.el6 base 46 k
Transaction Summary
=========================================================================================================
Install 2 Package(s)
Total size: 100 k
Total download size: 54 k
Installed size: 187 k
Downloading Packages:
h t t p : / / mirrors .163 .com /centos /6 /os /x86_64/Packages/mtr-0.75-5.el6.x86_64.rpm: [Errno 12] Timeout on http : / / mirrors .163 .com /centos /6/os/x86_64/Packages/mtr-0.75-5.el6.x86_64.rpm: (28, 'connect() timed out!')
Trying other mirror.
Error Downloading Packages:
2:mtr-0.75-5.el6.x86_64: failure: Packages/mtr-0.75-5.el6.x86_64.rpm from base: [Errno 256] No more mirrors to try.
|
|