
IPv6을 사용하도록 구성한 Netgear Nighthawk R7000 라우터가 있습니다. 다음은ifconfig -a내 Linux 시스템의 무선 카드 인터페이스용입니다.
wlp2s0b1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.8 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 2601:81:c300:12f0:10c3:18be:20ef:b62c prefixlen 64 scopeid 0x0<global>
inet6 2601:81:c300:12f0:78ca:626a:14b3:c8a prefixlen 64 scopeid 0x0<global>
inet6 fe80::216d:afa5:e46e:6920 prefixlen 64 scopeid 0x20<link>
ether a4:d1:8c:65:4c:a4 txqueuelen 1000 (Ethernet)
RX packets 1147508 bytes 762515013 (762.5 MB)
RX errors 0 dropped 2 overruns 0 frame 0
TX packets 3752018 bytes 944468619 (944.4 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
내가 호스팅하고 있는 로컬 웹 서버에 액세스할 수 있었습니다.포트 500두 링크 중 하나에 액세스하여
http://[2601:81:c300:12f0:10c3:18be:20ef:b62c]:500
http://[2601:81:c300:12f0:78ca:626a:14b3:c8a]:500
그런데 지금은 외부 네트워크에서 이 웹 서버에 접속하려고 합니다. 이것이 IPv4라면 포트 포워딩을 하고 라우터의 WAN IP와 포트를 내 컴퓨터의 LAN IP와 포트에 매핑해야 합니다. IPv6를 사용하여 다른 네트워크에서 내 웹 서버에 어떻게 액세스합니까?
편집하다: 내 Linux 컴퓨터에 있는 가능한 방화벽 및 디버깅 정보는 다음과 같습니다.
IPv6이 활성화되어 있는지 확인하세요.
# cat /sys/module/ipv6/parameters/disable
0
모든 IPv6 장치가 활성화되어 있는지 확인하십시오.
# sysctl -a 2>/dev/null | grep disable_ipv6
net.ipv6.conf.all.disable_ipv6 = 0
net.ipv6.conf.default.disable_ipv6 = 0
net.ipv6.conf.docker0.disable_ipv6 = 0
net.ipv6.conf.enp1s0f0.disable_ipv6 = 0
net.ipv6.conf.lo.disable_ipv6 = 0
net.ipv6.conf.wlp2s0b1.disable_ipv6 = 0
iptable이 있는 방화벽을 표시합니다.
# sudo iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy DROP)
target prot opt source destination
DOCKER-USER all -- 0.0.0.0/0 0.0.0.0/0
DOCKER-ISOLATION-STAGE-1 all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 ctstate
RELATED,ESTABLISHED
DOCKER all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain DOCKER (1 references)
target prot opt source destination
Chain DOCKER-ISOLATION-STAGE-1 (1 references)
target prot opt source destination
DOCKER-ISOLATION-STAGE-2 all -- 0.0.0.0/0 0.0.0.0/0
RETURN all -- 0.0.0.0/0 0.0.0.0/0
Chain DOCKER-ISOLATION-STAGE-2 (1 references)
target prot opt source destination
DROP all -- 0.0.0.0/0 0.0.0.0/0
RETURN all -- 0.0.0.0/0 0.0.0.0/0
Chain DOCKER-USER (1 references)
target prot opt source destination
RETURN all -- 0.0.0.0/0 0.0.0.0/0
관련 라우터 방화벽 규칙도 볼 수 없었습니다.