Manage Firewall Rules di pfSense

pfSense adalah firewall dan router open source yang dapat membantu meminimalisir beberapa ancaman atau serangan dari luar serta fitur lain yang dapat dimanfaatkan seperti load balancing, multi WAN, dan lain-lain.

Panduan kali ini akan membahas cara mengelola firewall rules di pfSense melalui CLI dengan perintah pfctl

Cek Tracking ID

pfctl -s rules -vv | grep -i 1000000351

List rule firewall webConfiguratorlockout

pfctl -t webConfiguratorlockout -T show

Cek informasi global pada semua tables

pfctl -vvsTables

Add entry ke table webConfiguratorlockout

pfctl -t webConfiguratorlockout -T add 192.168.0.5

Delete entry dari table webConfiguratorlockout

pfctl -t webConfiguratorlockout -T delete 192.168.0.5

Hapus semua entry pada table webConfiguratorlockout

pfctl -t webConfiguratorlockout -T flush

Find ip address 132.145.9.5 pada table

pfctl -t IP_bad -T test 132.145.9.5