Last active
September 12, 2017 20:08
-
-
Save luanpcweb/943f6acb922634edcab1b1f967c47a89 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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