AVC
V2EX  ›  问与答

在一台拥有/64 的 IPV6 地址块的 VPS 上使用 strongswan,要怎样才能使客户端得到公网 IPV6 并访问?

  •  
  •   AVC · Apr 19, 2015 · 5552 views
    This topic created in 4064 days ago, the information mentioned may be changed or developed.

    使用https://gist.github.com/losisli/11081793的教程。
    ipsec.conf中:
    right=%any
    rightsourceip=2400:6180:0000:00D0:0000:0000:02FC:7001/64
    直接启动服务能够连上,但是客户端只有发包没有收到包。
    ip6tables没有做任何设置。

    问题:
    如何让客户端拿到公网IPV6,直连访问internet?
    如何让V6V4共存?V4(NAT)V6(直连)。

    4 replies    2015-04-20 14:18:37 +08:00
    bugeye
        1
    bugeye  
       Apr 20, 2015
    不太明白你的想法。
    客户端没有原生的ipv6,不管怎么改,还是通过ipv4访问你的啊。
    你的意思是否让客户端也有ipv6,然后可以访问ipv6的网站,但这和strongswan也没什么关系吧。

    客户端ipv6的方案可以参考 6in4,或者6to4.
    qingh
        2
    qingh  
       Apr 20, 2015
    是不是想实现 strongswan client ip4 -- strongswan server ip4 / ip6 --- ip6 internet
    http://www.strongswan.org/uml/testresults/ipv6/rw-ip6-in-ip4-ikev2/
    AVC
        3
    AVC  
    OP
       Apr 20, 2015
    @qingh yes,就是想这样实现。
    AVC
        4
    AVC  
    OP
       Apr 20, 2015
    @bugeye 客户端只有V4,通过strongswan连接到服务器,分配一个NAT的IPV4和一个公网的IPV6地址
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5808 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 236ms · UTC 02:09 · PVG 10:09 · LAX 19:09 · JFK 22:09
    ♥ Do have faith in what you're doing.