I've got me new Dreamplug and having a a lot of fun with it but one thing is defeating me, connecting to the internet through the WAP. Here's the story briefly, bricked it on day one. Got a Debian Squeeze img from NewIt. My network is 192.168.1.0 so I changed all references to 192.168.1.* in init_setup.sh, dnsmasq.conf and udhcpd to 192.168.2.* . Great, can access the device wirelessly. I can access servers on my network, ftp and www but I can't access the WAN.Monitoring with wireshark and me routers logging tool I can see that requests to servers on my LAN are correctly originating from 192.168.1.92 (eth0 on the plug) but requests to the WAN are coming from 192.168.2.104 (the ip of the device from uap0) which is why I can't get out or more correctly don't receive a reply.So it seems when it needs to use DNS to get an IP it somehow does not NAT the request to the IP !!!? Help, I've been beating me head against this for days, everything I've read suggests this should be working.

I guess I cannot help you, but as I want to use my D2plug as an access point, I want to understand better. I understand that your situation is 192.168.1.0 is the wired network and 192.168.2.0 is the wireless network. You want to use the plug on 192.168.2.104 as your access point and route the traffic over 192.168.1.92 to the router over cable and from there to the WAN.

Quote

Great, can access the device wirelessly. I can access servers on my network, ftp and www but I can't access the WAN.

Does that mean, that you can access your plug over wireless from another computer and also over wireless to other computers inside your LAN which have only wired connection?

Could you try to reach an external address by IP? For instance google on 173.194.35.51?

192.168.1.0 is my LAN192.168.2.0 is the network assigned to uap0 the wireless interface on the plug which has the address 192.168.2.1192.168.1.92 is the address statically assigned to eth0 on the plug192.168.2.104 is the address that is dynamically assigned to the device that is connecting to uap0.The address is assigned by dnsmasq running on the plug. Dnsmasq also supplies dns services.NAT is enabled by iptables on the plug so all traffic leaving the plug on eth0 will appear to originate from ip address 192.168.1.92.This works for traffic from 192.168.2.104 destined for the LAN but anything destined for the internet arrives at the router with an originating ip of 192.168.2.104 So anything that requires a DNS lookup somehow bypasses iptables Typing an ip address into a browser will still result in a dns lookup.

Yes that is still there and working, as I stated above traffic sent to the LAN gets NAT'd but I am now one step closer to a solution.The traffic arriving at the router that originates from 192.1.168.2.104 is getting there via eth1 on the plug so that explains why it's not NAT'd That gets rid of one red herring.

I do not believe it. I knew it would be a simple fix once the problem was identified, 'masquerade' is to be used when the gateway (in this case eth0) gets it's address via dhcp, if it has a static ip you should use 'snat'. I changed /etc/network/interfaces to