tml3nr
Senior Member
Ah em theo bài này thì ipset nhận được ip rồi. Không hiểu sao riêng ku speedtest.net lại bị vuột:Có 2 cách: Một là ép client phải đi qua DNS của OpenWRT, hướng dẫn ở đây. Hai là add thẳng Google DNS trên OpenWRT luôn.
ipset=/speedtest.net/speedtest.vn/ipinfo.io/.apple.com/youtube.com/google.com/dnslist
https://openwrt.org/docs/guide-user/firewall/fw3_configurations/intercept_dns
Code:
# Intercept DNS traffic
uci -q delete firewall.dns_int
uci set firewall.dns_int="redirect"
uci set firewall.dns_int.name="Intercept-DNS"
uci set firewall.dns_int.src="lan"
uci set firewall.dns_int.src_dport="53"
uci set firewall.dns_int.proto="tcp udp"
uci set firewall.dns_int.target="DNAT"
uci commit firewall
/etc/init.d/firewall restart