无法从网络外部访问 Ipv6

无法从网络外部访问 Ipv6

我使用的是 CentOs 8。这是我的 ifconfig:

eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether dc:a6:32:b7:68:6b  txqueuelen 1000  (Ethernet)
        RX packets 92811  bytes 18351587 (17.5 MiB)
        RX errors 0  dropped 73439  overruns 0  frame 0
        TX packets 17228  bytes 6060848 (5.7 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 23  bytes 2563 (2.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 23  bytes 2563 (2.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.178.113  netmask 255.255.255.0  broadcast 192.168.178.255
        inet6 2001:16b8:2ad6:8e00:749e:eeb5:cad4:3ff8  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::6203:7858:3288:57d1  prefixlen 64  scopeid 0x20<link>
        ether dc:a6:32:b7:68:6c  txqueuelen 1000  (Ethernet)
        RX packets 9329  bytes 3579837 (3.4 MiB)
        RX errors 0  dropped 3449  overruns 0  frame 0
        TX packets 9103  bytes 6809912 (6.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

这是我的ip

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether dc:a6:32:b7:68:6b brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether dc:a6:32:b7:68:6c brd ff:ff:ff:ff:ff:ff
    inet 192.168.178.113/24 brd 192.168.178.255 scope global dynamic noprefixroute wlan0
       valid_lft 863042sec preferred_lft 863042sec
    inet6 2001:16b8:2ad6:8e00:749e:eeb5:cad4:3ff8/64 scope global dynamic noprefixroute
       valid_lft 6695sec preferred_lft 3095sec
    inet6 fe80::6203:7858:3288:57d1/64 scope link noprefixroute
       valid_lft forever preferred_lft forever

我打开了路由器(fritz.box)上所有需要的端口并设置了默认的 ipv6 接口 id749e:eeb5:cad4:3ff8 当我fe80::6203:7858:3288:57d1从另一个设备 ping(本地 ipv6 ip)时我得到了信息,但是当我 ping 2001:16b8:2ad6:8e00:749e:eeb5:cad4:3ff8- 这应该是一个公共 IP 时,我没有得到任何信息回报。我的防火墙已关闭并且 IPV6 已启用。

有人可以指出我正确的方向吗?谢谢阅读

答案1

您必须在相关主机的防火墙规则中允许 Ping6。我使用 Fritz!Box 7490(互联网/Freigaben -> 主机)

ICMP 不使用端口。您不必设置接口 ID。

如果您选择一个主机来编辑防火墙规则,FB 会显示该主机的接口 ID。这样您就可以检查是否为正确的主机添加了规则。 “全局动态 mngtmpaddr”IPv6 地址是您可以从外部 ping 通的地址。至少如果该主机上没有防火墙规则阻止“icmp echo requests”->使用firewall-cmd --list-all并检查“icmp-blocks:”

华泰

相关内容