yylzcom
V2EX  ›  问与答

如何在vps上为不同用户指定不同ipv6出口

  •  
  •   yylzcom · Apr 4, 2013 · 2859 views
    This topic created in 4793 days ago, the information mentioned may be changed or developed.
    vps为我和朋友开梯子上gmail。一段时间之后google就让输验证码,最后都直接不让上。现在想通过为不同用户指定不同出口ip来尝试解决一下。搜索到之前的方案:

    iptables -t mangle -A OUTPUT -m owner --uid-owner 1004 -j MARK --set-mark 1004
    iptables -t nat -A POSTROUTING -m mark --mark 1004 -j SNAT --to-source 29.18.60.79

    但是上面是ipv4的方案,也就是用iptables来指定不同ip。现在需要一个ip6tables的来弄,希望有朋友能指点一下,感激不尽

    附上ip6tables说明:
    http://linux.die.net/man/8/ip6tables
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5389 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 06:44 · PVG 14:44 · LAX 23:44 · JFK 02:44
    ♥ Do have faith in what you're doing.