I have installed the full dnsmasq package. My dnsmasq file looks like so
$cat /etc/dnsmasq.conf
ipset=/youtube.com/youtube
I have defined the youtube ipset rule in mwan3 to go out wan1,
# cat /etc/config/mwan3
config rule 'youtube'
option proto 'all'
option sticky '0'
option ipset 'youtube'
option use_policy 'wan1_wan'
config rule 'https'
option sticky '1'
option dest_port '443'
option proto 'tcp'
option use_policy 'wan_wan1'
config rule 'default_rule'
option dest_ip '0.0.0.0/0'
option proto 'all'
option sticky '0'
option use_policy 'wan_wan1'
config globals 'globals'
option mmx_mask '0x3F00'
option rtmon_interval '5'
config interface 'wan'
option enabled '1'
list track_ip '8.8.4.4'
list track_ip '8.8.8.8'
list track_ip '208.67.222.222'
list track_ip '208.67.220.220'
option family 'ipv4'
option reliability '2'
option count '1'
option timeout '2'
option failure_latency '1000'
option recovery_latency '500'
option failure_loss '20'
option recovery_loss '5'
option interval '5'
option down '3'
option up '8'
config interface 'wan1'
option enabled '1'
list track_ip '8.8.4.4'
list track_ip '8.8.8.8'
list track_ip '208.67.222.222'
list track_ip '208.67.220.220'
option family 'ipv4'
option reliability '1'
option count '1'
option timeout '2'
option failure_latency '1000'
option recovery_latency '500'
option failure_loss '20'
option recovery_loss '5'
option interval '5'
option down '3'
option up '8'
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 'wan1_m1_w2'
option interface 'wan1'
option metric '1'
option weight '2'
config member 'wan1_m2_w2'
option interface 'wan1'
option metric '2'
option weight '2'
config policy 'wan_only'
list use_member 'wan_m1_w3'
list use_member 'wan6_m1_w3'
config policy 'wan1_only'
list use_member 'wan1_m1_w2'
list use_member 'wan16_m1_w2'
config policy 'balanced'
list use_member 'wan_m1_w3'
list use_member 'wan1_m1_w2'
option last_resort 'unreachable'
config policy 'wan_wan1'
option last_resort 'unreachable'
list use_member 'wan_m1_w3'
list use_member 'wan1_m2_w3'
config policy 'wan1_wan'
list use_member 'wan_m2_w3'
list use_member 'wan1_m1_w2'
option last_resort 'unreachable'
config member 'wan1_m2_w3'
option interface 'wan1'
option metric '2'
option weight '3'
However mwan3 rules does not show my rule,
# mwan3 rules
Active ipv4 user rules:
32 2003 S https tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport sports 0:65535 multiport dports 443
192 17107 - wan_wan1 all -- * * 0.0.0.0/0 0.0.0.0/0
Active ipv6 user rules:
0 0 S https tcp * * ::/0 ::/0 multiport sports 0:65535 multiport dports 443
9 1387 - wan_wan1 all * * ::/0 ::/0
Any idea why mwan3 does not use my rule?