Browse Source

update: overture config

dev
dnomd343 3 years ago
parent
commit
fac976aa96
  1. 18
      overture/config.yml
  2. 1
      overture/hosts
  3. 1
      overture/loopback.txt
  4. 29
      overture/update.sh

18
overture/config.yml

@ -1,10 +1,11 @@
bindAddress: :5353 bindAddress: :5353
dohEnabled: false
primaryDNS: primaryDNS:
- name: Domestic - name: Domestic
address: 127.0.0.1:4053 address: 127.0.0.1:4053
protocol: udp protocol: udp
socks5Address: socks5Address:
timeout: 4 timeout: 6
ednsClientSubnet: ednsClientSubnet:
policy: disable policy: disable
externalIP: externalIP:
@ -14,22 +15,23 @@ alternativeDNS:
address: 127.0.0.1:6053 address: 127.0.0.1:6053
protocol: udp protocol: udp
socks5Address: socks5Address:
timeout: 8 timeout: 6
ednsClientSubnet: ednsClientSubnet:
policy: disable policy: disable
externalIP: externalIP:
noCookie: true noCookie: true
onlyPrimaryDNS: false onlyPrimaryDNS: false
ipv6UseAlternativeDNS: false ipv6UseAlternativeDNS: false
alternativeDNSConcurrent: false alternativeDNSConcurrent: true
whenPrimaryDNSAnswerNoneUse: alternativeDNS whenPrimaryDNSAnswerNoneUse: alternativeDNS
ipNetworkFile: ipNetworkFile:
primary: /etc/cleardns/list/china_ip_list.txt primary: /etc/cleardns/asset/china_ip.txt
alternative: /etc/overture/loopback.txt alternative: /dev/null
domainFile: domainFile:
primary: /etc/cleardns/list/chinalist.txt primary: /etc/cleardns/asset/chinalist.txt
alternative: /etc/cleardns/list/gfwlist.txt alternative: /etc/cleardns/asset/gfwlist.txt
matcher: suffix-tree matcher: suffix-tree
hostsFile: hostsFile:
hostsFile: /etc/overture/hosts hostsFile: /etc/hosts
finder: full-map finder: full-map
cacheSize: 4096

1
overture/hosts

@ -1 +0,0 @@
127.0.0.1 localhost

1
overture/loopback.txt

@ -1 +0,0 @@
127.0.0.0/8

29
overture/update.sh

@ -1,14 +1,15 @@
LIST_DIR="/etc/cleardns/list" ASSET_DIR="/etc/cleardns/asset"
TEMP_DIR="$LIST_DIR/temp" [ -f "$ASSET_DIR/no_auto_update" ] && exit
[ -f "$LIST_DIR/no_auto_update" ] && exit
rm -rf $TEMP_DIR TEMP_DIR="$ASSET_DIR/temp"
mkdir -p $TEMP_DIR rm -rf "$TEMP_DIR" && mkdir -p "$TEMP_DIR"
wget -P $TEMP_DIR https://res.343.re/Share/chinalist/chinalist.txt wget -P "$TEMP_DIR" https://res.dnomd343.top/Share/gfwlist/gfwlist.txt
wget -P $TEMP_DIR https://res.343.re/Share/gfwlist/gfwlist.txt wget -P "$TEMP_DIR" https://res.dnomd343.top/Share/chinalist/chinalist.txt
wget -P $TEMP_DIR https://raw.fastgit.org/17mon/china_ip_list/master/china_ip_list.txt wget -P "$TEMP_DIR" https://res.dnomd343.top/Share/chinalist/china_ip.txt
[ -s "$TEMP_DIR/chinalist.txt" ] && mv -f $TEMP_DIR/chinalist.txt $LIST_DIR/
[ -s "$TEMP_DIR/gfwlist.txt" ] && mv -f $TEMP_DIR/gfwlist.txt $LIST_DIR/ [ -s "$TEMP_DIR/gfwlist.txt" ] && mv -f "$TEMP_DIR/gfwlist.txt" "$ASSET_DIR"
[ -s "$TEMP_DIR/china_ip_list.txt" ] && mv -f $TEMP_DIR/china_ip_list.txt $LIST_DIR/ [ -s "$TEMP_DIR/chinalist.txt" ] && mv -f "$TEMP_DIR/chinalist.txt" "$ASSET_DIR"
rm -rf $TEMP_DIR [ -s "$TEMP_DIR/china_ip.txt" ] && mv -f "$TEMP_DIR/china_ip.txt" "$ASSET_DIR"
ps -ef | grep overture | grep -v grep | grep -v sh | awk '{print $1}' | xargs kill -9
/usr/bin/overture -c /etc/overture/config.yml > /dev/null 2>&1 & rm -rf "$TEMP_DIR"
pgrep overture | xargs kill

Loading…
Cancel
Save