大陆IP地址块转换成RouterOS脚本
Go to file
Yezzi Hsueh ea9ab77439
All checks were successful
Create Scripts / Build (push) Successful in 2m8s
feat: update addtional cidrs
2024-08-05 13:46:19 +08:00
.gitea/workflows docs: add readme 2024-02-27 23:31:17 +08:00
src feat: addtional cidrs 2024-02-22 21:55:45 +08:00
.gitignore Initial commit 2023-11-08 23:38:57 +08:00
additional.txt feat: update addtional cidrs 2024-08-05 13:46:19 +08:00
Cargo.lock feat: add Cargo.lock 2023-11-09 18:37:25 +08:00
Cargo.toml deps: upgrade dependencies 2023-11-09 00:06:57 +08:00
LICENSE chore: add LICENSE 2023-11-09 00:06:29 +08:00
README.md docs: add readme 2024-02-27 23:31:17 +08:00

Mikrotik Router Switch

For policy routing at china and foreign countries with Mikrotik RouterOS.

Quick Start

Flush address list.

:foreach i in=[/ip firewall mangle find comment=\"breakwall\"] do={ /ip firewall mangle disable $i }
:foreach i in=[ find list=$address_list ] do={ remove number=$i }

Upload chn_list.rsc script to your router, then run import command.

/import chn_list.rsc

If there have any firewall rules that depends on the address list 'chn_list', for example mangle rules, disable mangle rules before flush, and enable it after import.