# How do I turn on IP Forwarding in BalenaOS?

**URL:** <https://forums.balena.io/t/how-do-i-turn-on-ip-forwarding-in-balenaos/116206>\
**Category:** balenaOS\
**Created:** [May 18, 2020, 7:13pm UTC](https://forums.balena.io/t/how-do-i-turn-on-ip-forwarding-in-balenaos/116206 "2020-05-18T19:13:20Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![richbayliss](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/richbayliss/32/1054_2.png) [@richbayliss](https://forums.balena.io/u/richbayliss)\
**Post date:** [May 20, 2020, 12:26pm UTC](https://forums.balena.io/t/how-do-i-turn-on-ip-forwarding-in-balenaos/116206/16 "2020-05-20T12:26:05Z")

</div>

Hey,

IP forwarding is enabled by default due to the way balenaEngine handles port mapping. It’s basically a NAT network into the docker bridge controlled by `iptables`. These rules are handled by balenaEngine as would be the case with Docker.

I am not sure I follow your use-case exactly, but regardless you can run a container in the host network with privileged enabled and you can manipulate the IPTables rules. Whilst IP forwarding is enabled, the rules have to allow the traffic in the first instance, so I would start there and see why the traffic is blocked.

---

_[View the full topic](https://forums.balena.io/t/how-do-i-turn-on-ip-forwarding-in-balenaos/116206)._
