Ping6: sendto: Permission denied

I have edited.

1 Like

Is your ISP assigning only a /64 prefix?
Paste here the ifstatus wan6

Yes

{
        "up": true,
        "pending": false,
        "available": true,
        "autostart": true,
        "dynamic": false,
        "uptime": 30729,
        "l3_device": "wan",
        "proto": "dhcpv6",
        "device": "wan",
        "metric": 0,
        "dns_metric": 0,
        "delegation": true,
        "ipv4-address": [

        ],
        "ipv6-address": [
                {
                        "address": "2a01:e34:XXXX:XXXX::f31a:ee44",
                        "mask": 128,
                        "preferred": 55668,
                        "valid": 55668
                }
        ],
        "ipv6-prefix": [

        ],
        "ipv6-prefix-assignment": [

        ],
        "route": [
                {
                        "target": "2a01:e34:XXXX:XXXX::",
                        "mask": 64,
                        "nexthop": "::",
                        "metric": 256,
                        "valid": 86210,
                        "source": "::/0"
                },
                {
                        "target": "::",
                        "mask": 0,
                        "nexthop": "fe80::8e97:eaff:fe37:5aef",
                        "metric": 512,
                        "valid": 1610,
                        "source": "2a01:e34:XXXX:XXXX::f31a:ee44/128"
                }
        ],
        "dns-server": [
                "fd0f:ee:b0::1"
        ],
        "dns-search": [

        ],
        "neighbors": [

        ],
        "inactive": {
                "ipv4-address": [

                ],
                "ipv6-address": [

                ],
                "route": [

                ],
                "dns-server": [

                ],
                "dns-search": [

                ],
                "neighbors": [

                ]
        },
        "data": {

        }
}

You did not even get a /64, instead you got a DHCPv6-assigned /128 (single address).

Your only two options are DHCPv6 relay or NAT66.

1 Like

With some manipulation on my box:

ifstatus wan6
{
        "up": true,
        "pending": false,
        "available": true,
        "autostart": true,
        "dynamic": false,
        "uptime": 44,
        "l3_device": "wan",
        "proto": "dhcpv6",
        "device": "wan",
        "updated": [
                "addresses",
                "routes"
        ],
        "metric": 0,
        "dns_metric": 0,
        "delegation": true,
        "ipv4-address": [

        ],
        "ipv6-address": [
                {
                        "address": "2a01:e34:XXXX:XXXX:8ac3:97ff:fe3b:6ab8",
                        "mask": 64,
                        "preferred": 86354,
                        "valid": 86354
                }
        ],
        "ipv6-prefix": [

        ],
        "ipv6-prefix-assignment": [

        ],
        "route": [
                {
                        "target": "2a01:e34:XXXX:XXXX::",
                        "mask": 64,
                        "nexthop": "::",
                        "metric": 256,
                        "valid": 86354,
                        "source": "::/0"
                },
                {
                        "target": "::",
                        "mask": 0,
                        "nexthop": "fe80::8e97:eaff:fe37:5aef",
                        "metric": 512,
                        "valid": 1754,
                        "source": "2a01:e34:XXXX:XXXX:8ac3:97ff:fe3b:6ab8/64"
                }
        ],
        "dns-server": [
                "fd0f:ee:b0::1"
        ],
        "dns-search": [

        ],
        "neighbors": [

        ],
        "inactive": {
                "ipv4-address": [

                ],
                "ipv6-address": [

                ],
                "route": [

                ],
                "dns-server": [

                ],
                "dns-search": [

                ],
                "neighbors": [

                ]
        },
        "data": {

        }
}

You got a router-advertised /64 IPv6 address, but still no delegated prefix available.

Try NDP relay:

uci set dhcp.lan.ra=relay
uci set dhcp.lan.dhcpv6=relay
uci set dhcp.lan.ndp=relay
uci set dhcp.wan6=dhcp
uci set dhcp.wan6.interface=wan
uci set dhcp.wan6.ra=relay
uci set dhcp.wan6.dhcpv6=relay
uci set dhcp.wan6.ndp=relay
uci commit dhcp
/etc/init.d/odhcpd restart
2 Likes

If possible, set your box to bridged mode so your router can handle IPv6 connection fully.

OK... Missing a route:

uci add network route6
uci set network.@route6[0].interface='wan6'
uci set network.@route6[0].target='2000::/3'
uci set network.@route6[0].gateway='fe80::f6ca:e5xx:fyyy:zzzb'
uci commit
/etc/init.d/network restart

For information solving with the help of:

Big thanks @LGA1150 et @trendy

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.