Skip to content

Commit

Permalink
feat(fw4/post): refine dns logic
Browse files Browse the repository at this point in the history
  • Loading branch information
1715173329 authored Sep 1, 2024
1 parent 290e45c commit 9b623eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions root/etc/homeproxy/scripts/firewall_post.ut
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ chain homeproxy_mangle_lanac {
{% if (control_info.listen_interfaces): %}
meta iifname != {{ array_to_nftarr(split(join(' ', control_info.listen_interfaces) + ' lo', ' ')) }} counter return
{% endif %}
meta iifname != io udp dport 53 counter return
meta mark {{ self_mark }} counter return

{% if (control_info.lan_proxy_mode === 'listed_only'): %}
Expand Down Expand Up @@ -522,6 +523,7 @@ chain mangle_output {
{% if (match(proxy_mode, /tun/)): %}
chain homeproxy_mangle_lanac {
iifname {{ tun_name }} counter return
udp dport 53 counter return

{% if (control_info.listen_interfaces): %}
meta iifname != {{ array_to_nftarr(control_info.listen_interfaces) }} counter return
Expand Down

0 comments on commit 9b623eb

Please sign in to comment.