Created
June 20, 2019 09:33
-
-
Save olegslavkin/3c77efdf72b48f185e00874c6aaadf3b to your computer and use it in GitHub Desktop.
Ubuntu NAT for usb-lan to WiFi
This file contains 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
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