Open mysql only to localhost and a particular address

Posted by Rodrigo Asensio on Server Fault See other posts from Server Fault or by Rodrigo Asensio
Published on 2010-01-22T15:49:18Z Indexed on 2010/04/10 14:23 UTC
Read the original article Hit count: 380

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 ?

© Server Fault or respective owner

Related posts about iptables

Related posts about linux