Skip to content

Instantly share code, notes, and snippets.

@kaiili
Created February 16, 2023 07:33
Show Gist options
  • Save kaiili/bead3e9fb674465f0794c880289bc4a2 to your computer and use it in GitHub Desktop.
Save kaiili/bead3e9fb674465f0794c880289bc4a2 to your computer and use it in GitHub Desktop.
配置特定应用的端口转发,可用于抓包,来自 https://mp.weixin.qq.com/s/P0ESUUXBmq2aQnrqDHsDaw
iptables -t nat -A OUTPUT -p tcp ! -d 127.0.0.1 -m owner --uid-owner 2000 -m multiport --dports 80,443 -j DNAT --to-destination 127.0.0.1:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment