The syntax is:
/sbin/iptables -A INPUT -p tcp --dport 3306 ! -d 1.2.3.4 -j DROP
In the above example, drop access to everyone to tcp port 3306 except to an IP address called 1.2.3.4. See iptables man page for more info.
Read answer to: "MySQL Server: Bind To Multiple IP Address"








Comments on this FAQ are closed. If you'd like to continue the discussion on this topic, you can do so at our forum.