- 论坛徽章:
- 0
|
- [root@firewall ~]# nslookup [url]www.sina.com.cn[/url]
- ;; connection timed out; no servers could be reached
- [root@firewall ~]# yum info gcc
- Loading "installonlyn" plugin
- Setting up repositories
- [url]http://mirrors.ta139.com/centos/5/os/i386/repodata/repomd.xml:[/url] [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
- Trying other mirror.
- Error: Cannot open/read repomd.xml file for repository: base
复制代码
机器是是双网卡,一连内网、一连外网,做了NAT。从提示看应该是DNS 的问题,我 service iptables stop 以后是可以使用 yum 的。所以应该是iptbales 的设置问题。
- iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
- iptables -P INPUT DROP
- iptables -A OUTPUT -p tcp -m state --state RELATED,ESTABLISHED -j ACCEPT
- iptables -A OUTPUT -o eth0 -p tcp --dport 80 -j ACCEPT
- iptables -A OUTPUT -p udp --dport 53 -j ACCEPT
- iptables -P OUTPUT DROP
复制代码
这是相关的设置,有什么疏漏吗?帮我分析一下,,,
[ 本帖最后由 IPphone 于 2007-10-9 16:05 编辑 ] |
|