mirror of
https://github.com/routerich/RouterichAX3000_configs.git
synced 2025-12-13 06:56:44 +03:00
Check install packages doh,dot,dfp
This commit is contained in:
26
config_files/doh-proxy
Normal file
26
config_files/doh-proxy
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
|
||||||
|
config main 'config'
|
||||||
|
option canary_domains_icloud '1'
|
||||||
|
option canary_domains_mozilla '1'
|
||||||
|
option dnsmasq_config_update '-'
|
||||||
|
option force_dns '0'
|
||||||
|
list force_dns_port '53'
|
||||||
|
list force_dns_port '853'
|
||||||
|
# ports listed below are used by some
|
||||||
|
# of the dnscrypt-proxy v1 resolvers
|
||||||
|
# list force_dns_port '553'
|
||||||
|
# list force_dns_port '1443'
|
||||||
|
# list force_dns_port '4343'
|
||||||
|
# list force_dns_port '4434'
|
||||||
|
# list force_dns_port '5443'
|
||||||
|
# list force_dns_port '8443'
|
||||||
|
list procd_fw_src_interfaces 'lan'
|
||||||
|
option procd_trigger_wan6 '0'
|
||||||
|
|
||||||
|
config doh-proxy
|
||||||
|
option bootstrap_dns '94.140.14.14,94.140.15.15'
|
||||||
|
option resolver_url 'https://dns.adguard-dns.com/dns-query'
|
||||||
|
option listen_addr '127.0.0.1'
|
||||||
|
option listen_port '5053'
|
||||||
|
option user 'nobody'
|
||||||
|
option group 'nogroup'
|
||||||
@@ -376,7 +376,7 @@ deleteByPassGeoBlockComssDNS()
|
|||||||
uci commit dhcp
|
uci commit dhcp
|
||||||
service dnsmasq restart
|
service dnsmasq restart
|
||||||
service odhcpd restart
|
service odhcpd restart
|
||||||
service https-dns-proxy restart
|
service doh-proxy restart
|
||||||
}
|
}
|
||||||
|
|
||||||
install_youtubeunblock_packages() {
|
install_youtubeunblock_packages() {
|
||||||
@@ -510,13 +510,15 @@ DIR="/etc/config"
|
|||||||
DIR_BACKUP="/root/backup3"
|
DIR_BACKUP="/root/backup3"
|
||||||
config_files="network
|
config_files="network
|
||||||
firewall
|
firewall
|
||||||
https-dns-proxy
|
doh-proxy
|
||||||
youtubeUnblock
|
youtubeUnblock
|
||||||
dhcp
|
dhcp
|
||||||
dns-failsafe-proxy"
|
dns-failsafe-proxy"
|
||||||
URL="https://raw.githubusercontent.com/routerich/RouterichAX3000_configs/refs/heads/beta_alt"
|
URL="https://raw.githubusercontent.com/routerich/RouterichAX3000_configs/refs/heads/beta_alt"
|
||||||
|
|
||||||
checkPackageAndInstall "https-dns-proxy" "0"
|
checkPackageAndInstall "doh-proxy" "1"
|
||||||
|
checkPackageAndInstall "stubby" "1"
|
||||||
|
checkPackageAndInstall "luci-app-dns-failsafe-proxy" "1"
|
||||||
|
|
||||||
if [ ! -d "$DIR_BACKUP" ]
|
if [ ! -d "$DIR_BACKUP" ]
|
||||||
then
|
then
|
||||||
@@ -530,7 +532,7 @@ then
|
|||||||
|
|
||||||
for file in $config_files
|
for file in $config_files
|
||||||
do
|
do
|
||||||
if [ "$file" == "https-dns-proxy" ] || [ "$file" == "dns-failsafe-proxy" ]
|
if [ "$file" == "doh-proxy" ] || [ "$file" == "dns-failsafe-proxy" ]
|
||||||
then
|
then
|
||||||
wget -O "$DIR/$file" "$URL/config_files/$file"
|
wget -O "$DIR/$file" "$URL/config_files/$file"
|
||||||
fi
|
fi
|
||||||
@@ -1046,8 +1048,8 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "\033[32;1mStart and enable service 'https-dns-proxy'...\033[0m\n"
|
printf "\033[32;1mStart and enable service 'doh-proxy'...\033[0m\n"
|
||||||
manage_package "https-dns-proxy" "enable" "start"
|
manage_package "doh-proxy" "enable" "start"
|
||||||
|
|
||||||
str=$(grep -i "0 4 \* \* \* wget -O - $URL/configure_zaprets.sh | sh" /etc/crontabs/root)
|
str=$(grep -i "0 4 \* \* \* wget -O - $URL/configure_zaprets.sh | sh" /etc/crontabs/root)
|
||||||
if [ ! -z "$str" ]
|
if [ ! -z "$str" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user