Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hello,
I’m trying top setup following droplet configuration
droplet1 - webserver, public access droplet2 - db server, no apache, no php, no public access
I have following iptables settings on my db server droplet:
sudo iptables -F
sudo iptables -A INPUT -i lo -j ACCEPT
sudo iptables -I INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
sudo iptables -A INPUT -p tcp -s [home_ip_address] -m tcp --dport 22 -j ACCEPT
sudo iptables -A INPUT -p tcp -s [droplet_1_private_IP] --sport 3306 -j ACCEPT
sudo iptables -A OUTPUT -p tcp -d [droplet_1_private_IP] --dport 3306 -j ACCEPT
sudo iptables -P OUTPUT ACCEPT
sudo iptables -P INPUT DROP
sudo iptables -P FORWARD DROP
When I try to connect from droplet1 with following command
mysql -h [droplet2_private_IP] -u [dbuser] -p
I confirm the password and nothing happens, connection freezes.
If I stop **iptables ** service on DB server everything is ok, but when iptables works I’m not allowed to connect to DB server.
What’s wrong with iptables on db server droplet?
Thank you in advance
hbarnard
keneucker
keneucker
rich
santoshpatil
Aspiresoftserv
Yakin
Thejaswini-Rao-U
775c69c916d345a7a367d867078ccb
mayricoak
ndam
bc2f52583874402a988f587c00195d