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

by on December 6, 2012 · 0 comments· LAST UPDATED 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

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: