Open mysql only to localhost and a particular address
- by Rodrigo Asensio
My config: ubuntu server 9 and msyql 5
my.cnf = bind-address = 0.0.0.0
my iptables script =
iptables -A INPUT -i eth0 -s 99.88.77.66 -p tcp --destination-port 3306 -j ACCEPT
I can connect from any place to mysql, not only that IP.
I made a iptables-save , /etc/init.d/netwokring restart... but I still can connect from any IP, any clue ?