Cloud Firewall too slow

Posted May 31, 2018 2.4k views
MySQLDigitalOcean Cloud Firewalls

Anyone else experiencing slowness when enabling cloud firewall even when using private network? I spawned up a MySQL instance droplet with another droplet running as a client. I added a tag to the DB and enabled the Cloud Firewall to that DB tag, client connections starts to intermittently timeout. I know the configuration is correct because after several retries it can pass through. Disabling the firewall (read: removing the tag) solves the lag.

Anyone experienced this? Anything that I might be missing? As a workaround, I used internal firewall UFW.

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

I was just experiencing this same issue with mysql + private networked droplets. It turns out the problem was that mysql by default is attempting to resolve the DNS of inbound connections, which will fail under active cloud firewalls because the TCP/UDP port for DNS queries is blocked (unless explicitly allowed).

To resolve this you can either:

  • Enable the TCP/UDP port 53 (DNS queries)


  • Disable name resolution with the following line in your mysql configuration by adding the following line: skip-name-resolve