[Samba] Failed to connect host xx on port 135 - NT_STATUS_CONNECTION_REFUSED

osdc at mailbox.org osdc at mailbox.org
Tue Mar 28 15:40:35 UTC 2017



> 
> Hello Rowland,
> 
> >> ---
> >> # Global parameters
> >> [global]
> >>
> >>         username map = /etc/samba/user.map
> >>
> >
> > I am sure this has nothing to do with your problem, but you should
> > remove the 'username map' line, it has no place on a DC.
> >
> 
> ok, did so.
> 
> 
> >>
> >> It really does not listen:
> >>
> >> root at dc2:~# netstat -tulpan | grep "LISTEN" | grep "135" | wc -l
> >> 0
> >>
> >> Why does Samba not listen on port 135 anymore? How can I teach it to
> >> start doing it again?
> >
> > It should be listening on port 135, is there a firewall in the way ?
> 
> No:
> 
> root at dc2:~# iptables -L 
> Chain INPUT (policy ACCEPT)
> target     prot opt source               destination         
> 
> Chain FORWARD (policy ACCEPT)
> target     prot opt source               destination         
> 
> Chain OUTPUT (policy ACCEPT)
> target     prot opt source               destination   
> 
> 
> > What daemons are running ?
> 
> root at dc2:~# pstree
> systemd─┬─acpid
>         ├─agetty
>         ├─atd
>         ├─cron
>         ├─dbus-daemon
>         ├─exim4
>         ├─named───4*[{named}]
>         ├─ntpd
>         ├─rpc.idmapd
>         ├─rpc.statd
>         ├─rpcbind
>         ├─rsyslogd─┬─{in:imklog}
>         │          ├─{in:imuxsock}
>         │          └─{rs:main Q:Reg}
>         ├─samba───smbd───smbd
>         ├─samba───winbindd───winbindd
>         ├─sshd───sshd───sshd───bash───su───bash───pstree
>         ├─systemd-journal
>         ├─systemd-logind
>         └─systemd-udevd
> 
> 
> 
> > What is in /etc/resolv.conf 
> 
> root at dc2:~# cat /etc/resolv.conf 
> domain museum.rubens.world
> nameserver 192.168.0.241
> nameserver 192.168.0.242
> 
> 
> > /etc/hosts /etc/krb5.conf ?
> 
> root at dc2:~# cat /etc/hosts
> 127.0.0.1	localhost
> 192.168.0.241	dc1.museum.rubens.world	dc1
> 192.168.0.243	samba-fs.museum.rubens.world	samba-fs
> 
> 
> # The following lines are desirable for IPv6 capable hosts
> ::1     localhost ip6-localhost ip6-loopback
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
> 

Forgot:

root at dc2:~# cat /etc/krb5.conf 
[libdefaults]
	default_realm = MUSEUM.RUBENS.WORLD
	dns_lookup_realm = false
	dns_lookup_kdc = true



> --
> 
> Thank you for your quick reply.
> 
> martin
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba



More information about the samba mailing list