Shub’s Whitelist

von DevShubam Allowlist IP / CIDR
https://raw.githubusercontent.com/DevShubam/Whitelist/master/whitelist.txt Rohliste öffnen
114Einträge
+0 -0letzte Änderung
zuletzt aktualisiert
4,0 KBGröße
vor 3 Stundenzuletzt geprüft

Beschreibung

Filterliste aus den Bereichen Allowlist. Format: IPs (IPv4). Betreut von DevShubam. Einzelheiten und Aufnahmekriterien stehen auf der Projektseite.

Integration

Address list per script

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

/tool fetch url="https://raw.githubusercontent.com/DevShubam/Whitelist/master/whitelist.txt" 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://raw.githubusercontent.com/DevShubam/Whitelist/master/whitelist.txt" dst-path=blocklist.txt
:foreach line in=[/file get blocklist.txt contents] do={
  /ip firewall address-list add list=blocklist address=$line comment="Shub’s Whitelist"
}

Use the list in the firewall

/ip firewall filter add chain=forward src-address-list=blocklist action=drop comment="Shub’s Whitelist"
/ip firewall filter add chain=forward dst-address-list=blocklist action=drop comment="Shub’s Whitelist"

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