MySQL Server: Iptables negate a range in Iptables

by on December 6, 2012 · 0 comments· LAST UPDATED December 6, 2012

Fig.01: MySQL Server: Iptables negate a range in Iptables

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.

TwitterFacebookGoogle+Found an error/typo on this page? Help us!

Examples and usage: MySQL Server: Bind To Multiple IP Address

{ 0 comments… add one now }

Leave a Comment

Tagged as: