Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save olegslavkin/3c77efdf72b48f185e00874c6aaadf3b to your computer and use it in GitHub Desktop.
Save olegslavkin/3c77efdf72b48f185e00874c6aaadf3b to your computer and use it in GitHub Desktop.
Ubuntu NAT for usb-lan to WiFi
sudo iptables -t nat -A POSTROUTING -o wlp8s0 -j MASQUERADE
sudo iptables -A FORWARD -i enx00e0600014f9 -o wlp8s0 -j ACCEPT
sudo iptables -A FORWARD -i wlp8s0 -o enx00e0600014f9 -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment