Surfing Internet without a wireless access point
What if you have your laptop, your gadget and only Ethernet (cable) connection?
Then you need brick-to-brick web surfing!
We will show you how to set up your laptop as a wireless router (if it has a wireless card, of course), and how to set up the Nokia 770 to use this connection.
Gain root on your laptop, and set up an ad-hoc network, as we saw in the last post
root@laptop# iwconfig eth1 mode ad-hoc essid 'bricktobrick' channel 7
root@laptop# ifconfig eth1 10.0.0.1
Now, you must only forward all the traffic to the ethernet card, with iptables
root@laptop# iptables -t nat -A POSTROUTING -o eth0 -s 10.0.0.2 -j MASQUERADE
Where 10.0.0.2 is the IP of the Nokia 770, eth1 is the laptop’s wireless interface, and eth0 is the laptop’s ethernet interface.
Now only set this connection in the Nokia 770, with 10.0.0.01 as router, and the right DNS address (use the same than your laptop).
If your laptop is connected to the Internet with the ethernet card, you should be able now to surf the web, listen to the radio, etc, with your gadget.
So if don’t have a wireless router, and your girlfriend is talking with her friends with Messenger with the laptop, you can still read the web and check your e-mail with your gadget
15 comments November 18th, 2005



