Created
October 21, 2018 13:09
-
-
Save nondanee/0221c91c86a061ad7071436b7a3eecd6 to your computer and use it in GitHub Desktop.
self-build dns tutorial for unblockneteasemusic
This file contains hidden or 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
$ 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
https://mritd.me/2016/09/01/10%E5%88%86%E9%92%9F-dnsmasq-%E6%90%AD%E5%BB%BA/
http://mydf.github.io/blog/ubuntu-dnsmasq/
https://jasper-1024.github.io/2016/10/09/%E8%87%AA%E5%BB%BADNS%E8%A7%A3%E5%86%B3%E8%BF%90%E8%90%A5%E5%95%86DNS%E6%B1%A1%E6%9F%93/