
Não consigo me conectar ao meu servidor samba executando o CentOS 6.4 (instalação mínima) que énãolocalizado na minha rede.
Quando tento conectar-me ao meu cliente Windows 7, a conexão falha e recebo a caixa de diálogo padrão "incapaz de acessar".
O que eu tentei até agora:
- Portas abertas 137, 138, 139, 445 no meu servidor samba
- Verificado se as portas estão abertas usando nmap (no servidor samba)
- Tentei fazer telnet nas portas mencionadas acima do meu cliente, mas a conexão também falhou
- Reinstalei o samba e reconfigurei o serviço
- desativou o SELinux temporariamente
tabelas de ip
# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:https
ACCEPT udp -- anywhere anywhere state NEW udp dpt:netbios-ns
ACCEPT udp -- anywhere anywhere state NEW udp dpt:netbios-dgm
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:netbios-ssn
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:microsoft-ds
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
nmap
#nmap -sTU -O localhost
Starting Nmap 5.51 ( http://nmap.org ) at 2014-05-16 17:29 CEST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000042s latency).
Other addresses for localhost (not scanned): 127.0.0.1
Not shown: 1994 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
80/tcp open http
139/tcp open netbios-ssn
445/tcp open microsoft-ds
68/udp open|filtered dhcpc
Versão Samba
#smbd --version
Version 3.6.9-168.el6_5
o grupo de trabalho está configurado corretamente no smb.conf, o nmb está em execução.
Responder1
A maioria dos ISPs filtra as portas netbios. Se você nmap do seu cliente Windows, provavelmente verá que a porta está listada filtered
porque seu ISP a está bloqueando.
Tente configurar um protocolo de encapsulamento como openvpn
e tente usar esta configuração.