给大家测试一个自己搭建的 dns

2014-06-18 12:52:54 +08:00
 jacy
特点:可直接上部分被和谐网站,其他网站无dns污染,
目前可直连谷歌全套服务,twiiter,facebook,如需更多,可以联系我

已知问题:
1.虽然像是直连免翻,其实还是通过了我美国的一个vps,且是匿名的,所以登录上述网站可能会提示登录地点异常。
2.vps流量有限,googlevideo.com域名流量不通过我的服务器,但是这个域名没污染,有时可以看youtube视频。如需稳定youtube,还是用自己的翻墙方法吧。
3.如果手机用我的dns,大部分手机上的谷歌app不能正常使用,因为没去抓包,原因还不知道。
4.由于个人原因以及外界不可抗拒的原因(你懂的),此服务不保证可靠性,如果不可用了,记得换回dns。

测试说明:
目前先发放十个测试名额,我看看vps承受能力怎样,可以的话再多发一些。需要的在底下留下邮箱,发送的dns地址仅供个人使用,请勿传播。有问题可以直接再此贴回复。

原理说明:
经我上一个求助帖的启发,在国外vps上搭建了sniproxy,发现可以转发所有域名的http和https流量,然后我在国内的vps上搭建个dns,把一些域名解析到国外的vps即可。sniproxy项目地址: https://github.com/dlundquist/sniproxy,有条件的可以自己搭建个试试。
4604 次点击
所在节点    分享创造
43 条回复
tnx2014
2014-06-18 22:13:41 +08:00
单独用非常有效。在路由器上用就不行,也许是我Tomato系统的问题。只能继续使用SS方案。
zjgood
2014-06-18 22:16:36 +08:00
@free4537 真的吗?那这个东东的价值岂不是可堪shadowsocks咯?楼主大才!
tnx2014
2014-06-18 22:40:12 +08:00
@zjgood 推特、脸书、谷歌服务可以直接连接,不同的放速度也不用同,我这是50毫秒左右。youtube只能打开,不能播放,,也许某些视频能放吧,和只改Hosts的效果基本一致。
tnx2014
2014-06-18 22:49:28 +08:00
如果不看U2B的话,这个还是很值得推荐的,楼主确实有功啊。
zjgood
2014-06-19 00:02:41 +08:00
@jacy 楼主能否发一下你的sniproxy配置呢~~~
jacy
2014-06-19 11:08:57 +08:00
@zjgood 如果vps上只需要转发功能,没装其他web服务器的话直接监听80和443就行了,然后规则里直接正则转发所有流量,像这样:
user nobody
listen 80 {
proto http
table http_hosts
}
listen 443 {
proto tls
table https_hosts
}
table http_hosts {
.* *:80
}
table https_hosts {
.* *:443
}
zjgood
2014-06-19 12:23:39 +08:00
@jacy 但是如果装了nginx怎么破呢?
jacy
2014-06-19 12:36:24 +08:00
@zjgood 如果vps是多ip就在listen后面写上一个nginx不用的ip,如果是单ip的话,而且nginx没监听443,那么sni就只监听443,80就用nginx反向代理吧。
zjgood
2014-06-19 12:39:35 +08:00
@jacy 只好暂时割了。。。
单买Linode拿来做sniproxy感觉还是挺浪费的
jacy
2014-06-19 12:58:53 +08:00
@zjgood 我已经在另外一台双ip的vps上测试成功了,nginx只listen一个ip,另外一个ip给sni,两者都工作正常。发现sni不怎么占用内存和负载,性能很好,就是用得人多了流量花花的流,vps给的流量不多啊。
还想到一个单ip解决方案,就是nginx不监听80和443,换成其他端口,然后sni用正则匹配,发现是你nginx监听的域名,就转发到nginx的端口。
loser
2014-06-19 13:03:14 +08:00
求方法,我也有那么多vps啊
loser
2014-06-19 13:03:33 +08:00
看到方法了,感谢!!
JasperYanky
2014-06-19 16:48:46 +08:00
jasperyanky#gmail.com 感谢
NEX
2014-06-19 19:03:28 +08:00
1519454341@qq.com thank you~
jacy
2014-06-19 21:46:45 +08:00
@NEX
@JasperYanky
@loyd1234
@qoooop
已发送地址到邮箱
zjgood
2014-06-19 23:49:10 +08:00
@jacy nginx反向代理sniproxy成功
感谢提供思路。
首先sniproxy监听127.0.0.1:81
然后nginx配置如下:
server {
listen 80 default_server;
location / {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:81;
}
}
SNGR
2014-06-20 14:21:26 +08:00
运行 ./autogen.sh 出行一堆

[root@108 sniproxy-master]# ./autogen.sh
configure.ac:16: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
/usr/share/aclocal/pkg.m4:102: PKG_CHECK_MODULES is expanded from...
configure.ac:16: the top level
configure.ac:16: warning: AC_LIB_PROG_LD is m4_require'd but not m4_defun'd
m4/lib-link.m4:125: AC_LIB_RPATH is expanded from...
configure.ac:16: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:181: AC_LIB_LINKFLAGS_BODY is expanded from...
configure.ac:27: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
configure.ac:27: the top level
configure.ac:27: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
configure.ac:44: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
configure.ac:44: the top level
configure.ac:44: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
configure.ac:51: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
configure.ac:51: the top level
configure.ac:51: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
configure.ac:16: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:123: PKG_CHECK_MODULES is expanded from...
configure.ac:16: the top level
configure.ac:16: warning: AC_LIB_PROG_LD is m4_require'd but not m4_defun'd
m4/lib-link.m4:125: AC_LIB_RPATH is expanded from...
configure.ac:16: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:181: AC_LIB_LINKFLAGS_BODY is expanded from...
configure.ac:27: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
configure.ac:27: the top level
configure.ac:27: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
configure.ac:44: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
configure.ac:44: the top level
configure.ac:44: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
configure.ac:51: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
configure.ac:51: the top level
configure.ac:51: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
configure.ac:16: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from...
aclocal.m4:123: PKG_CHECK_MODULES is expanded from...
configure.ac:16: the top level
configure.ac:16: warning: AC_LIB_PROG_LD is m4_require'd but not m4_defun'd
m4/lib-link.m4:125: AC_LIB_RPATH is expanded from...
configure.ac:16: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
m4/lib-link.m4:181: AC_LIB_LINKFLAGS_BODY is expanded from...
configure.ac:27: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
configure.ac:27: the top level
configure.ac:27: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
configure.ac:44: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
configure.ac:44: the top level
configure.ac:44: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
configure.ac:51: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd
configure.ac:51: the top level
configure.ac:51: warning: AC_LIB_PREPARE_MULTILIB is m4_require'd but not m4_defun'd
configure:4006: error: possibly undefined macro: AC_LIB_PREPARE_PREFIX
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure:4007: error: possibly undefined macro: AC_LIB_PROG_LD
configure:4125: error: possibly undefined macro: AC_LIB_PREPARE_MULTILIB
configure:4200: error: possibly undefined macro: AC_LIB_WITH_FINAL_PREFIX
autoreconf: /usr/bin/autoconf failed with exit status: 1
jacy
2014-06-20 17:44:53 +08:00
@SNGR 你是centos吗?我用CentOS也这样,后面无奈换成Debian了。
SNGR
2014-06-20 19:29:39 +08:00
@jacy 是centos,额,无解么?放狗半天没效果。
jacy
2014-06-20 23:08:46 +08:00
@SNGR 我也不太熟悉linux编译软件,这个项目作者就没给centos的方法,没办法

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/118152

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX