BSD PF Firewall Block All IPs Except A few IPS to MySQL Port
The syntax is:
block in on vr1 proto tcp from any to ! 184.108.40.206 port 3306
In the above example, block access for tcp port number 3306 for all except an IP address called 220.127.116.11 Sysadmin because even developers need heroes!!!
Share this tutorial on:
Examples and usage: MySQL/MariaDB Server: Bind To Multiple IP Address