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

  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 to any

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