- 論壇徽章:
- 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
復(fù)制代碼
機(jī)器是是雙網(wǎng)卡,一連內(nèi)網(wǎng)、一連外網(wǎng),做了NAT。從提示看應(yīng)該是DNS 的問(wèn)題,我 service iptables stop 以后是可以使用 yum 的。所以應(yīng)該是iptbales 的設(shè)置問(wèn)題。
- 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
復(fù)制代碼
這是相關(guān)的設(shè)置,有什么疏漏嗎?幫我分析一下,,,
[ 本帖最后由 IPphone 于 2007-10-9 16:05 編輯 ] |
|