BSD PF Firewall Block All IPs Except A few IPS to MySQL Port

by on December 6, 2012· last updated at December 6, 2012

Fig.02: 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  ! 1.2.3.4 port 3306

In the above example, block access for tcp port number 3306 for all except an IP address called 1.2.3.4

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.