# Docker breaking Wireguard external connectivity

**URL:** https://dietpi.com/forum/t/docker-breaking-wireguard-external-connectivity/4460
**Category:** Troubleshooting
**Created:** [12 September 2020 19:51 UTC](https://dietpi.com/forum/t/docker-breaking-wireguard-external-connectivity/4460 "2020-09-12T19:51:48Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [13 September 2020 11:14 UTC](https://dietpi.com/forum/t/docker-breaking-wireguard-external-connectivity/4460/2 "2020-09-13T11:14:59Z")

</div>

Hi,

many thanks for your message. I found this old entry on our board [https://dietpi.com/forum/t/docker-installation-break-wireguard-connection/3332/1](https://dietpi.com/forum/t/docker-installation-break-wireguard-connection/3332/1)

It looks similar to what you described.

Basically following should fix it during run. Unfortunately it doesn’t seems to be be boot persistent or it get’s overwritten by docker all the time?

```nohighlight
iptables --policy FORWARD ACCEPT

```

**EDIT1:**  
Found this on docker docs [https://docs.docker.com/network/iptables/#docker-on-a-router](https://docs.docker.com/network/iptables/#docker-on-a-router)

not sure what is best way to add the ACCEPT rule to the DOCKER-USER chain. But following was working on my test

```nohighlight
iptables -I DOCKER-USER -i eth0 -o wg0 -j ACCEPT
apt install iptables-persistent
reboot

```

Maybe there is a better option. Need to say, I’m not a Docker specialist.

---

_[View the full topic](https://dietpi.com/forum/t/docker-breaking-wireguard-external-connectivity/4460)._
