bird clash.meta nchnroutes Compatible with RouterOS container
423
Alpine Linux: v3.19.0, Mihomo (Clash.Meta): v1.18, Bird: v2.13.1, Nchnroutes: v1.0
/container/print
/container/shell <ID number: 0>
vi /etc/clash/config.yaml
vi /etc/bird/bird.conf
......
log stderr all;
router id <Clash container's IP: 10.10.10.2>;
protocol device {
......
cd /opt/nchnroutes/
vi produce.py
make -C /opt/nchnroutes
# Change wg0 to utun
......
parser.add_argument('--next', default="utun", metavar = "INTERFACE OR IP",
......
RESERVED = [
......
# VPS/ESC IP
IPv4Network('x.x.x.x’),
]
RESERVED_V6 = [
......
# VPS/ESC IP
IPv6Network('xxxx:xxxx::'),
]
crontab -e
0 0 * * 0 make -C /opt/nchnroutes
# IPv4
/routing ospf instance add name=default-v2 version=2 router-id=<Typical Gateway IP: 10.10.10.1> routing-table=main
/routing ospf area add instance=default-v2 name=backbone-v2
/routing ospf interface-template add area=backbone-v2 interfaces=bridge type=ptp instance-id=0 cost=10 priority=128
# IPv6
/routing ospf instance add name=default-v3 version=3 router-id=<Typical Gateway IP: 10.10.10.1> routing-table=main
/routing ospf area add instance=default-v3 name=backbone-v3
/routing ospf interface-template add area=backbone-v3 interfaces=bridge type=ptp instance-id=0 cost=10 priority=128
Content type
Image
Digest
sha256:e5f72299b…
Size
44.4 MB
Last updated
over 2 years ago
docker pull duqn/clash