geeti
V2EX  ›  问与答

vps 上搭建 vpn 后如何再加上 Tor?

  •  
  •   geeti · Dec 31, 2014 · 7575 views
    This topic created in 4175 days ago, the information mentioned may be changed or developed.

    在VPS上用 voodoovpn.sh的脚本搭建了个简单的ipsec vpn,但有时候想隐藏IP,应该怎样再转发到vps上的9050端口?

    Supplement 1  ·  Dec 31, 2014
    尝试用iptables转发,但不知道为啥没成功:
    0. 用基于tcp的pptp vpn
    1.redsocks 转发 12345到9050.
    2. iptables -t nat -A REDSOCKS -p tcp -s 192.168.30.0/24 -j REDIRECT --to-port 22345

    iphone可以顺利连接vpn,但无法打开网页 。
    Supplement 2  ·  Dec 31, 2014
    搞定了。
    方法如下:
    tor配置 transparent proxy
    用iptables将tcp转到transparent proxy port
    并且把iptables的udp:53 traffic 转到本地54
    Supplement 3  ·  Feb 13, 2015
    后来验证,Tor只支持TCP,UDP的没办法。
    4 replies    2017-04-14 14:03:53 +08:00
    Tomilay
        1
    Tomilay  
       Dec 31, 2014
    tor LISTEN 10.0.0.1:9050 proxychinas -f x.conf -> 10.0.0.1:9050
    geeti
        2
    geeti  
    OP
       Dec 31, 2014
    @Tomilay 使用代理的话,ios貌似只能配置http代理
    haxx12113
        3
    haxx12113  
       Apr 14, 2017
    @geeti 楼主搭建好了可以教下我吗? iptables 不熟悉,你没有列出详细操作步骤可以加你去配置吗?可以有偿配置 tor 加 vpn !
    haxx12113
        4
    haxx12113  
       Apr 14, 2017
    @geeti 补充个人腾讯 591122219
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3175 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 04:00 · PVG 12:00 · LAX 21:00 · JFK 00:00
    ♥ Do have faith in what you're doing.