I have a config problem for my router running OpenWRT (Barrier Breaker): the router has no problem with IPv6 connections on WAN and LAN, but no way to cross it.
My situation is:
Freebox v5 in gateway mode (no router mode) with IPv6 enabled. The OpenWRT router is behind the Freebox, and feeds a switch on which my machines are
The wifi is enabled on the router and working properly, with the same problem that ethernet for IPv6
LAN machines have proper IPv6 addresses, so the announcement is made correctly
IPv4 has no problem
In ssh on the router, IPv6 is OK:
the router retrieves the settings from the Freebox
ping6 ipv6.google.com is OK
ping6 to the LAN machines is OK
On machines on the LAN, you can not exit or enter the LAN:
ping6 router is OK
ping6 ipv6.google.com is NOT OK
ping6 to the other LAN machines is OK
My impression is that for IPv6, the LAN and WAN sides do not communicate. Being on the router, I can connect to machines on both sides. But packets from one side can not pass to the other. If the router relays correctly to the LAN the IPv6 segment announced by the Freebox (which allows the LAN to have globally routable IPv6 addresses), it must miss a setting for connecting LAN and WAN for IPv6.
I once had a dd-wrt router, using this with IPv6, and everything worked properly. No way to do the same thing with OpenWRT.
I looked at the OpenWRT docs for IPv6 (network6, odhcpd) but to no avail. So ... help?
Network config of the routeur
#cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd00:db80::/64'
config interface 'lan'
option ifname 'eth0.1'
option force_link '1'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '64'
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
config interface 'wan6'
option ifname '@wan'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 2 3 4 5t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0 5t'
#cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option expandhosts '1'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
option domain 'local'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv6 'relay'
option ndp 'relay'
option ra 'relay'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config dhcp 'wan6'
option dhcpv6 'relay'
option ndp 'relay'
option ra 'relay'
option master '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
config host
option name 'arda'
option mac '00:16:cb:a0:3f:b9'
option ip '192.168.1.42'
config host
option name 'serveur'
option mac '28:92:4a:30:76:67'
option ip '192.168.1.67'
# and several other machines with fix IPv4
# ifconfig
br-lan Link encap:Ethernet HWaddr B0:48:7A:B0:22:9E
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: 2a01:e35:2efc:5cd0:b248:7aff:feb0:229e/64 Scope:Global
inet6 addr: fe80::b248:7aff:feb0:229e/64 Scope:Link
inet6 addr: fd00:db80::1/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:152248 errors:0 dropped:0 overruns:0 frame:0
TX packets:139682 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:103880174 (99.0 MiB) TX bytes:97079534 (92.5 MiB)
eth0 Link encap:Ethernet HWaddr B0:48:7A:B0:22:9E
inet6 addr: fe80::b248:7aff:feb0:229e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12122756 errors:0 dropped:1 overruns:6978 frame:0
TX packets:11894794 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:932305523 (889.1 MiB) TX bytes:3662089266 (3.4 GiB)
Interrupt:4
eth0.1 Link encap:Ethernet HWaddr B0:48:7A:B0:22:9E
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:150833 errors:0 dropped:0 overruns:0 frame:0
TX packets:135961 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:103758310 (98.9 MiB) TX bytes:95539915 (91.1 MiB)
eth0.2 Link encap:Ethernet HWaddr B0:48:7A:B0:22:9E
inet addr:82.239.197.205 Bcast:82.239.197.255 Mask:255.255.255.0
inet6 addr: 2a01:e35:2efc:5cd0:b248:7aff:feb0:229e/64 Scope:Global
inet6 addr: fe80::b248:7aff:feb0:229e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:133837 errors:0 dropped:0 overruns:0 frame:0
TX packets:148271 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:93428293 (89.0 MiB) TX bytes:105547727 (100.6 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:4413 errors:0 dropped:0 overruns:0 frame:0
TX packets:4413 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:431056 (420.9 KiB) TX bytes:431056 (420.9 KiB)
wlan0 Link encap:Ethernet HWaddr B0:48:7A:B0:22:9E
inet6 addr: fe80::b248:7aff:feb0:229e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1601 errors:0 dropped:0 overruns:0 frame:0
TX packets:3262 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:160745 (156.9 KiB) TX bytes:523386 (511.1 KiB)
# brctl show
bridge name bridge id STP enabled interfaces
br-lan 7fff.b0487ab0229e no eth0.1
wlan0