利用sni proxy做国内的出墙服务,使用什么方式连接到境外服务器比较好? - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iCodex
V2EX    服务器

利用sni proxy做国内的出墙服务,使用什么方式连接到境外服务器比较好?

  •  
  •   iCodex 2013-01-04 01:12:37 +08:00 17635 次点击
    这是一个创建于 4730 天前的主题,其中的信息可能已经有所发展或是发生改变。
    这个设想很简单,只是为了保证单位人员的上网需求,同时方便记录所浏览的站点。
    由于高墙对国内的服务器没有做过滤,因此只要电信运营商没有做关键词过滤和特征过滤,应该不会有问题的。
    使用HTTPS-SNI-Proxy https://github.com/dlundquist/HTTPS-SNI-Proxy

    假设A服务器:国内机房 180.149.133.188
    上面安装sni proxy,监听80端口和443端口,然后配置文件中添加了一些网站
    B服务器:香港电讯盈科

    cat /etc/sni_proxy.conf
    user nobody

    listen 180.149.133.188 80 {
    proto http
    table http_hosts
    }
    listen 180.149.133.188 443 {
    proto tls
    table https_hosts
    }

    table http_hosts {
    twitter.com 199.59.148.10 80
    twitter.com 199.59.150.39 80
    .*\.twitter\.com\$ 199.59.149.230 80
    .*\.youtube\.com\$ 203.208.46.206 80
    .*\.ytimg\.com\$ 203.208.46.206 80
    .*\.google\.com\$ 203.208.46.200 80
    .*\.google\.com\.hk\$ 74.125.31.190 80
    .*\.googleusercontent\.com\$ 203.208.46.200 80
    .*\.googlecode\.com\$ 203.208.46.200 80
    .*\.gstatic\.com\$ 203.208.46.200 80
    .*\.ggpht\.com\$ 203.208.46.200 80
    .*\.googleapis\.com\$ 173.194.72.95 80
    .*\.googlesyndication\.com\$ 74.125.31.190 80
    .*\.googlehosted\.com\$ 74.125.31.190 80
    }

    table https_hosts {
    twitter.com 199.59.148.10 443
    twitter.com 199.59.150.39 443
    .*\.twitter\.com\$ 199.59.149.230 443
    .*\.youtube\.com\$ 203.208.46.206 443
    .*\.ytimg\.com\$ 203.208.46.206 443
    .*\.google\.com\$ 203.208.46.200 443
    .*\.google\.com\.hk\$ 74.125.31.190 443
    .*\.googleusercontent\.com\$ 203.208.46.200 443
    .*\.googlecode\.com\$ 203.208.46.200 443
    .*\.gstatic\.com\$ 203.208.46.200 443
    .*\.ggpht\.com\$ 203.208.46.200 443
    .*\.googleapis\.com\$ 173.194.72.95 443
    .*\.googlesyndication\.com\$ 74.125.31.190 443
    .*\.googlehosted\.com\$ 74.125.31.190 443
    }

    然后服务器上配置完了,我只需要在单位网关上做dns污染这些域名的解析就可以实现代理

    现在google和youtube的可以指定谷歌北京的IP 203.208.32.0/19,但其他的域名比如twitter就需要一个通道连接到境外的B服务器了。一般这种情况,用什么方式会比较好?综合安全性和速度方面 ipsec?openvpn?
    1 条回复    1970-01-01 08:00:00 +08:00
    sNullp
        1
    sNullp  
       2013-01-04 09:19:45 +08:00   1
    IPSec 会比 OpenVPN 好得多。特别是CISCO/IPSec,strongSwan可以搭建
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     5268 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 32ms UTC 03:35 PVG 11:35 LAX 19:35 JFK 22:35
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86