小编Tim*_*hig的帖子

如何通过GCE防火墙允许protocol-41(6in4)?

作为Google支持Google Compute Engine上的原生IPv6之前的一个障碍,我想配置一个6in4(IP协议41)隧道.

我添加了防火墙规则以允许我的VM网络上的协议41:

Name        Source tag / IP range  Allowed protocols / ports  Target tags
allow-6in4  216.66.xxx.xxx         41                         Apply to all targets
Run Code Online (Sandbox Code Playgroud)

并配置隧道/etc/network/interfaces:

auto 6in4
iface 6in4 inet6 v4tunnel
  address 2001:470:xxxx:xxxx::2
  netmask 64
  endpoint 216.66.xxx.xxx
  gateway 2001:470:xxxx:xxxx::1
  ttl 64
  up ip link set mtu 1280 dev $IFACE
Run Code Online (Sandbox Code Playgroud)

并且ping6 2001:470:xxxx:xxxx::1验证了6in4流量是出站的:

$ sudo tcpdump -pni eth0 host 216.66.xxx.xxx
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening …
Run Code Online (Sandbox Code Playgroud)

ipv6 tunnel google-compute-engine

7
推荐指数
1
解决办法
1459
查看次数

标签 统计

google-compute-engine ×1

ipv6 ×1

tunnel ×1