Skip to content

Commit 34b9322

Browse files
committed
bird-lg
1 parent 5ff6b19 commit 34b9322

File tree

6 files changed

+103
-0
lines changed

6 files changed

+103
-0
lines changed

bird-lg/bird-lg.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
servers: "server1,server2"
2+
domain: "lg.local"
3+
listen: "0.0.0.0:5000"
4+
proxy_port: 8000
5+
whois: "/usr/bin/whois"
6+
dns_interface: "asn.cymru.com"
7+
bgpmap_info: "asn,as-name,ASName,descr"
8+
title_brand: "Bird-lg Go"
9+
navbar_brand: "Bird-lg Go"
10+
navbar_brand_url: "/"
11+
navbar_all_servers: "总览"
12+
navbar_all_url: "all"
13+
net_specific_mode: ""
14+
protocol_filter: ""
15+
name_filter: ""
16+
timeout: 120

bird-lg/bird-lgproxy.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
allowed_ips: ""
2+
bird_socket: "/var/run/bird.ctl"
3+
listen: "0.0.0.0:8000"
4+
traceroute_bin: "/usr/sbin/mtr"
5+
traceroute_flags: "-w -c1 -Z1 -G1 -b"
6+
traceroute_raw: false

bird-lg/init.d/bird-lg

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh /etc/rc.common
2+
3+
USE_PROCD=1
4+
START=99
5+
STOP=10
6+
7+
start_service() {
8+
procd_open_instance
9+
procd_set_param command /usr/sbin/bird-lg-go
10+
procd_set_param stdout 1
11+
procd_set_param stderr 1
12+
procd_set_param respawn
13+
procd_close_instance
14+
}

bird-lg/init.d/bird-lgproxy

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh /etc/rc.common
2+
3+
USE_PROCD=1
4+
START=99
5+
STOP=10
6+
7+
start_service() {
8+
procd_open_instance
9+
procd_set_param command /usr/sbin/bird-lgproxy-go
10+
procd_set_param stdout 1
11+
procd_set_param stderr 1
12+
procd_set_param respawn
13+
procd_close_instance
14+
}

bird-lg/install.example.sh

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
3+
mkdir -p /tmp/tmp
4+
cd /tmp/tmp
5+
6+
wget https://github.com/xddxdd/bird-lg-go/releases/download/v1.3.8/bird-lg-go-v1.3.8-linux-arm64.tar.gz -O bird-lg-go.tar.gz
7+
wget https://github.com/xddxdd/bird-lg-go/releases/download/v1.3.8/bird-lgproxy-go-v1.3.8-linux-arm64.tar.gz -O bird-lgproxy-go.tar.gz
8+
9+
tar -xzf bird-lg-go.tar.gz
10+
tar -xzf bird-lgproxy-go.tar.gz
11+
12+
mv bird-lg-go /usr/sbin/
13+
mv bird-lgproxy-go /usr/sbin/
14+
15+
rm -rf /tmp/tmp/*
16+
17+
wget https://github.com/dn-11/scripts/raw/refs/heads/master/bird-lg/init.d/bird-lg -O /etc/init.d/bird-lg
18+
wget https://github.com/dn-11/scripts/raw/refs/heads/master/bird-lg/init.d/bird-lgproxy -O /etc/init.d/bird-lgproxy
19+
20+
chmod +x /etc/init.d/bird-lg
21+
chmod +x /etc/init.d/bird-lgproxy
22+
23+
/etc/init.d/bird-lg enable
24+
/etc/init.d/bird-lgproxy enable
25+
26+
mkdir -p /etc/bird-lg
27+
28+
wget https://github.com/dn-11/scripts/raw/refs/heads/master/bird-lg/bird-lg.yaml -O /etc/bird-lg/bird-lg.yaml
29+
wget https://github.com/dn-11/scripts/raw/refs/heads/master/bird-lg/bird-lgproxy.yaml -O /etc/bird-lg/bird-lgproxy.yaml
30+
31+
echo "Please edit /etc/bird-lg/bird-lg.yaml and /etc/bird-lg/bird-lgproxy.yaml to configure bird-lg and bird-lgproxy"
32+
33+
exit 0

bird-lg/update.example.sh

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
mkdir -p /tmp/tmp
4+
cd /tmp/tmp
5+
6+
wget https://github.com/xddxdd/bird-lg-go/releases/download/v1.3.8/bird-lg-go-v1.3.8-linux-arm64.tar.gz -O bird-lg-go.tar.gz
7+
wget https://github.com/xddxdd/bird-lg-go/releases/download/v1.3.8/bird-lgproxy-go-v1.3.8-linux-arm64.tar.gz -O bird-lgproxy-go.tar.gz
8+
9+
tar -xzf bird-lg-go.tar.gz
10+
tar -xzf bird-lgproxy-go.tar.gz
11+
12+
mv bird-lg-go /usr/sbin/
13+
mv bird-lgproxy-go /usr/sbin/
14+
15+
rm -rf /tmp/tmp/*
16+
17+
/etc/init.d/bird-lg restart
18+
/etc/init.d/bird-lgproxy restart
19+
20+
exit 0

0 commit comments

Comments
 (0)