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!
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.
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.
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