Skip to content

Instantly share code, notes, and snippets.

@louisswarren
Last active June 26, 2016 10:04
Embed
What would you like to do?
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