Sign inSign up

duqn/bimi

By duqn

Updated over 2 years ago

bird mihomo(Clash.Meta)

Image
Networking
Developer tools
1

313

duqn/bimi repository overview

Software versions:
Alpine Linux: v3.19.0, Mihomo (Clash.Meta): v1.18, Bird: v2.13.1, Nchnroutes: v1.0
RouterOS container clash configuration

/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 {
......
Nchnroutes configuration

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
RouterOS OSPF configuration
# 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

Tag summary

Content type

Image

Digest

sha256:e36c1b71a

Size

43.4 MB

Last updated

over 2 years ago

docker pull duqn/bimi