3

When running a typical LAMP stack for a public website on EC2, what is the proper firewall setting for port 3306?

view full story
linux-howto

http://serverfault.com – I'm reviewing the security groups on my EC2 Ubuntu instance that runs a public website on LAMP. Presently my ports are as follows: 22 (SSH) 0.0.0.0/0 80 (HTTP) 0.0.0.0/0 443 (HTTPS) 0.0.0.0/0 3306 (MYSQL) 0.0.0.0/0 I'm thinking it should be possible to tighten up a bit on the mysql port as the connections are only made locally. Any insights are welcome. (HowTos)