For UFW and Docker I use a program called UFW-Docker

To use it do the following:

  1. wget -O /usr/local/bin/ufw-docker https://github.com/chaifeng/ufw-docker/raw/master/ufw-docker

  2. chmod +x /usr/local/bin/ufw-docker

  3. ufw-docker install


Allow tailscale VPN to all docker containers

This is based on the issue HERE

  1. ufw route allow from 100.64.0.0/10 to any

  2. You should now be good to accept anything from the tailscale network