I want to add Ubuntu iptables entries so only the following can access MySQL server on my droplet:
- my Rails app on that same droplet should be able to get, post, update, delete, etc data on MySQL on that same droplet
- I should be able to SSH to my droplet and use MySQL.
What iptables entries will make these secure restrictions possible?
Thanks in advance!
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.