Cloudflare IPv4-Bereiche

https://www.cloudflare.com/ips-v4 Rohliste öffnen
15Einträge
+0 -0letzte Änderung
zuletzt aktualisiert
230,0 BGröße
vor 1 Stundezuletzt geprüft

Beschreibung

Steht eine Website hinter Cloudflare, erreichen den eigenen Server nur noch Anfragen aus diesen Bereichen. Wer sie in der Firewall freigibt und alles andere abweist, verhindert, dass jemand den Schutz umgeht und den Ursprungsserver direkt anspricht. Ausserdem braucht der Webserver diese Liste, um die echte Besucheradresse aus dem weitergereichten Kopfeintrag zu übernehmen.

Integration

Address list per script

Fetch the list and import it into an address list called blocklist:

/tool fetch url="https://www.cloudflare.com/ips-v4" dst-path=blocklist.rsc
/import blocklist.rsc

If the list is a plain text file with one address or CIDR per line, convert it first:

/tool fetch url="https://www.cloudflare.com/ips-v4" dst-path=blocklist.txt
:foreach line in=[/file get blocklist.txt contents] do={
  /ip firewall address-list add list=blocklist address=$line comment="Cloudflare IPv4-Bereiche"
}

Use the list in the firewall

/ip firewall filter add chain=forward src-address-list=blocklist action=drop comment="Cloudflare IPv4-Bereiche"
/ip firewall filter add chain=forward dst-address-list=blocklist action=drop comment="Cloudflare IPv4-Bereiche"

Schedule the fetch with /system scheduler to keep the list current. Very large lists consume RAM, so check the available memory of your device first.

MikroTik RouterOS Dokumentation

Nach oben scrollen