Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nextgen-router
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
MyCard
nextgen-router
Commits
86648fd5
Commit
86648fd5
authored
Dec 10, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add gfwlist ipset and mycard dnsmasq
parent
4cd15479
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
1 deletion
+30
-1
.gitignore
.gitignore
+1
-0
network.yaml
network.yaml
+22
-0
prepare.sh
prepare.sh
+4
-1
variables.yaml
variables.yaml
+3
-0
No files found.
.gitignore
View file @
86648fd5
/data
/dnsmasq-china-list
/chnroutes2
/mycard-dnsmasq
network.yaml
View file @
86648fd5
...
...
@@ -169,6 +169,28 @@
src
:
./data/china-list.conf
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/smartdns/china-list.conf'
notify
:
restart_dnsmasq
-
name
:
update dnsmasq.d
synchronize
:
src
:
./mycard-dnsmasq/dnsmasq.d/
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/dnsmasq.d'
recursive
:
yes
verify_host
:
no
checksum
:
yes
archive
:
no
notify
:
restart_dnsmasq
when
:
dnsmasq.mycardDomains is defined and dnsmasq.mycardDomains
-
name
:
gfwlist ipset
copy
:
src
:
'
./data/gfwlist-ipset.conf'
dest
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/dnsmasq.d/gfwlist-ipset.conf'
when
:
dnsmasq.gfwlistIPSet is defined and dnsmasq.gfwlistIPSet
notify
:
restart_dnsmasq
-
name
:
gfwlist ipset clean
file
:
path
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq/dnsmasq.d/gfwlist-ipset.conf'
state
:
absent
when
:
dnsmasq.gfwlistIPSet is defined and not dnsmasq.gfwlistIPSet
notify
:
restart_dnsmasq
-
name
:
start dnsmasq
docker_compose
:
project_src
:
'
{{ansible_user_dir}}/nextgen-router/services/dnsmasq'
...
...
prepare.sh
View file @
86648fd5
...
...
@@ -7,12 +7,13 @@ download_repo() {
if
[
-d
"
$REPO_DIR
"
]
;
then
(
cd
"
$REPO_DIR
"
&&
git pull
)
else
git clone
"
$REPO_URL
"
"
$REPO_
URL
"
git clone
"
$REPO_URL
"
"
$REPO_
DIR
"
fi
}
download_repo chnroutes2 https://github.com/misakaio/chnroutes2.git
download_repo dnsmasq-china-list https://github.com/felixonmars/dnsmasq-china-list.git
download_repo mycard-dnsmasq https://code.mycard.moe/mycard/dnsmasq
cd
dnsmasq-china-list
make smartdns
...
...
@@ -25,3 +26,5 @@ grep -P '^bogus-nxdomain=.+$' dnsmasq-china-list/bogus-nxdomain.china.conf | sed
cd
lists
python3 route_helper.py
cd
..
curl
-sL
https://cokebar.github.io/gfwlist2dnsmasq/dnsmasq_gfwlist_ipset.conf |
grep
-P
'^ipset='
>
./data/gfwlist-ipset.conf
variables.yaml
View file @
86648fd5
...
...
@@ -75,6 +75,9 @@ vars:
china_dns
:
-
114.114.114.114
-
223.5.5.5
dnsmasq
:
gfwlistIPSet
:
false
# 导入 gfwlist ipset
mycardDomains
:
false
# 导入 MCNetwork 内网域名
services
:
ddns
:
-
name
:
test-ddns
...
...
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