Plesk

How to add dynamic IP to Fail2Ban whitelist?

Question

How to add dynamic IP to Fail2Ban whitelist?

Answer

The only way to add dynamic IP to Fail2Ban whitelist is to add the whole network if dynamic IP addresses are located inside one network. For that:

  1. Log into Plesk.
  2. Go to Tools & Settings > IP Address Banning (Fail2Ban) > Trsuted IP Addresses page.
  3. Press Add Trusted IP Address button.
  4. Put the whole network (e.g. 203.0.113.0/24.) in the IP address field and press OK button.

Note: 203.0.113.0/24 is an example of the network where dynamic IPs are located. Replace it with your own.

Exit mobile version