# ansible and windows bastion server

**URL:** <https://forum.ansible.com/t/ansible-and-windows-bastion-server/33866>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [September 22, 2020, 3:06pm UTC](https://forum.ansible.com/t/ansible-and-windows-bastion-server/33866 "2020-09-22T15:06:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicolas\_stevenin](https://avatars.discourse-cdn.com/v4/letter/n/50afbb/32.png) [@nicolas\_stevenin](https://forum.ansible.com/u/nicolas_stevenin)\
**Post date:** [September 22, 2020, 3:06pm UTC](https://forum.ansible.com/t/ansible-and-windows-bastion-server/33866/1 "2020-09-22T15:06:54Z")

</div>

Hello !

Could you please help me how to use Ansible through a Windows Bastion Server? I found docs about Linux Bastion but for Windows it’s not clear.

I have a windows bastion server(1) that allows me to connect to other windows servers(2). and I want to manage those windows server(2).  
Is that possible and how to do it please ?

Thanks

---

<div class="post-metadata">

**Author:** ![Antony\_Stone](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Antony\_Stone](https://forum.ansible.com/u/Antony_Stone)\
**Post date:** [September 22, 2020, 3:19pm UTC](https://forum.ansible.com/t/ansible-and-windows-bastion-server/33866/2 "2020-09-22T15:19:41Z")

</div>

I think you need to give a clear description of what you mean by Bastion  
Server.

For me it is too general a term to be sure even what you believe the  
differences between a Linux one and a Windows one to be.

[https://en.wikipedia.org/wiki/Bastion\_host](https://en.wikipedia.org/wiki/Bastion_host)

Regards,

Antony.

---

<div class="post-metadata">

**Author:** ![nicolas\_stevenin](https://avatars.discourse-cdn.com/v4/letter/n/50afbb/32.png) [@nicolas\_stevenin](https://forum.ansible.com/u/nicolas_stevenin)\
**Post date:** [September 22, 2020, 3:31pm UTC](https://forum.ansible.com/t/ansible-and-windows-bastion-server/33866/3 "2020-09-22T15:31:45Z")

</div>

The description of AWS is exactly what i mean by “bastion server” : a server whose purpose is to provide access to a private network from an external network.

So i have a Ansible server in a “external network” and to manage my windows servers in the private network, I need to go through the bastion (which is a windows server)

---

<div class="post-metadata">

**Author:** ![Mauro\_Ferrigno](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@Mauro\_Ferrigno](https://forum.ansible.com/u/Mauro_Ferrigno)\
**Post date:** [September 22, 2020, 7:04pm UTC](https://forum.ansible.com/t/ansible-and-windows-bastion-server/33866/4 "2020-09-22T19:04:29Z")

</div>

Hello,  
If bastion host are using winrm I suppose you need to setup a proxy\_connection ( on bastion host) to forward requests to the windows hosts in the private network  
On bastion linux you can do this using nginx but I don’t know how to achive the same result on windows bastion
