IPverse IP address block lists – PR-China IPv4

http://ipverse.net/ipblocks/data/countries/cn.zone Rohliste öffnen
5.513Einträge
+0 -0letzte Änderung
zuletzt aktualisiert
83,8 KBGröße
vor 2 Minutenzuletzt geprüft

Beschreibung

Filterliste aus dem öffentlichen FilterLists-Verzeichnis. Format: CIDRs (IPv4). 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="http://ipverse.net/ipblocks/data/countries/cn.zone" 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="http://ipverse.net/ipblocks/data/countries/cn.zone" dst-path=blocklist.txt
:foreach line in=[/file get blocklist.txt contents] do={
  /ip firewall address-list add list=blocklist address=$line comment="IPverse IP address block lists – PR-China IPv4"
}

Use the list in the firewall

/ip firewall filter add chain=forward src-address-list=blocklist action=drop comment="IPverse IP address block lists – PR-China IPv4"
/ip firewall filter add chain=forward dst-address-list=blocklist action=drop comment="IPverse IP address block lists – PR-China IPv4"

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