Skip to content

Commit

Permalink
update nftable rules #1
Browse files Browse the repository at this point in the history
  • Loading branch information
yangliu committed Jul 20, 2021
1 parent e655531 commit b695723
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/setup-tun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ table ip clash {
ip protocol != { tcp, udp } accept
udp dport 53 dnat $FORWARD_DNS_REDIRECT
tcp dport 53 dnat $FORWARD_DNS_REDIRECT
ip daddr \$LOCAL_SUBNET udp dport 53 dnat $FORWARD_DNS_REDIRECT
ip daddr \$LOCAL_SUBNET tcp dport 53 dnat $FORWARD_DNS_REDIRECT
}
}
EOF
Expand Down Expand Up @@ -157,8 +157,8 @@ table ip clash {
meta cgroup $BYPASS_CGROUP_CLASSID_AGH accept
ip daddr 127.0.0.0/8 accept
udp dport 53 dnat $FORWARD_DNS_REDIRECT
tcp dport 53 dnat $FORWARD_DNS_REDIRECT
ip daddr \$LOCAL_SUBNET udp dport 53 dnat $FORWARD_DNS_REDIRECT
ip daddr \$LOCAL_SUBNET tcp dport 53 dnat $FORWARD_DNS_REDIRECT
ip daddr \$LOCAL_SUBNET accept
ip protocol tcp redirect to :$redir_port
Expand Down

0 comments on commit b695723

Please sign in to comment.