sharing internet over wireless to ipnone - losing essid
Hi all,
I'm struggling with this one so it's time to ask for help.
I have wired ethernet to my laptop. I want to be able to share my network connection with my iphone.
I have set up masquerading:
# iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
# iptables --append FORWARD --in-interface wlan0 -j ACCEPT
# echo 1 > /proc/sys/net/ipv4/ip_forward
I have configured my wlan0 to a static IP - 192.168.1.100/24
call iwconfig to configure wlan0
I see the network pop up on my phone, I configure my own statis IP there, 192.168.1.100 as gateway
Success - I can connect to google for about 30 sec.
If I check iwconfig again, there is no longer a essid specified but a "CELL" value instead - and this is changing every 10 sec or so.
With the above I'm quite happy that I've configured everything OK except for iwconfig - why is it dropping my config?
PS. I've a broadcom wifi nic and I'm using ndiswrapper.
|