Skip to content

Instantly share code, notes, and snippets.

@luanpcweb
Last active September 12, 2017 20:08
Show Gist options
  • Save luanpcweb/943f6acb922634edcab1b1f967c47a89 to your computer and use it in GitHub Desktop.
Save luanpcweb/943f6acb922634edcab1b1f967c47a89 to your computer and use it in GitHub Desktop.
# iptables -F
# iptables -t nat -F
# iptables -t nat -A PREROUTING -i wlx001aef4b53cb -p tcp --dport 22 -j REDIRECT --to-ports 22
# iptables -t nat -A PREROUTING -i wlx001aef4b53cb -p udp --dport 53 -j REDIRECT --to-ports 53
# iptables -t nat -A PREROUTING -i wlx001aef4b53cb -p tcp --syn -j REDIRECT --to-ports 9040
# iptables -t nat -L
# sh -c "iptables-save > /etc/iptables.ipv4.nat"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment