Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tun
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
tun
Commits
52fd75d2
Commit
52fd75d2
authored
Feb 25, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gfwlist in bird
parent
522c1dd7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
ansible/bird.conf.j2
ansible/bird.conf.j2
+35
-0
src/inventory.ts
src/inventory.ts
+1
-0
No files found.
ansible/bird.conf.j2
View file @
52fd75d2
...
...
@@ -46,6 +46,41 @@ protocol kernel {
{% endif %}
{% endfor %}
ipv4 table gfwiplist;
ipv4 table chnroute_reverse;
{% for net in gfwiplist %}
protocol static {
ipv4 {
table gfwiplist;
};
igp table master4;
route {{net}} recursive 10.199.0.12;
}
{% endfor %}
{% for net in chnroute_reverse %}
protocol static {
ipv4 {
table chnroute_reverse;
};
igp table master4;
route {{net}} recursive 10.199.0.12;
}
{% endfor %}
protocol kernel {
ipv4 {
table gfwiplist;
export all;
};
kernel table 401;
}
protocol kernel {
ipv4 {
table chnroute_reverse;
export all;
};
kernel table 402;
}
protocol ospf v2 {
ipv4 {
import all;
...
...
src/inventory.ts
View file @
52fd75d2
...
...
@@ -71,6 +71,7 @@ class InventoryBuilder {
return
{
ansible_ssh_user
:
host
.
user
,
address
:
host
.
address
,
isCN
:
host
.
location
.
startsWith
(
"
CN
"
)
key
:
host
.
wgPrivateKey
,
frpsPort
:
host
.
frpsPort
,
frpToken
:
host
.
frpToken
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment