Difference between revisions of "Configuring Raspberry Pi as a router"

From MyWiki
Jump to: navigation, search
(Created page with " Enable Forwarding to Reach the Internet Enable IPv4 forwarding sudo sysctl -w net.ipv4.ip_forward=1 1 sudo sysctl -w net.ipv4.ip_forward=1 Enable NAT sudo iptables...")
 
(No difference)

Latest revision as of 13:50, 19 July 2015

Enable Forwarding to Reach the Internet
Enable IPv4 forwarding
sudo sysctl -w net.ipv4.ip_forward=1
1
sudo sysctl -w net.ipv4.ip_forward=1
Enable NAT
sudo iptables -t nat -A POSTROUTING -j MASQUERADE
1
sudo iptables -t nat -A POSTROUTING -j MASQUERADE