≡ 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

Sysadmin because even developers need heroes!!!

Share this tutorial on:

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

{ 0 comments… add one }
Security: Are you a robot or human?
You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">


   Tagged with: