Last active
June 26, 2016 10:04
-
-
Save louisswarren/c5cb89af5cabdfbe1aef2f11c109b073 to your computer and use it in GitHub Desktop.
Configure device as a wifi bridge
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
#!/bin/sh | |
/sbin/ifconfig eth0 10.0.0.1 netmask 255.255.255.0 up | |
/sbin/iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE | |
echo "1" | /usr/bin/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