Windows ports used

62 views
Skip to first unread message

Ramakrishnan M

unread,
Nov 22, 2019, 6:31:02 PM11/22/19
to Ansible Project
hey,

Does the ansible port requirement for Windows change from 5985/5986 to corresponding ntml/kerberos depending on ansible_winrm_transport selection of ntlm/kerberos/credssp etc.

Thanks in advance


Jordan Borean

unread,
Nov 22, 2019, 7:06:23 PM11/22/19
to Ansible Project
No, port 5985 is the default port for http and 5986 is for https. The auth selection does not change this, and your Windows host could be configured with another port instead so you will have to check your configuration with ‘winrm e winrm/config/listener’.

Ramakrishnan M

unread,
Nov 22, 2019, 7:12:02 PM11/22/19
to ansible...@googlegroups.com
Are you saying none of the standard kerberos ports 88,389,445, 3268 etc are required for ansible to use kerberos as ansible_winrm_transport, if we configure either 5985/5986 as default.

Thanks in advance

On Fri, Nov 22, 2019 at 6:06 PM Jordan Borean <jbor...@gmail.com> wrote:
No, port 5985 is the default port for http and 5986 is for https. The auth selection does not change this, and your Windows host could be configured with another port instead so you will have to check your configuration with ‘winrm e winrm/config/listener’.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b0b4ec97-52c5-4138-997e-5b49930e09ea%40googlegroups.com.

Jordan Borean

unread,
Nov 22, 2019, 7:47:29 PM11/22/19
to Ansible Project
You will still need Kerberos to talk to the domain controller in whatever fashion it uses but the traffic between the Ansible controller and the Windows host will only need the WinRM port.

Jordan Borean

unread,
Nov 22, 2019, 8:18:47 PM11/22/19
to Ansible Project
In regards to the ports you have stated

* 88 - I believe this is what the Kerberos TGS process uses, the traffic will be between the Ansible controller and the domain controller not the Windows host.
* 389 - This is the standard LDAP port, LDAP can use Kerberos auth like WinRM but Ansible does not use this to talk to Windows hosts
* 445 - This is the standard SMB port, like LDAP and WinRM this is a separate protocol to Kerberos and not used by Ansible to talk to Windows host
* 3268 - I believe this is another LDAP port so same thing applies

You may be using other modules in Ansible that use some of the ports above but for the WinRM connection plugin it only requires port 5985/5986 if using the default configuration to talk to your Windows host.

Reply all
Reply to author
Forward
0 new messages