≡ Menu

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

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

Tweet itFacebook itGoogle+ itFound an error/typo on this page?

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

{ 0 comments… add one }

Leave a Comment