Skip to content

dvershinin/trusted-lists

Repository files navigation

trusted-lists

IP sets for external services typically whitelisted on a web server (payment providers, etc.) Consumable by FirewallD/fds/NGINX (planned). Delivered as noarch RPM packages for easy updating on CentOS/RHEL-like systems.

Usage

Example. Trusting PayPal Webhook IP addresses

Install the PayPal IP set:

dnf -y install https://extras.getpagespeed.com/release-latest.rpm
dnf -y install firewalld-ipset-paypal

Now, FirewallD knows about the new IP set named paypal. It will appear in the list of known IP sets provided by firewall-cmd --get-ipsets output.

Trust it like so:

firewall-cmd --permanent --zone=trusted --add-source=ipset:paypal
firewall-cmd --reload

You can set the respective package firewalld-ipset-paypal to automatically update via dnf in order to ensure trust of updated PayPal IP addresses.

Available IP set packages

  • firewalld-ipset-twitter
  • firewalld-ipset-stripe - Stripe Webhooks
  • firewalld-ipset-paypal - PayPal IPN
  • firewalld-ipset-metabase
  • firewalld-ipset-cloudflare-v6
  • firewalld-ipset-cloudflare-v4
  • firewalld-ipset-circleci
  • firewalld-ipset-braintree

Package naming

  • firewalld-ipset-<name> for FirewallD IP sets
  • (Planned) nginx-whitelist-<name> for NGINX conf file with allow directives

TODO

Future

This project is to be complemented by another, e.g. server-lists. The idea is that you reduce bot traffic by blocking all remote servers in server-lists project, while whitelisting the ones from trusted-lists.

About

IP sets for external services typically whitelisted on a web server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published