-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cdfca56
commit a851394
Showing
13 changed files
with
6,775 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# | ||
# Copyright (C) 2021 ImmortalWrt | ||
# <https://immortalwrt.org> | ||
# | ||
# This is free software, licensed under the GNU General Public License v3. | ||
# See /LICENSE for more information. | ||
# | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=dnsforwarder | ||
PKG_VERSION:=6.1.15 | ||
PKG_RELEASE:=11 | ||
|
||
PKG_SOURCE_PROTO:=git | ||
PKG_SOURCE_URL:=https://github.com/1715173329/dnsforwarder.git | ||
PKG_SOURCE_DATE:=2018-06-26 | ||
PKG_SOURCE_VERSION:=587e61ae4d75dc976f538088b715a3c8ee26c144 | ||
PKG_MIRROR_HASH:=7c141040ae384d254d90b3c3ee502d87330c9fdcd201ff29a669336a27b176d4 | ||
|
||
PKG_LICENSE:=GPL-3.0 | ||
PKG_LICENSE_FILE:=LICENSE | ||
PKG_MAINTAINER:=Dennis <[email protected]> | ||
|
||
PKG_FIXUP:=autoreconf | ||
PKG_BUILD_PARALLEL:=1 | ||
PKG_INSTALL:=1 | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/dnsforwarder | ||
SECTION:=net | ||
CATEGORY:=Network | ||
TITLE:=A simple DNS forwarder | ||
URL:=https://github.com/holmium/dnsforwarder | ||
DEPENDS:=+coreutils +coreutils-base64 +dnsmasq-full +libpthread +wget-ssl | ||
endef | ||
|
||
define Package/dnsforwarder/description | ||
Forwarding queries to customized domains (and their subdomains) to specified servers | ||
over a specified protocol (UDP or TCP). non-standard ports are supported. | ||
endef | ||
|
||
CONFIGURE_ARGS+= --enable-downloader=wget | ||
|
||
define Package/dnsforwarder/install | ||
$(INSTALL_DIR) $(1)/usr/bin | ||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dnsforwarder $(1)/usr/bin/dnsforwarder | ||
|
||
$(INSTALL_DIR) $(1)/etc/config | ||
$(INSTALL_CONF) files/etc/config/dnsforwarder $(1)/etc/config/dnsforwarder | ||
$(INSTALL_DIR) $(1)/etc/init.d | ||
$(INSTALL_BIN) files/etc/init.d/dnsforwarder $(1)/etc/init.d/dnsforwarder | ||
|
||
$(INSTALL_DIR) $(1)/etc/dnsforwarder | ||
$(INSTALL_CONF) files/etc/dnsforwarder/gfw.txt $(1)/etc/dnsforwarder/gfw.txt | ||
$(INSTALL_DIR) $(1)/usr/share/dnsforwarder | ||
$(INSTALL_BIN) files/usr/share/dnsforwarder/gfwlist.sh $(1)/usr/share/dnsforwarder/gfwlist.sh | ||
endef | ||
|
||
$(eval $(call BuildPackage,dnsforwarder)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
|
||
config arguments | ||
option enabled '0' | ||
option addr '127.0.0.1:5053' | ||
|
||
config config | ||
option cache 'true' | ||
option cache_size '102400' | ||
option cache_ignore 'false' | ||
option gfw 'true' | ||
list block_ip '74.125.127.102' | ||
list block_ip '74.125.155.102' | ||
list block_ip '74.125.39.102' | ||
list block_ip '74.125.39.113' | ||
list block_ip '209.85.229.138' | ||
list block_ip '128.121.126.139' | ||
list block_ip '159.106.121.75' | ||
list block_ip '169.132.13.103' | ||
list block_ip '192.67.198.6' | ||
list block_ip '202.106.1.2' | ||
list block_ip '202.181.7.85' | ||
list block_ip '203.161.230.171' | ||
list block_ip '203.98.7.65' | ||
list block_ip '207.12.88.98' | ||
list block_ip '208.56.31.43' | ||
list block_ip '209.145.54.50' | ||
list block_ip '209.220.30.174' | ||
list block_ip '209.36.73.33' | ||
list block_ip '211.94.66.147' | ||
list block_ip '213.169.251.35' | ||
list block_ip '216.221.188.182' | ||
list block_ip '216.234.179.13' | ||
list block_ip '243.185.187.39' | ||
list block_ip '37.61.54.158' | ||
list block_ip '4.36.66.178' | ||
list block_ip '46.82.174.68' | ||
list block_ip '59.24.3.173' | ||
list block_ip '64.33.88.161' | ||
list block_ip '64.33.99.47' | ||
list block_ip '64.66.163.251' | ||
list block_ip '65.104.202.252' | ||
list block_ip '65.160.219.113' | ||
list block_ip '66.45.252.237' | ||
list block_ip '69.55.52.253' | ||
list block_ip '72.14.205.104' | ||
list block_ip '72.14.205.99' | ||
list block_ip '78.16.49.15' | ||
list block_ip '8.7.198.45' | ||
list block_ip '93.46.8.89' | ||
list block_ip '37.61.54.158' | ||
list block_ip '243.185.187.39' | ||
list block_ip '190.93.247.4' | ||
list block_ip '190.93.246.4' | ||
list block_ip '190.93.245.4' | ||
list block_ip '190.93.244.4' | ||
list block_ip '65.49.2.178' | ||
list block_ip '189.163.17.5' | ||
list block_ip '23.89.5.60' | ||
list block_ip '49.2.123.56' | ||
list block_ip '54.76.135.1' | ||
list block_ip '77.4.7.92' | ||
list block_ip '118.5.49.6' | ||
list block_ip '159.24.3.173' | ||
list block_ip '188.5.4.96' | ||
list block_ip '197.4.4.12' | ||
list block_ip '220.250.64.24' | ||
list block_ip '243.185.187.30' | ||
list block_ip '249.129.46.48' | ||
list block_ip '253.157.14.165' | ||
option block_ipv6 'false' | ||
list cache_control 'tossp.com $orig' | ||
list cache_control '* fixed 3600' | ||
option log 'false' | ||
list udp_group '9.9.9.9,119.29.29.29,223.5.5.5,114.114.114.114 * on' | ||
option block_negative_resp 'true' | ||
list udp_local '0.0.0.0:5053' | ||
list udp_local '[::0]:5053' | ||
option domain_statistic 'false' | ||
|
Oops, something went wrong.