docs: add readme

This commit is contained in:
椰子 2024-02-27 23:31:17 +08:00
parent f006223839
commit d1fa30924a
2 changed files with 24 additions and 1 deletions

View File

@ -1,6 +1,8 @@
name: Create Scripts name: Create Scripts
on: on:
push: push:
paths-ignore:
- "**.md"
schedule: schedule:
- cron: 0 5 * * * - cron: 0 5 * * *
jobs: jobs:

21
README.md Normal file
View File

@ -0,0 +1,21 @@
# 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.