V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
diwup
V2EX  ›  Ubuntu

让 Ubuntu Server 访问外网时走 VPN

  •  
  •   diwup · Oct 18, 2012 · 3673 views
    This topic created in 4942 days ago, the information mentioned may be changed or developed.
    我在国内机房搭了一个 Ubuntu Server。curl一些链接的时候遇到一件很囧的事。链接被蔷了。

    我自己在日本的Linode上有一个PPTP的VPN,我琢磨着让国内这个 Ubuntu Server 所有外网访问都走VPN。

    问题是,我不知道该怎么配... 各位大牛支招...
    2 replies    2014-08-13 17:13:53 +08:00
    clino
        1
    clino  
       Oct 18, 2012
    这个可以用 /t/32777 的 shadowsocks,然后配合 proxychains 使用,用起来相当简单,配置起来用 proxychains curl xxx 就行了
    但是有个问题是 root 下不能使用 proxychains

    另外还有一个办法在目标站点不多的时候可以用,就是在你的 linode 用 nginx 之类的做反向代理,然后在国内vps上改 hosts
    xxstop
        2
    xxstop  
       Aug 13, 2014
    mark下~有空试试.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   874 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 22:30 · PVG 06:30 · LAX 15:30 · JFK 18:30
    ♥ Do have faith in what you're doing.