Following the tutorial was a palaver, so ended up using the script at http://raspberry-at-home.com/hotspot-wifi-access-point/. Told it to use eth0 to connect to the net, to use an SSID of 'Pi', and to use a 192.168.42.X subnet (rather than my usual 192.168.0.X). Rebooted, ssid 'Pi' appeared, connected, my IP now 192.168.4.2, Internet, lovely.
Ran the script at adafruit for installing Tor etc. Again, all seemed to go fine. Rebooted, SSID 'Pi' appeared, connected - no Internet.
Checked my client IP: 192.168.42.2, as expected. SSHd to the Pi (192.168.42.1). Pinged google from the Pi, all good. So the Pi can see the net; the Pi is broadcasting an SSID; the laptop can see the Pi; the Pi seems to let the laptop connect wirelessly; but the Pi won't let the laptop see the net.
Tried plugging 192.168.42.1:9050 (and then 9040) into Firefox settings as a SOCKSv5 host, and then as each / all of the various proxies. Firefox whinged that I was trying to connect to a proxy that was refusing connections.
Poked around here for a bit, took out a reference to hot plugging wlan0 from /etc/network/interfaces (just left it at auto), rebooted. Now the laptop can see the Pi SSID, but won't connect: I end up with a 169.254.184.X IP and Windows 8 whinging that my wireless is hooked up to an 'unidentified network - no Internet'. I think I'll leave it alone now until I can talk to somebody who knows what they're doing.
If I connect back to my main wireless network I can still SSH in through the 192.168.0.x subnet.
If it helps, here's /etc/network/interfaces (seeing as though that's the last thing I was buggering about with when it really broke):
Code: Select all
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto wlan0
iface wlan0 inet static
address 192.168.42.1
netmask 255.255.255.0
up iptables-restore < /etc/iptables.ipv4.nat
Code: Select all
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
Code: Select all
-P PREROUTING ACCEPT
-P INPUT ACCEPT
-P OUTPUT ACCEPT
-P POSTROUTING ACCEPT
sysctl net.ipv4/ip_forward:
Code: Select all
net.ipv4.ip_forward = 1
Code: Select all
1
Matt