User Tools

Site Tools


pfsense:pfblockerng:install_pfblockerng:setup_ip_blocking

PFSense - pfBlockerNG - Install pfBlockerNG - Setup IP Blocking

IP Configuration

Navigate to Firewall → pfBlockerNG → IP.

In IP Configuration:

  • De-Duplication: Checked
  • CIDR Aggregation: Not checked
  • Suppression: Checked
  • Force Global IP Logging: Not checked
  • Placeholder IP Address: 127.1.7.7
  • ASN Reporting: Disabled


MaxMind GeoIP configuration

Navigate to Firewall → pfBlockerNG → IP.

In MaxMind GeoIP configuration:

  • MaxMind License Key: Enter the MaxMind License Key. If you don't have a key, register for one on the Maxmind Site.
  • MaxMind Localized Language: English.
  • MaxMind CSV Updates: Not Checked.


IP Interface/Rules Configuration

Navigate to Firewall → pfBlockerNG → IP.

In IP Interface/Rules Configuration:

  • Inbound Firewall Rules: WAN and Block.
  • Outbound Firewall Rules: LAN and Reject.
    • If you have more than one internal interfaces, press CTRL or CMD (for Mac users) and click on each interface to be included.
  • Floating Rules: Checked.
  • Firewall 'Auto' Rule Order: Select the top option.
  • Firewall 'Auto' Rule Suffix: auto rule.
  • Kill States: Checked.

Scroll to the bottom of the page and click the Save button.

NOTE: Floating rules are used here, as they keep all the pfBlockerNG rules in one place.

Otherwise each interface will have a copy of these rules and therefore harder to maintain.


Setup Custom IP Lists

IPv4

Navigate to Firewall → pfBlockerNG → IP → IPv4.

  • Click the Add button.
  • Give it a Name and Description.

Add in as many IP Source Definitions as needed.

Set:

  • Type: Auto.
  • State: On.

See pfBlockerNG IP Lists - IPv4


In Settings:

  • State: ON.
  • Action: Deny Both.
  • Update Frequency: Once per day.


IPv6

Navigate to Firewall → pfBlockerNG → IP → IPv6.

  • Click the Add button.
  • Give it a Name and Description.

Add in as many IP Source Definitions as needed.

Set:

  • Type: Auto.
  • State: On.

See pfBlockerNG IP Lists - IPv6


In Settings:

  • State: ON.
  • Action: Deny Both.
  • Update Frequency: Once per day.

GeoIP

Navigate to Firewall → pfBlockerNG → IP → GeoIP.

NOTE: GeoIP is not used.

All Actions are Disabled.

Reason is that many services, such as AWS, utilize services in other countries, so if a country is blocked this may result in impacting legitimate sites,


Reputation


Return to Install pfBlockerNG or continue to Setup DNSBL Blocking.


pfsense/pfblockerng/install_pfblockerng/setup_ip_blocking.txt · Last modified: 2021/01/28 14:42 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki