Skip to content

Instantly share code, notes, and snippets.

@luanpcweb
Last active September 12, 2017 20:09
Show Gist options
  • Save luanpcweb/93ff03c5356bfb980a1a4445ad4dc7ee to your computer and use it in GitHub Desktop.
Save luanpcweb/93ff03c5356bfb980a1a4445ad4dc7ee to your computer and use it in GitHub Desktop.
# iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
# iptables -A FORWARD -i wlan0 -o wlx001aef4b53cb -m state --state RELATED,ESTABLISHED -j ACCEPT
# iptables -A FORWARD -i wlx001aef4b53cb -o wlan0 -j ACCEPT
# sh -c "iptables-save > /etc/iptables/rules.v4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment