Skip to content

Instantly share code, notes, and snippets.

@nondanee
Created October 21, 2018 13:09
Show Gist options
  • Save nondanee/0221c91c86a061ad7071436b7a3eecd6 to your computer and use it in GitHub Desktop.
Save nondanee/0221c91c86a061ad7071436b7a3eecd6 to your computer and use it in GitHub Desktop.
self-build dns tutorial for unblockneteasemusic
$ apt-get install dnsmasq
# /etc/dnsmasq.conf
no-resolv
no-hosts
server=119.29.29.29
addn-hosts=/etc/dnsmasq.hosts
#listen-address=127.0.0.1
# /etc/dnsmasq.hosts
<public ip> music.163.com
<public ip> interface.music.163.com
# ss-server
ss-server -c /etc/shadowsocks-libev/config.json -d 127.0.0.1 -u
# unblock-server
node app -p 80
# iptables
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
iptables -A INPUT -p udp --dport <ss-port> -j ACCEPT
iptables -A INPUT -p tcp --dport <ss-port> -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment