Hotspot share internet connection

2017-05-21 23:20:00

I successfully set up a hotspot on my Raspberry Pi using the Adafruit tutorial. The hotspot works and I can connect to it with all my devices, but it does not share the internet connection.

I first thought it was because of this problem, but I fixed it (I think so) and it still does not share internet.

My settings:

$ sudo iptables -S

-P INPUT ACCEPT

-P FORWARD ACCEPT

-P OUTPUT ACCEPT

-A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT

-A FORWARD -i wlan0 -o eth0 -j ACCEPT

/etc/dhcp/dhcpd.conf is as it should be after following the tutorial, except for these lines at the end:

subnet 169.254.90.0 netmask 255.255.255.0 {

range 169.254.90.10 169.254.90.50;

option broadcast-address 169.254.90.255;

option routers 169.254.90.1;

default-lease-time 600;

max-lease-time 7200;

option domain-name "local";

option domain-name-servers 8.8.8.8, 8.8.4.4;

}

subnet 192.168.178.0 netmask 255.255.255.0 {