# \#iptables

**URL:** https://forums.balena.io/tag/iptables/30.md

[Latest](https://forums.balena.io/latest.md) · [Categories](https://forums.balena.io/categories.md) · [Tags](https://forums.balena.io/tags.md)

---

## [Multicontainer setup and iptables](https://forums.balena.io/t/multicontainer-setup-and-iptables/367297)

<div class="topic-metadata">

**Author:** [@stephanp](https://forums.balena.io/u/stephanp)\
**Replies:** 2\
**Last updated:** [April 14, 2023, 11:19am UTC](https://forums.balena.io/t/multicontainer-setup-and-iptables/367297 "2023-04-14T11:19:31Z")

</div>

Hi, I would like to block incoming traffic from eth0, eth1 or wlan0 to my device (except port 80). I can’t achieve this via the docker-compose settings because some ports of a container should be exposed on the host but…

---

## [Port Forwarding from resin-vpn to eth0 for WinBox](https://forums.balena.io/t/port-forwarding-from-resin-vpn-to-eth0-for-winbox/67732)

<div class="topic-metadata">

**Author:** [@adolfaka](https://forums.balena.io/u/adolfaka)\
**Replies:** 7\
**Last updated:** [February 28, 2020, 10:43am UTC](https://forums.balena.io/t/port-forwarding-from-resin-vpn-to-eth0-for-winbox/67732 "2020-02-28T10:43:23Z")

</div>

Hi, I need to redirect public port 80 to internal 8291 to connect to Mikrotik via WinBox. How can this be done and is it possible? I ran the following commands on the host that did not help me: iptables -t nat -A PRER…

---

## [Is there a way to have iptables commands ran on boot/reboot so that they are persistent?](https://forums.balena.io/t/is-there-a-way-to-have-iptables-commands-ran-on-boot-reboot-so-that-they-are-persistent/3283)

<div class="topic-metadata">

**Author:** [@Cscnc](https://forums.balena.io/u/Cscnc)\
**Replies:** 0\
**Last updated:** [June 6, 2018, 5:07pm UTC](https://forums.balena.io/t/is-there-a-way-to-have-iptables-commands-ran-on-boot-reboot-so-that-they-are-persistent/3283 "2018-06-06T17:07:15Z")

</div>

Current Version: Resin OS 2.12.6+rev1 Current Supervisor Version: 7.4.3 Reading through this post: Executing commands on host User @izavits talks about a future “feature” called hostapps, where users can modify the Ho…

---

## [Force restart after env-var update](https://forums.balena.io/t/force-restart-after-env-var-update/1236)

<div class="topic-metadata">

**Author:** [@cmoss](https://forums.balena.io/u/cmoss)\
**Replies:** 1\
**Last updated:** [June 15, 2017, 12:55pm UTC](https://forums.balena.io/t/force-restart-after-env-var-update/1236 "2017-06-15T12:55:18Z")

</div>

Hi All, I wondered if there's any resin\_ config setting which would force the device to restart when an environment variable is updated? We have some env vars which control iptables behaviour, and the best way to ensu…
