I am running Ubuntu server 16.04. I've added these iptables rules:
Code:
iptables -A INPUT -i eth0 -s 10.1.1.0/24 -p udp --dport 137:138 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -o eth0 -d 10.1.1.0/24 -p udp --sport 137:138 -m state --state ESTABLISHED -j ACCEPT
iptables -A INPUT -i eth0 -s 10.1.1.0/24 -p tcp --dport 139 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -o eth0 -d 10.1.1.0/24 -p tcp --sport 139 -m state --state ESTABLISHED -j ACCEPT
The services, smbd.service and nmbd.service are running.
Running this on my samba server:
Code:
smbclient -L //10.1.1.5/share -U bob
Returns
Code:
Connection to 10.1.1.5 failed (Error NT_STATUS_IO_TIMEOUT)
nmap only returns 139 open.
Edit:
I notice in the log file these errors:
Code:
Packet send failed to 10.1.1.255(138) ERRNO=Operation not permitted[2018/08/25 09:10:44.639080, 0] ../source3/libsmb/nmblib.c:873(send_udp)
Packet send failed to 10.1.1.255(137) ERRNO=Operation not permitted
[2018/08/25 09:10:44.639155, 0] ../source3/nmbd/nmbd_packets.c:179(send_netbios_packet)
send_netbios_packet: send_packet() to IP 10.1.1.255 port 137 failed
Bookmarks