≡ Menu

MySQL Server: Iptables negate a range in Iptables

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.

Share this tutorial on:

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

{ 0 comments… add one }

Leave a Comment


   Tagged with: