Назад | Перейти на главную страницу

Локальный адрес SAMBA netstat 0.0.0.0

Пытаюсь запустить samba AD DC, но я застрял. После создания домена я определил resolv.conf:

cat /etc/resolv.conf
nameserver 10.99.0.30
search example.com

Сервис запущен:

samba-ad-dc.service - Samba Active Directory Domain Controller
   Loaded: loaded (/etc/systemd/system/samba-ad-dc.service; enabled; vendor preset: disabled)
   Active: active (running)

Запросы записей DNS кажутся прекрасными:

$ host -t SRV _ldap._tcp.example.com.
_ldap._tcp.random.example.com has SRV record 0 100 389 random.example.com.

$ host -t SRV _kerberos._udp.example.com.
_kerberos._udp.random.example.com has SRV record 0 100 88 random.example.com.

$ host -t A random.example.com.
dc1.random.example.com has address 10.99.0.30

Когда я делаю netstat:

netstat -tulpn | grep ":53"
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      34599/samba: task[d
tcp6       0      0 :::53                   :::*                    LISTEN      34599/samba: task[d
udp        0      0 0.0.0.0:53              0.0.0.0:*                           34599/samba: task[d
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           745/avahi-daemon: r
udp6       0      0 :::53                   :::*                                34599/samba: task[d
udp6       0      0 :::5353                 :::*                                745/avahi-daemon: r

Должен быть локальный адрес в netstat точный IP-адрес DNS (локальный) 10.99.0.30, например 10.99.0.30:53?

Когда я попытался присоединиться к AD с хоста WINDOWS, я получил:

- The query was for the SRV record for _ldap._tcp.dc._msdcs.example.com
- The following domain controllers were identified by the query:
  (no Active Directory Domain Controllers found)
- Host (A) or (AAAA) records that map the names of the domain controllers to 
  their IP addresses are missing or contain incorrect addresses.
- Domain controllers registered in DNS are not connected to the network or are not running.

Я даже не смог восстановить example.com по пингу.

Локальный адрес Netstat был в порядке, его можно разрешить даже с 0.0.0.0:53 (прослушивать любой IPv4-адрес на этом сервере) источник

Я решил проблему, настроив брандмауэр в соответствии с этим страница раздел «Настройка межсетевого экрана». Вам необходимо добавить в свою зону сервис samba-dc. Вы можете указать, какие порты будете открывать, а затем сделать их постоянными:

firewall-cmd --info-service samba-dc
firewall-cmd --permanent --add-service=samba-dc

Перезагрузите брандмауэр:

firewall-cmd --reload

Проверяем (ищем samba-dc):

firewall-cmd --list-services

PS: Я думал, что это проблема с брандмауэром, но в Самба инструкция по установке ничего не говорит о настройке межсетевого экрана.