@
pffrank #25
写成这样吗?如果 ad 的端口是 1754.把 53 转至 1754 ?
iptables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 1754
iptables -t nat -A PREROUTING -p tcp --dport 53 -j REDIRECT --to-ports 1754
[ -n "$(command -v ip6tables)" ] && ip6tables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 1754
[ -n "$(command -v ip6tables)" ] && ip6tables -t nat -A PREROUTING -p tcp --dport 53 -j REDIRECT --to-ports 1754