4
Love4Taylor 2014-06-18 15:44:39 +08:00
love4taylor#outlook.com
|
6
free4537 2014-06-18 15:56:01 +08:00
free4537#foxmail.com
|
8
dangge 2014-06-18 15:58:27 +08:00
|
12
0400295 2014-06-18 17:05:56 +08:00
chuck19861015#gmail.com.Thank U
|
13
jacy OP |
14
qoooop 2014-06-18 17:48:50 +08:00
又来晚了 qoooop#vip.qq.com
|
15
free4537 2014-06-18 17:57:01 +08:00
试了下,ping 平均 10ms,用后可直接访问 Google,Twitter 等。牛掰~
|
16
loyd1234 2014-06-18 18:47:55 +08:00
我不想打酱油,[email protected]
|
21
tnx2014 2014-06-18 22:13:41 +08:00
单独用非常有效。在路由器上用就不行,也许是我Tomato系统的问题。只能继续使用SS方案。
|
23
tnx2014 2014-06-18 22:40:12 +08:00
@zjgood 推特、脸书、谷歌服务可以直接连接,不同的放速度也不用同,我这是50毫秒左右。youtube只能打开,不能播放,,也许某些视频能放吧,和只改Hosts的效果基本一致。
|
24
tnx2014 2014-06-18 22:49:28 +08:00
如果不看U2B的话,这个还是很值得推荐的,楼主确实有功啊。
|
26
jacy OP @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 } |
28
jacy OP @zjgood 如果vps是多ip就在listen后面写上一个nginx不用的ip,如果是单ip的话,而且nginx没监听443,那么sni就只监听443,80就用nginx反向代理吧。
|
30
jacy OP @zjgood 我已经在另外一台双ip的vps上测试成功了,nginx只listen一个ip,另外一个ip给sni,两者都工作正常。发现sni不怎么占用内存和负载,性能很好,就是用得人多了流量花花的流,vps给的流量不多啊。
还想到一个单ip解决方案,就是nginx不监听80和443,换成其他端口,然后sni用正则匹配,发现是你nginx监听的域名,就转发到nginx的端口。 |
31
loser 2014-06-19 13:03:14 +08:00
求方法,我也有那么多vps啊
|
32
loser 2014-06-19 13:03:33 +08:00
看到方法了,感谢!!
|
33
JasperYanky 2014-06-19 16:48:46 +08:00
jasperyanky#gmail.com 感谢
|
34
NEX 2014-06-19 19:03:28 +08:00
[email protected] thank you~
|
35
jacy OP |
36
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; } } |
37
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 |
41
SNGR 2014-06-21 14:10:36 +08:00
@jacy 折腾半天还是没有安装成功,运行时提示
./sniproxy 2014-06-21 06:08:10 Only socket address backends are permitted when compiled without libudns 2014-06-21 06:08:10 error parsing /etc/sniproxy.conf at 707 near: 2014-06-21 06:08:10 708 .*\\.com *:443 是配置文件的问题么?求配置····· |
43
soullab 2014-07-12 17:19:12 +08:00
感谢提供思路,已经成功。
|