I was also having problems with setting up a wifi to wired bridge and found the following site. There is an install script or you can follow the steps outlined. It worked perfectly for me. http://hackhappy.org/uncategorized/how-to-use-a-raspberry-pi-to-create-a-wireless-to-wired-network-bridge/
Basically you're going to need DHCP and iptables setup and configured. DHCP is setup so install iptables with:
apt-get install iptables
Now configure your eth0 with a static ip and your wlan0 for DHCP. Add the following line to the end of /etc/network/interfaces:
up iptables-restore > /etc/iptables.ipv4.nat
Configure DHCP conf file, here is my sample /etc/dhcp/dhcpd.conf:
option domain-name "[Domain]";
option domain-name-servers 8.8.8.8, 8.8.4.4;
subnet [Subnet] netmask [Netmask] {
range [IP Range Start] [IP Range End];
option routers [IP];
To finish up execute the following commands to restart DHCP with new settings and setup IP forwarding:
echo "INTERFACES=\"eth0\"" > /etc/default/isc-dhcp-server
service isc-dhcp-server restart
update-rc.d isc-dhcp-server enable
echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o [wlan0] -j MASQUERADE
iptables -A FORWARD -i $wifid -o [eth0] -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i [eth0] -o [wlan0] -j ACCEPT
iptables-save > /etc/iptables.ipv4.nat
/etc/init.d/networking restart