系統平台:CentOS 5.2
套件版本:samba-3.0.28-1.el5_2.1
錯誤訊息:
lib/util_sock.c:get_peer_addr(1224) getpeername failed. Error was Transport endpoint is not connected
Windows XP Client 會透過 139 or 445 這兩個 port 來連接 Server ,爲了避開這個錯誤,透過強制設定連線 139 port來解決
解決方法:
1.
#vim /etc/samba/smb.conf
加入smb ports = 139
2.iptables -A INPUT -p TCP --dport 445 -j DROP
from:http://learn.bles.tp.edu.tw/moodle/mod/resource/view.php?id=742
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
操作系统:redhat linux
操作系统报错:lib/util_sock.c:get_peer_addr(1224) getpeername failed. Error was Transport endpoint is not connected
系统环境:
windows 2000 服务器A从两台linux服务器B和C通过linux samba取数据。
解决办法:
#vim /etc/samba/smb.conf
加入smb ports = 139
2.iptables -A INPUT -p TCP --dport 445 -j DROP
本文介绍了在使用Samba服务时遇到的“Transport endpoint is not connected”错误,并提供了两种解决方案:一是通过修改smb.conf文件强制指定连接端口为139;二是通过iptables规则阻止445端口的连接请求。

被折叠的 条评论
为什么被折叠?



