Hi all -
This question is regarding outbound firewall for a droplet. Here is droplet configuration:
When trying to open the connection to mySQL DB, get the following error in the logs:
Error: connect ETIMEDOUT
at PoolConnection._handleTimeoutError (/var/www/html/node_modules/mysql2/lib/connection.js:189:17)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7) {
errorno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
syscall: 'connect',
fatal: true
}
In DO networking firewalls, if we add UDP ports to outbound rules, then the connection establishes successfully.
Just wondering if there is any explanation to this behavior, i.e. why the need to add UDP for outbound ports as mySQL operates over a TCP port normally.
Any thoughts would be appreciated.
Thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
I’ve just tried replicating this but wasn’t able to:
If you try to run telnet your_rds_instance 3306 do you get a successful connection?
Best,
Bobby
I am using ssh tunnels for MySql access on DO
I am using a daemon in /etc/systemd/system with this executable: /usr/bin/autossh -o “AddressFamily inet” -o “ServerAliveInterval 10” -o “ServerAliveCountMax 3” -N -L ‘3306:localhost:3306’ -p <mysqlsshport> <mysqlhost>
Autossh has one job, to restart the ssh connection if it fails.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.