# how to proxy to containers behind nat?

**URL:** <https://forum.ansible.com/t/how-to-proxy-to-containers-behind-nat/19973>\
**Category:** Ansible Project\
**Created:** [December 9, 2015, 10:23am UTC](https://forum.ansible.com/t/how-to-proxy-to-containers-behind-nat/19973 "2015-12-09T10:23:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixel\_fairy](https://avatars.discourse-cdn.com/v4/letter/p/6f9a4e/32.png) [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Post date:** [December 9, 2015, 10:23am UTC](https://forum.ansible.com/t/how-to-proxy-to-containers-behind-nat/19973/1 "2015-12-09T10:23:52Z")

</div>

ansible 1.9.4 from pip on os x.

make an lxc host with no other purpose. all the containers are behind nat, so cant directly ssh to them, but i can ssh to the physical host.

this works, ssh n.n.n.n -o “ProxyCommand ssh lxctest -W %h:%p”

and so does ssh n.n.n.n -F sshoptions, which `looks like this,`

`  
Host \*  
User root  
ProxyCommand ssh lxctest -W %h:%p

`

how do you get that into the inventory? i tried group\_vars/containers

`

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [December 9, 2015, 12:30pm UTC](https://forum.ansible.com/t/how-to-proxy-to-containers-behind-nat/19973/2 "2015-12-09T12:30:26Z")

</div>

ansible\_ssh\_common\_args was introduced for 2.0 and does not exist in 1.9.4.
