Skip to main content
Question

PF Firewall blocking 5900?

  • May 17, 2016
  • 1 reply
  • 15 views

Forum|alt.badge.img+20

Whats the best way to block VNC via PF?

1 reply

Forum|alt.badge.img+15
  • Contributor
  • May 17, 2016

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.