5

使用6to4技术获取IPv6

 3 years ago
source link: https://www.taterli.com/8166/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

使用6to4技术获取IPv6

这个技术不用走隧道,但是不是每个机都支持,特别是如果机房有严格的数据包源地址过滤就更加过不了,而且6to4的IP是二等公民,天然优先级低.而且容易被Hijack,所以一般也没什么用途.

使能很简单,只需要在/etc/network/interfaces添加以下内容.

auto 6to4
 iface 6to4 inet6 6to4
  local [公网IP地址]

要注意的是,6to4不支持机器在内网,访问路径是通过互联网上的6to4 relay来访问的,部分网络是访问不到的.

要为自己的网段注册RDNS可以到这个网址,不过默认是通过V4访问是不可以的,通过修改gai.conf的优先级来让2002::/16的优先级数字更大,然后本机直接访问就可以了.(如果通过代理隧道则设置Host也行)

https://6to4.nro.net/

技术细节大概可以总结成这张图.

File:6to4.svg

这种方式可以简单地接入IPv6网络,前提是原IPv4上游支持IPv6,并且全球主要几个relay压力都比较大,比如HE的几个美国relay速度都不到10Mbps了,算来有点鸡肋.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK