shadowsocks / ChinaDNS

Protect yourself against DNS poisoning in China.
GNU General Public License v3.0
3.59k stars 1.29k forks source link

ChinaDNS - Not Running #158

Closed alex-ibb closed 11 months ago

alex-ibb commented 11 months ago

Backgroud:

Router: Linksys EA8500
OS: OpenWrt 21.02.7 r16847-f8282da11e / LuCI openwrt-21.02 branch git-23.093.57360-e98243e

Problem:

Steps to produce the problems:

  1. Flash the router with the OS image
  2. Install the packages using the commands below:
wget https://openwrt-dist.sourceforge.net/auto_install.sh
chmod +x auto_install.sh
./auto_install.sh # `Y` for each prompts
opkg install luci-compat
opkg install ip ipset libopenssl iptables-mod-tproxy
  1. Login the OpenWrt and configure the ChinaDNS as below: Services-ChinaDNS-General Setting:
    • Enable: checked
    • Enable Bidirectional Filter:checked
    • Listen Port:5353
    • CHNRoute File:/etc/chinadns_chnroute.txt
    • Upstream Servers:114.114.114.114,8.8.4.4
    • Save & Apply

root@OpenWrt:~# cat /etc/config/chinadns reads:

config chinadns
        option chnroute '/etc/chinadns_chnroute.txt'
        option addr '0.0.0.0'
        option port '5353'
        option server '114.114.114.114,8.8.4.4'
        option enable '1'
        option bidirectional '1'
  1. Configure DNSmasq

Network - DHCP and DNS - General Settings:

Network - DHCP and DNS - Resolv and Hosts Files:

After performing these steps, the ChinaDNS page shows "ChinaDNS - NOT RUNNING". Even after rebooting the router, the issue persists.

Approaches Tried

Manually start

Manually starting the service with chinadns -c /etc/chinadns_chnroute.txt -p 5353 from the OpenWRT terminal seems to work. DNS requests from clients/PCs generate prints.

Check logread

No relevant information was found in the logread output from the OpenWRT terminal.

Switch to newer OpenWRT

Attempting to re-flash the router with newer OS versions, such as openwrt-22.03.5-ipq806x-generic-linksys_ea8500-squashfs-sysupgrade, did not resolve the issue.

Emm... forks, are there any additional factors or considerations that I might have overlooked in this situation? Many thanks ~

alex-ibb commented 11 months ago

/etc/init.d/chinadns enable will fix the problem.