호스트 이름을 통해 Windows 7 Samba 공유를 ping하거나 액세스 할 수 없습니다.
(특히)에서 권장하는 것처럼 일부 컴퓨터의 호스트 이름으로 핑할 수 없습니다./etc/nsswitch.conf
다음을 포함하도록 편집 했습니다.
hosts: files mdns4_minimal [NOTFOUND=return] wins dns mdns4
또한 제안 된대로 서비스를 다시 시작했지만 이동하지 않았습니다.
내 Windows 7 컴퓨터에 ping을 시도 할 때 출력은 다음과 같습니다.
ping: <hostname>: Name or service not known
Ubuntu에서 Windows 호스트 이름을 해결하는 가장 좋은 방법에 대한 조언을 주시면 감사하겠습니다. 미리 감사드립니다!
방화벽 문제로 판명되었습니다.
https://fitzcarraldoblog.wordpress.com/2017/08/11/prevent-linux-firewalls-interfering-with-samba-commands-in-a-home-network-that-uses-broadcast-netbios- 에서 제안 된 솔루션 이름 확인 /
iptables -t raw -A OUTPUT -p udp -m udp --dport 137 -j CT --helper netbios-ns
/etc/ufw/before.rules
# The following is needed to enable Samba commands to
# work properly for broadcast NetBIOS name resolution
#
# raw table rules
*raw
:OUTPUT ACCEPT [0:0]
-F OUTPUT
-A OUTPUT -p udp -m udp --dport 137 -j CT --helper netbios-ns
COMMIT
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다