PF Firewall blocking 5900?

Matt
Valued Contributor

Whats the best way to block VNC via PF?

1 REPLY 1

thoule
Valued Contributor II

The tool is pfctl.

I think you can edit the configuration in /etc/pf.conf and add a line
block drop quick on ALL proto tcp from any to any port = 5900

pfctl -f /etc/pf.conf
should reload the config file. I'm no pf expert, but that should get you started.