How are folks setting up iptables to get this to work. I don't want 3306 open to the world and limit it to my server and EOC.
Code:
-A INPUT -s 172.20.0.12/32 -p udp -m udp --dport 3306 -j ACCEPT
-A INPUT -s 172.20.0.12/32 -p tcp -m tcp --dport 3306 -j ACCEPT
-A OUTPUT -s 172.20.0.12/32 -p udp -m udp --dport 3306 -j ACCEPT
-A OUTPUT -s 172.20.0.12/32 -p tcp -m tcp --dport 3306 -j ACCEPT