Created
December 23, 2023 04:27
-
-
Save levid0s/f610077d67860b826dd039b01d555d1c to your computer and use it in GitHub Desktop.
OpenWRT Force DNS via Adguard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@router:~# uci show | grep redirect | |
firewall.@redirect[0]=redirect | |
firewall.@redirect[0].dest='lan' | |
firewall.@redirect[0].target='DNAT' | |
firewall.@redirect[0].name='Force DNS via Adguard' | |
firewall.@redirect[0].src='lan' | |
firewall.@redirect[0].src_ip='!192.168.4.2' | |
firewall.@redirect[0].src_dport='53' | |
firewall.@redirect[0].dest_ip='192.168.4.1' | |
firewall.@redirect[0].dest_port='53' | |
firewall.@redirect[0].family='ipv4' | |
firewall.@redirect[0].reflection='0' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment