I have two ISP's configured in mwan3 for load balancing as wan and wanb interfaces for IPv4. For IPv6, only one of my ISP's is even giving me an IPv6 address and that is my wanb ISP with /64 Prefix.
I created a new 6in4 tunnel and attached it to my wan6 interface from the first ISP who do not give me any IPv6 address. The 6in4 tunnel says up, but it shows 0 packets received and several packets sent.
Since the 6in4 tunnel is unable to handle IPv6 traffic as expected, I am now using only the wanb6 interface in mwan3 configuration for IPv6 traffic. The intention however is to have wan6 (6in4) and wanb6 (ISP IPv6 /64 Prefix) interfaces in load balancing configuration in mwan3 for IPv6 traffic.
Please help me first by understanding why my 6in4 tunnel is not able to receive any incoming traffic and then I believe I should be able to get it added in load balancing configuration for IPv6 Traffic in mwan3.
root@OpenWrt:~# cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
config interface 'lan'
option device 'br-lan.10'
option proto 'static'
option ipaddr '192.168.1.100'
option netmask '255.255.255.0'
option delegate '0'
option ip6assign '64'
option ip6ifaceid '::1'
option defaultroute '0'
option ip6hint 'a'
config interface 'wan'
option device 'wan'
option proto 'static'
option ipaddr 'x.x.x.x'
option netmask 'x.x.x.x'
option gateway 'x.x.x.x'
option metric '1'
option delegate '0'
config device
option type '8021q'
option ifname 'br-lan'
option vid '10'
option name 'br-lan.10'
config device
option type '8021q'
option ifname 'br-lan'
option vid '20'
option name 'br-lan.20'
config device
option type '8021q'
option ifname 'br-lan'
option vid '30'
option name 'br-lan.30'
config bridge-vlan
option device 'br-lan'
option vlan '10'
list ports 'lan4:u*'
config bridge-vlan
option device 'br-lan'
option vlan '20'
list ports 'lan2:u*'
config bridge-vlan
option device 'br-lan'
option vlan '30'
list ports 'lan3:u*'
config interface 'guest'
option proto 'static'
option device 'br-lan.20'
option ipaddr '192.168.10.1'
option netmask '255.255.255.0'
option defaultroute '0'
option delegate '0'
config interface 'vpn'
option proto 'static'
option device 'br-lan.30'
option ipaddr '192.168.20.1'
option netmask '255.255.255.0'
option defaultroute '0'
option delegate '0'
config interface 'openvpnclient'
option proto 'none'
option device 'tun0'
option metric '5'
config interface 'wanb'
option proto 'pppoe'
option device 'lan1'
option username '1234567890'
option password '1234567890'
option ipv6 '0'
option metric '2'
config interface 'wanb6'
option proto 'dhcpv6'
option device '@wanb'
option reqaddress 'try'
option reqprefix 'auto'
option metric '4'
config interface 'wan6'
option proto '6in4'
option peeraddr '216.218.221.6'
option ip6addr '2001:470:18:ef1::2/64'
list ip6prefix '2001:470:faea::/48'
option tunnelid 'abcdef'
option username 'abcdef'
option password 'abcdef'
option mtu '1480'
option metric '3'
root@OpenWrt:~#
root@OpenWrt:~# cat /etc/config/firewall
config defaults
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option synflood_protect '1'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'lan'
config zone
option name 'wan'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
list network 'wan'
list network 'openvpnclient'
list network 'wanb'
list network 'wanb6'
list network 'wan6'
config forwarding
option src 'lan'
option dest 'wan'
config rule
option name 'Allow-DHCP-Renew'
option src 'wan'
option proto 'udp'
option dest_port '68'
option target 'ACCEPT'
option family 'ipv4'
config rule
option name 'Allow-Ping'
option src 'wan'
option proto 'icmp'
option icmp_type 'echo-request'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-IGMP'
option src 'wan'
option proto 'igmp'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-DHCPv6'
option src 'wan'
option proto 'udp'
option dest_port '546'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-MLD'
option src 'wan'
option proto 'icmp'
option src_ip 'fe80::/10'
list icmp_type '130/0'
list icmp_type '131/0'
list icmp_type '132/0'
list icmp_type '143/0'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Input'
option src 'wan'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
list icmp_type 'router-solicitation'
list icmp_type 'neighbour-solicitation'
list icmp_type 'router-advertisement'
list icmp_type 'neighbour-advertisement'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Forward'
option src 'wan'
option dest '*'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-IPSec-ESP'
option src 'wan'
option dest 'lan'
option proto 'esp'
option target 'ACCEPT'
config rule
option name 'Allow-ISAKMP'
option src 'wan'
option dest 'lan'
option dest_port '500'
option proto 'udp'
option target 'ACCEPT'
config zone
option name 'guest'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
list network 'guest'
config zone
option name 'vpn'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
list network 'vpn'
config forwarding
option src 'lan'
option dest 'guest'
config forwarding
option src 'guest'
option dest 'wan'
config forwarding
option src 'vpn'
option dest 'wan'
config redirect
option dest 'guest'
option target 'DNAT'
option name 'Xbox_UDP_4500'
list proto 'udp'
option src 'wan'
option src_dport '4500'
option dest_ip '192.168.10.254'
option dest_port '4500'
config redirect
option dest 'guest'
option target 'DNAT'
option name 'Xbox_UDP_3544'
list proto 'udp'
option src 'wan'
option src_dport '3544'
option dest_ip '192.168.10.254'
option dest_port '3544'
config redirect
option dest 'guest'
option target 'DNAT'
option name 'Xbox_UDP_500'
list proto 'udp'
option src 'wan'
option src_dport '500'
option dest_ip '192.168.10.254'
option dest_port '500'
config redirect
option dest 'guest'
option target 'DNAT'
option name 'Xbox_TCP_88'
list proto 'tcp'
option src 'wan'
option src_dport '88'
option dest_ip '192.168.10.254'
option dest_port '88'
config redirect
option dest 'guest'
option target 'DNAT'
option name 'Xbox_All_3074'
option src 'wan'
option src_dport '3074'
option dest_ip '192.168.10.254'
option dest_port '3074'
config redirect
option dest 'lan'
option target 'DNAT'
option name 'RDP'
list proto 'tcp'
option src 'wan'
option src_dport '3389'
option dest_ip '192.168.1.110'
option dest_port '3389'
config rule
option name 'Allow-DHCP-DNS-Guest'
option src 'guest'
option dest_port '53 67 68'
option target 'ACCEPT'
config rule
option name 'Allow-DHCP-DNS-VPN'
option src 'vpn'
option dest_port '53 67 68'
option target 'ACCEPT'
config include 'pbr'
option fw4_compatible '1'
option type 'script'
option path '/usr/share/pbr/firewall.include'
config rule
option name 'Allow-protocol-41'
option src 'wan'
option proto '41'
option target 'ACCEPT'
config rule
option name 'Allow-protocol-59'
option src 'wan'
option proto '59'
option target 'ACCEPT'
option extra '-m length --length 40'
root@OpenWrt:~#
root@OpenWrt:~# cat /etc/config/mwan3
config globals 'globals'
option mmx_mask '0x3F00'
config interface 'wan'
option enabled '1'
list track_ip '1.0.0.1'
list track_ip '1.1.1.1'
list track_ip '208.67.222.222'
list track_ip '208.67.220.220'
option family 'ipv4'
option reliability '2'
config interface 'wan6'
option enabled '1'
list track_ip '2606:4700:4700::1001'
list track_ip '2606:4700:4700::1111'
list track_ip '2620:0:ccd::2'
list track_ip '2620:0:ccc::2'
option family 'ipv6'
option reliability '2'
option initial_state 'online'
option track_method 'ping'
option count '1'
option size '56'
option max_ttl '60'
option timeout '4'
option interval '10'
option failure_interval '5'
option recovery_interval '5'
option down '5'
option up '5'
config interface 'wanb'
option enabled '1'
list track_ip '1.0.0.1'
list track_ip '1.1.1.1'
list track_ip '208.67.222.222'
list track_ip '208.67.220.220'
option family 'ipv4'
option reliability '2'
option initial_state 'online'
option track_method 'ping'
option count '1'
option size '56'
option max_ttl '60'
option timeout '4'
option interval '10'
option failure_interval '5'
option recovery_interval '5'
option down '5'
option up '5'
config interface 'wanb6'
option enabled '1'
list track_ip '2606:4700:4700::1001'
list track_ip '2606:4700:4700::1111'
list track_ip '2620:0:ccd::2'
list track_ip '2620:0:ccc::2'
option family 'ipv6'
option reliability '2'
option initial_state 'online'
option track_method 'ping'
option count '1'
option size '56'
option max_ttl '60'
option timeout '4'
option interval '10'
option failure_interval '5'
option recovery_interval '5'
option down '5'
option up '5'
config member 'wan_m1_w3'
option interface 'wan'
option metric '1'
option weight '3'
config member 'wan_m2_w3'
option interface 'wan'
option metric '2'
option weight '3'
config member 'wanb_m1_w2'
option interface 'wanb'
option metric '1'
option weight '2'
config member 'wanb_m1_w3'
option interface 'wanb'
option metric '1'
option weight '3'
config member 'wanb_m2_w2'
option interface 'wanb'
option metric '2'
option weight '2'
config member 'wan6_m1_w3'
option interface 'wan6'
option metric '1'
option weight '3'
config member 'wan6_m2_w3'
option interface 'wan6'
option metric '2'
option weight '3'
config member 'wanb6_m1_w2'
option interface 'wanb6'
option metric '1'
option weight '2'
config member 'wanb6_m1_w3'
option interface 'wanb6'
option metric '1'
option weight '3'
config member 'wanb6_m2_w2'
option interface 'wanb6'
option metric '2'
option weight '2'
config policy 'wan_only'
list use_member 'wan_m1_w3'
list use_member 'wan6_m1_w3'
config policy 'wanb_only'
list use_member 'wanb_m1_w2'
list use_member 'wanb6_m1_w2'
config policy 'balanced'
option last_resort 'default'
list use_member 'wan_m1_w3'
list use_member 'wanb_m1_w3'
config policy 'wan_wanb'
list use_member 'wan_m1_w3'
list use_member 'wanb_m2_w2'
list use_member 'wan6_m1_w3'
list use_member 'wanb6_m2_w2'
config policy 'wanb_wan'
list use_member 'wan_m2_w3'
list use_member 'wanb_m1_w2'
list use_member 'wan6_m2_w3'
list use_member 'wanb6_m1_w2'
config rule 'vpn_rule'
option family 'ipv4'
option proto 'all'
option src_ip '192.168.20.0/24'
option dest_ip '0.0.0.0/0'
option sticky '0'
option use_policy 'openvpn_only'
config rule 'https'
option sticky '1'
option dest_port '443'
option proto 'tcp'
option use_policy 'balanced'
option family 'ipv4'
config rule 'default_rule_v4'
option dest_ip '0.0.0.0/0'
option use_policy 'balanced'
option family 'ipv4'
option proto 'all'
option sticky '0'
config policy 'wanb6_only'
list use_member 'wanb6_m1_w3'
option last_resort 'default'
config rule 'default_rule_v6'
option family 'ipv6'
option proto 'all'
option sticky '0'
option use_policy 'wanb6_only'
option dest_ip '::/0'
config interface 'openvpnclient'
option enabled '1'
option initial_state 'online'
option family 'ipv4'
list track_ip '10.100.0.1'
list track_ip '1.1.1.1'
list track_ip '8.8.8.8'
option track_method 'ping'
option reliability '2'
option count '1'
option size '56'
option max_ttl '60'
option timeout '4'
option interval '10'
option failure_interval '5'
option recovery_interval '5'
option down '5'
option up '5'
config member 'openvpnclient_m1_w3'
option interface 'openvpnclient'
option metric '1'
option weight '3'
config policy 'openvpn_only'
list use_member 'openvpnclient_m1_w3'
option last_resort 'blackhole'
config policy 'wan6_only'
list use_member 'wan6_m1_w3'
option last_resort 'default'
config policy 'ipv6_only'
list use_member 'wan6_m1_w3'
list use_member 'wanb6_m1_w3'
option last_resort 'default'
root@OpenWrt:~#