Skip to content

Instantly share code, notes, and snippets.

@louisswarren
Last active June 26, 2016 10:04
Show Gist options
  • Save louisswarren/c5cb89af5cabdfbe1aef2f11c109b073 to your computer and use it in GitHub Desktop.
Save louisswarren/c5cb89af5cabdfbe1aef2f11c109b073 to your computer and use it in GitHub Desktop.
Configure device as a wifi bridge
#!/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