Chinaunix

标题: iptables启用无法yum升级? [打印本页]

作者: inch    时间: 2006-02-13 17:15
标题: iptables启用无法yum升级?
我加了这些策略后yum 无法升级了 求助 要加什么策略才能使yum连接上升级服务器?\r\n\r\nChain INPUT (policy DROP)\r\ntarget     prot opt source               destination         \r\nACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http \r\nACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ssh \r\nACCEPT     tcp  --  anywhere             anywhere            tcp dpt:domain \r\nACCEPT     udp  --  anywhere             anywhere            udp dpt:domain        \r\nACCEPT     icmp --  anywhere             anywhere            \r\n\r\nChain FORWARD (policy DROP)\r\ntarget     prot opt source               destination         \r\nACCEPT     all  --  192.168.1.0/24       anywhere            \r\nACCEPT     all  --  anywhere             192.168.1.0/24      \r\n\r\nChain OUTPUT (policy ACCEPT)\r\ntarget     prot opt source               destination
作者: platinum    时间: 2006-02-13 17:19
for i in INPUT FORWARD;do iptables -A $i -m state --state RELATED,ESTABLISHED -j ACCEPT;done




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2