当我尝试使用yum info或yum install连接到yum repos时,我得到以下错误: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>我首先想到我们的防火墙可能是责怪,但traceroute -T -p 80 dl.fedoraproject.org成功完成,但wget http://dl.fedoraproject.org/pub/epel/5/i386/repodata/repomd.xml失败,连接被拒绝。 我在这里有点困惑。 什么可以解释这种行为? 这是一个我没有设置和很less访问的RHEL 5盒子。 DNSparsing正常,路由表中没有静态路由,服务器上没有可以看到的代理。
traceroute -T不会做你认为它所做的事情。 它使用TCP SYN数据包来探测设备的存在。 这意味着它取得了某种回应。 有可能它得到了回应:连接被拒绝。
这是精细的手册:
This method uses well-known "half-open technique", which prevents applications on the destination host from seeing our probes at all. Normally, a tcp syn is sent. For non-listened ports we receive tcp reset, and all is done. For active listening ports we receive tcp syn+ack, but answer by tcp reset (instead of expected tcp ack), this way the remote tcp session is dropped even without the application ever taking notice.