https://github.com/ryolee/routes
Route tools & configurations
https://github.com/ryolee/routes
bird cloudflare-workers routes workflow
Last synced: about 1 year ago
JSON representation
Route tools & configurations
- Host: GitHub
- URL: https://github.com/ryolee/routes
- Owner: RyoLee
- License: gpl-3.0
- Created: 2022-04-03T07:07:33.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2025-04-09T17:03:18.000Z (about 1 year ago)
- Last Synced: 2025-04-09T17:23:41.456Z (about 1 year ago)
- Topics: bird, cloudflare-workers, routes, workflow
- Language: Python
- Homepage:
- Size: 4.85 MB
- Stars: 23
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Route tools & configurations
## Non-cn-routes
Autorun [dndx/nchnroutes](https://github.com/dndx/nchnroutes) on github workflow
API powered by cloudflare workers
update configs by api like
```bash
0 2 * * * curl -s https://api.9-ch.com/ncr?device=tun0 -o /etc/bird/routes4.conf
0 2 * * * curl -s https://api.9-ch.com/ncr?mode=6&device=tun0 -o /etc/bird/routes6.conf
```
api params:
mode:
- 4 : ipv4(default)
- 6 : ipv6
device:
- eth0 : (default)
- [string] : device name
# CN-ASN
```
#./asn_cn.py -h
usage: asn_cn.py [-h] [-o ] [-s [{apnic,he,ipip} ...]] [-v]
Generate China ASN list for BIRD.
optional arguments:
-h, --help show this help message and exit
-o, --output write to file(default: asn_cn.conf)
-s, --source [{apnic,he,ipip} ...]
multiple sources can be used at the same time (default: apnic he ipip)
-v, --version show program's version number and exit
```