Skip to content

Instantly share code, notes, and snippets.

@ahappyforest
Created March 25, 2013 04:41
Show Gist options
  • Save ahappyforest/5234973 to your computer and use it in GitHub Desktop.
Save ahappyforest/5234973 to your computer and use it in GitHub Desktop.
sudo ifconfig wlan0 192.168.2.1 netmask 255.255.255.0
sudo dhcp -q -cf /etc/dhcpd/dhcpd.conf wlan0
sudo iptables -t nat -A POSTROUTING -o wlan2 -j MASQUERADE
sudo su
echo "1" /proc/sys/net/ipv4/ip_forward
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment