In my router, I have 2 interfaces enp1s0 (assumed as WAN) and enp4s0(assumed as LAN). I connected a LAN host and a WAN host. I can ping from LAN host to WAN port of the router but not to the gateway of WAN. The setting is as follows :
- LAN host IP : 8888::5/64
- LAN gateway IP (router's enp4s0) : 8888::1/64
- WAN port IP (router's enp1s0) : 2401:fb00:0:1ff::1fd/64
- WAN gateway IP : 2401:fb00:0:1ff::1fc/64
IPv6 forwarding is enabled in /etc/sysctl.conf i.e net.ipv6.conf.all.forwarding=1
and restarted the network service.
/proc/sys/net/ipv6/conf/enp1s0/forwarding = 1
/proc/sys/net/ipv6/conf/enp4s0/forwarding = 1
/proc/sys/net/ipv6/conf/default/forwarding = 1
/proc/sys/net/ipv6/conf/all/forwarding = 1
Ping happens from LAN host to LAN gateway and WAN port of router.
Default route is there in router to reach WAN gateway.
But still I can't access WAN gateway from LAN host.
Any help would be appreciated.
tcpdump on router WAN port(enp1s0) is when ping from 8888::5 to 2401:fb00:0:1ff::1fc runs.
11:40:26.986609 IP6 8888::5 > 2401:fb00:0:1ff::1fc: ICMP6, echo request, seq 632, length 64
11:40:27.597211 IP6 2401:fb00:0:1ff::1fd.35373 > 2401:fb00:0:1ff::1fc.domain: 41163+ A? relay-4a21c05c.net.anydesk.com. (48)
11:40:27.601687 IP6 2401:fb00:0:1ff::1fc > 2401:fb00:0:1ff::1fd: ICMP6, destination unreachable, unreachable port, 2401:fb00:0:1ff::1fc udp port domain, length 104