Created
December 11, 2015 05:48
-
-
Save airlanggacahya/e64d97133ea9db27524e to your computer and use it in GitHub Desktop.
Nat Iptables
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 --table nat --append POSTROUTING --out-interface usb0 -j MASQUERADE | |
sudo iptables --append FORWARD --in-interface eth0 -j ACCEPT | |
echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment