Skip to content

Instantly share code, notes, and snippets.

@levid0s
Created December 23, 2023 04:27
Show Gist options
  • Save levid0s/f610077d67860b826dd039b01d555d1c to your computer and use it in GitHub Desktop.
Save levid0s/f610077d67860b826dd039b01d555d1c to your computer and use it in GitHub Desktop.
OpenWRT Force DNS via Adguard
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